[Vtigercrm-developers] PBXManager - Asterisk Connector Debugging

Richard Hills - Technologywise richard at tw.co.nz
Tue Oct 28 01:27:03 GMT 2014


Hi guys

Unfortunately I am not having any more luck with the asterisk connector 
now that I have got the PBXManager configuration screen working.

 From the connector log (logs/nohup.webapp.20141028-13:43.out):
> Oct 28, 2014 1:57:54 PM com.vtiger.apps.asterisk.webapp.helpers.b a
> INFO: Outbound Call
> Oct 28, 2014 1:57:54 PM com.vtiger.apps.asterisk.webapp.helpers.b a
> INFO: Asterisk Login Successfull
> Oct 28, 2014 1:57:54 PM com.vtiger.apps.asterisk.webapp.helpers.b a
> INFO: Successfully Authenticated Vtiger Secret Key
> 849304 [qtp611437735-14] INFO 
> org.asteriskjava.manager.internal.ManagerConnectionImpl - Connecting 
> to 192.168.212.6:5060
> Oct 28, 2014 1:57:54 PM com.vtiger.apps.asterisk.webapp.c.b a
> SEVERE: null
> java.net.ConnectException: Connection refused
>         at java.net.PlainSocketImpl.socketConnect(Native Method)
>         at 
> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
>         at 
> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
>         at 
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
>         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
>         at java.net.Socket.connect(Socket.java:589)
>         at 
> org.asteriskjava.util.internal.SocketConnectionFacadeImpl.<init>(SocketConnectionFacadeImpl.java:77)
>         at 
> org.asteriskjava.manager.internal.ManagerConnectionImpl.createSocket(ManagerConnectionImpl.java:729)
>         at 
> org.asteriskjava.manager.internal.ManagerConnectionImpl.connect(ManagerConnectionImpl.java:708)
>         at 
> org.asteriskjava.manager.internal.ManagerConnectionImpl.doLogin(ManagerConnectionImpl.java:490)
>         at 
> org.asteriskjava.manager.internal.ManagerConnectionImpl.login(ManagerConnectionImpl.java:438)
>         at 
> org.asteriskjava.manager.internal.ManagerConnectionImpl.login(ManagerConnectionImpl.java:423)
>         at 
> org.asteriskjava.manager.DefaultManagerConnection.login(DefaultManagerConnection.java:294)
>         at com.vtiger.apps.asterisk.webapp.a.a.a(Unknown Source)
>         at com.vtiger.apps.asterisk.webapp.c.b.a(Unknown Source)
>         at com.vtiger.apps.asterisk.webapp.c.b.doPost(Unknown Source)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
>         at 
> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
>         at 
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)
>         at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
>         at 
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
>         at 
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
>         at 
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
>         at 
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
>         at 
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
>         at 
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
>         at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
>         at 
> org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52)
>         at 
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
>         at org.eclipse.jetty.server.Server.handle(Server.java:370)
>         at 
> org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
>         at 
> org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)
>         at 
> org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)
>         at 
> org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
>         at 
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
>         at 
> org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
>         at 
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)
>         at 
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
>         at 
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
>         at 
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
>         at java.lang.Thread.run(Thread.java:745)
>

Any hints as to how to debug this issue would be great. ie. If there is 
another way to try to connect to the same area that the connector tries to.

Couple of notes:

  * IP is correct
  * Port is correct
  * asterisk 1.8.20.0
  * java version 1.8.0_20


TIA

-- 

Richard Hills
TechnologyWise Ltd, Tauranga, NZ
richard at tw.co.nz
www.technologywise.co.nz
ph: +64 (0)7 571 1060
fax: +64 (0)7 571 1061

Basestation
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20141028/932a8cb7/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: basestation.png
Type: image/png
Size: 13137 bytes
Desc: not available
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20141028/932a8cb7/attachment-0001.png>


More information about the vtigercrm-developers mailing list