wrcgator

Adding support to JBother Client

Discussion created by wrcgator on Aug 13, 2005
Latest reply on Aug 20, 2005 by pis2005

After looking around for a JAVA client to add your Asterisk client library to, I came across JBother, http://www.jbother.org/.  This client works fine with Jive Messenger before any changes.  Once the very simple addition of a ring event handler is added the client fails to connect.  This is logged to the console:

 

Exception in thread "Thread-7" java.lang.ClassCastException: org.jivesoftware.smack.PacketReader$4

        at org.jivesoftware.smackx.ServiceDiscoveryManager.discoverItems(ServiceDiscoveryM anager.java:409)

        at org.jivesoftware.smackx.ServiceDiscoveryManager.discoverItems(ServiceDiscoveryM anager.java:373)

        at org.jivesoftware.phone.client.PhoneClient.(PhoneClient.java:58)

        at com.valhalla.jbother.ConnectorThread.run(ConnectorThread.java:372)

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

 

In fact, adding the asterisk client library to the JAR without adding any code causes the connection to the server to take much longer. 

 

Jbother, has an XML console and the asterisk ring events *are* being received.  Changes to JBother are in only two files... ConnectorThread and build.xml.  I would be happy to post them if given access.

Outcomes