Install, Setup config problems, please help

We have Wildfire 2.6.1 running on win 2003 server with IP xxx.xx.xx.10, we also have Asterisk@Home 2.8 CentOS server with IP xxx.xx.xx.30.

How can i connect Asterisk-IM to this server.

I have succesfully installed Asterisk-IM plug in on my wildfire server, added an entry in my manager.conf file on Asterisk@home, thats how it looks:

;

; Asterisk Call Management support

;

enabled = yes

port = 5038

bindaddr = 0.0.0.0

secret = amp111

deny=0.0.0.0/0.0.0.0

permit=127.0.0.1/255.255.255.0

read = system,call,log,verbose,command,agent,user

write = system,call,log,verbose,command,agent,user

secret = im

deny=0.0.0.0/0.0.0.0

permit=127.0.0.1/255.255.255.0

permit=172.18.50.10/255.255.0.0

read = system,call,log,verbose,command,agent,user

write = system,call,log,verbose,command,agent,user

#include manager_custom.conf

Following is my configuration from Asterisk-IM wildfire:

Enabled: Yes

Server: my Asterisk@Home IP address

Port: blank (5038) as default

Username: asteriskim

Password: im

Asterisk context: blank, default (i don’'t know what to put here)

Default Called ID: blank, default

Dial Command Variables: blank, default

I hit save, everything disappears, i click back on Asterisk-IM and get the message

“Unable to establish a connection to the manager server, please see error log”

So here is my error log:

at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:98)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler. java:471)

at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)

at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)

at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.ja va:633)

at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)

at org.mortbay.http.HttpServer.service(HttpServer.java:909)

at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)

at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)

at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)

at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)

at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)

at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

2006.04.20 16:17:37 [org.jivesoftware.wildfire.plugin.phone.phone_002dsettings_jsp._jspService(phon e_002dsettings_jsp.java:146)

] Unable to acquire asterisk plugin instance!

2006.04.20 16:17:37 [org.jivesoftware.wildfire.container.PluginServlet.service(PluginServlet.java:1 03)

]

java.lang.IllegalStateException: Unable to acquire asterisk plugin instance!

at org.jivesoftware.wildfire.plugin.phone.phone_002dsettings_jsp._jspService(phone _002dsettings_jsp.java:147)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)

at org.jivesoftware.wildfire.container.PluginServlet.handleJSP(PluginServlet.java: 227)

at org.jivesoftware.wildfire.container.PluginServlet.service(PluginServlet.java:91 )

at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)

at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:830)

at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:98)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:11 8)

at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

at org.jivesoftware.util.LocaleFilter.doFilter(LocaleFilter.java:43)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

at org.jivesoftware.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingF ilter.java:41)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:98)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler. java:471)

at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)

at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)

at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.ja va:633)

at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)

at org.mortbay.http.HttpServer.service(HttpServer.java:909)

at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)

at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)

at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)

at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)

at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)

at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

Can anybody help me please, Spark Client is working fine on all clients, also X-Lite softphones are working fine on clients, that measn that both boxes (Asteris@home and Wildfire are fine) so why wont they communicate???

PLEASE HELP

Greg

I’'m no expert on the Asterisk-IM… but I just went though that. I ended up going to the asterisk console, cranking up verbose, and restarting the plugin. Then I watched for what error came across in Asterisk. In my case I had my deny after my permit… not your problem, obviously, but it may tell you something.

Also, I assume there is no firewall between your Wildfire setup and your * box?

Bill

No, there is not firewall

And Asterisk-IM plugin version # is 1.1

Message was edited by: ryhd

I’'m getting the same error on a AAH 2.2 install running Wildfire 2.6.2 and Asterisk-IM 1.1 on it as well.

I’‘ve had Wildfire 2.5.x and Asterisk-IM 1.0 running on this config successfuly (I’’ ghosted the box, installed and tested Wildfire & A-IM (found the Ast-IM 1.0 issues with Asterisk 1.2.x) then blew it away and restored the ghost.)

Here’'s the error log:

2006.04.20 16:28:15 org.jivesoftware.wildfire.plugin.phone.phone_002dsettings_jsp.jspService(phone 002dsettings_jsp.java:146) Unable to acquire asterisk plugin instance!

2006.04.20 16:28:15 org.jivesoftware.wildfire.container.PluginServlet.service(PluginServlet.java:103 )

java.lang.IllegalStateException: Unable to acquire asterisk plugin instance!

at org.jivesoftware.wildfire.plugin.phone.phone_002dsettings_jsp._jspService(phone _002dsettings_jsp.java:147)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)

at org.jivesoftware.wildfire.container.PluginServlet.handleJSP(PluginServlet.java: 227)

at org.jivesoftware.wildfire.container.PluginServlet.service(PluginServlet.java:91 )

at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)

at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:830)

at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:98)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:11 8)

at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

at org.jivesoftware.util.LocaleFilter.doFilter(LocaleFilter.java:43)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

at org.jivesoftware.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingF ilter.java:41)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:98)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler. java:471)

at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)

at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)

at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.ja va:633)

at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)

at org.mortbay.http.HttpServer.service(HttpServer.java:909)

at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)

at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)

at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)

at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)

at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)

at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

Ohh… Java JRE 1.5.0.06 is installed and working.

java -version

java version “1.5.0_06”

Java™ 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)

Java HotSpot™ Client VM (build 1.5.0_06-b05, mixed mode, sharing)

HELP!

Thanks,

Tracy

Message was edited by: carltont

What version of asterisk is Asterisk@Home built upon? Asterisk-IM 1.1 requires asterisk 1.2.

Asterisk@Home 2.8 is build on Asterisk 1.2

These exceptions are occuring because for some reason the plugin failed to register properly. Is there an exception happening when wildfire first starts up. Just for fun turn on debug logging and check the debug log too.

Asterisk-IM 1.1 requires asterisk 1.2.[/i]

I’‘m a little purturbed that this spec of info isn’'t included in the ''web page, change log, readme, or the news forum posting. I read these things looking for this in particular before upgrading and breaking my install - which I ended up doing.

Could you put a list of system requirements in the Readme please? Thanks

I’'m having the same problem:

  • Wildfire 2.6.2

  • Asterisk-IM 1.1

  • Asterisk 1.2.6

Blank screen after saving Asterisk-IM settings and the same exception in the logs (pasted at hte end of this message)

Debug turned on but debug.log does not show anything helpful

2006.05.09 13:17:32 Loading plugin admin

2006.05.09 13:17:36 Loading plugin asterisk-im

2006.05.09 13:17:36 Loading plugin search

error.log doesn’'t show errors on startup

info.log shows nothing wrong

2006.05.09 13:17:31 Multi User Chat domain: conference.pluto.turin.wbr.it

2006.05.09 13:17:31 Started server (unencrypted) socket on port: 5269

2006.05.09 13:17:31 Started plain (unencrypted) socket on port: 5222

2006.05.09 13:17:32 Started SSL (encrypted) socket on port: 5223

2006.05.09 13:17:32 Publish-Subscribe domain: pubsub.pluto.turin.wbr.it

2006.05.09 13:17:32 Wildfire 2.6.2

2006.05.09 13:17:36 Admin console listening at:

http://pluto.turin.wbr.it:9090

https://pluto.turin.wbr.it:9091

2006.05.09 13:17:36 Initializing Asterisk-IM Plugin

Here is the complete exception thrown while saving Asterisk-IM settings

2006.05.09 13:17:46 org.jivesoftware.wildfire.plugin.phone.phone_002dsettings_jsp.jspService(phone 002dsettings_jsp.java:146) Unable to acquire asterisk plugin instance!

2006.05.09 13:17:46 org.jivesoftware.wildfire.container.PluginServlet.service(PluginServlet.java:103 )

java.lang.IllegalStateException: Unable to acquire asterisk plugin instance!

at org.jivesoftware.wildfire.plugin.phone.phone_002dsettings_jsp._jspService(phone _002dsettings_jsp.java:147)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)

at org.jivesoftware.wildfire.container.PluginServlet.handleJSP(PluginServlet.java: 227)

at org.jivesoftware.wildfire.container.PluginServlet.service(PluginServlet.java:91 )

at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)

at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:830)

at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:98)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:11 8)

at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

at org.jivesoftware.util.LocaleFilter.doFilter(LocaleFilter.java:43)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

at org.jivesoftware.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingF ilter.java:41)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:98)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler. java:471)

at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)

at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)

at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.ja va:633)

at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)

at org.mortbay.http.HttpServer.service(HttpServer.java:909)

at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)

at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)

at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)

at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)

at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)

at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

Tnx a lot for help

Regards

I had the same troubles… but found the solution very simple. my asterisk daemon (on my asterisk box) failed to start. I had a misconfigured module which caused some troubles… after removing the offensive module & starting my asterisk daemon… everything works great.

For others… make sure the asterisk daemon is running on your asterisk box. (ps -ax |grep asterisk) and if it’‘s not… find out why. (asterisk -v) if it is… check iptables (iptables -L) for rules as to why you wouldn’‘t be able to connect… and also make sure your routers/firewalls aren’'t causing problems.

Good luck everyone

I´m havin the same problem

(dados Posts:1 Registered: 5/9/06)[/b]

What you did ?

thanks.

Vinícia

Message was edited by: vinicia

Message was edited by: vinicia

Dear All,

I have Asterisk 1.2.4 on Cent OS 4.2, Wildfire 2.6.2, Spark 1.1.4 and IM Plugin 1.1.0.

I can see the call status, I can see incomming calls. What I can’‘t do is call between two Spark I’'M agents ? I get the following error in the log;

2006.06.23 11:52:41 org.jivesoftware.phone.asterisk.AsteriskPhoneManager.dial(AsteriskPhoneManager.j ava:340) 1

java.lang.ArrayIndexOutOfBoundsException: 1

at org.jivesoftware.phone.asterisk.AsteriskPhoneManager.dial(AsteriskPhoneManager. java:329)

at org.jivesoftware.phone.asterisk.AsteriskPhoneManager.originate(AsteriskPhoneMan ager.java:156)

at org.jivesoftware.phone.PacketHandler.handleDial(PacketHandler.java:90)

at org.jivesoftware.phone.PacketHandler.processPacket(PacketHandler.java:47)

at org.jivesoftware.phone.asterisk.AsteriskPlugin.processPacket(AsteriskPlugin.jav a:222)

at org.jivesoftware.wildfire.component.InternalComponentManager$RoutableComponent. process(InternalComponentManager.java:364)

at org.jivesoftware.wildfire.IQRouter.handle(IQRouter.java:215)

at org.jivesoftware.wildfire.IQRouter.route(IQRouter.java:96)

at org.jivesoftware.wildfire.PacketRouter.route(PacketRouter.java:65)

at org.jivesoftware.wildfire.net.SocketReader.processIQ(SocketReader.java:396)

at org.jivesoftware.wildfire.net.ClientSocketReader.processIQ(ClientSocketReader.j ava:50)

at org.jivesoftware.wildfire.net.SocketReader.readStream(SocketReader.java:264)

at org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:119)

at java.lang.Thread.run(Unknown Source)

and my sip.conf looks like

type=friend

host=dynamic

defaultip=10.0.0.18

mailbox=1001

context=sip

callerid=“test1” <1>

dtmfmode=rfc2833

My IM plugin looks like;

  • Enabled: yes

  • Server: 192.168.6.56

Port:

  • Username: shad

  • Password: ****

Asterisk Context: SIP

Default Caller ID: Asterisk IM

Dial Command Variables:

Is this a known bug? I have seen several posts on similar problems. Or am I missing something in my configuration?

Many Thanks

Shad

A little progress,

I downloaded a previous version from a link on a previous post and I can make a calls!

However the presence seems to be broken; where the status does not change. This may be a bug in the particular build I’'m using.

Also I found this on the VoIP WiKi

Asterisk-IM 1.0 and 1.1 appear not to support the Dial() action from within Spark for Asterisk 1.2 - use Asterisk 1.0 instead

Can someone tell me where I can download official releases of Asterisk-IM 1.0 and 1.1?

Thanks

Shad

I downloaded the Asterisk-IM release 1.1 from http://www.jivesoftware.org/wildfire/plugins.jsp

I have Asterisk 1.2.4, *-IM 1.1 and Spark 2.0.0_ beta and I guess I have the same problem with dialing… What is the working set of compoments version?

Do you think that the only solution is to change some module version?

Reagrds

Gacek