powered by Jive Software

Problems with Jingle Demo Voice App

Hi to all, this is my first post so excuse me if i was wrong to insert this post in this section e for any incomplete information about it;I hope you can help me

I had to develop a voice chat application using a Server XMPP,in particular i use Ejabberd,and Smack API. I started setting the ejabberd.cfg file with 3478 in listening port(standard port for STUN protocol) and my virtual host; After that i begin testing the jingle demo app and, after some devices, i try to run it but with some problems;

when i run the application i get this two messages:

the first one:

de.javawi.jstun.attribute.UnknownMessageAttributeException: Unkown mandatory message attribute

at de.javawi.jstun.attribute.MessageAttribute.parseCommonHeader(MessageAttribute.j ava:105)

at de.javawi.jstun.header.MessageHeader.parseAttributes(MessageHeader.java:155)

at de.javawi.jstun.test.DiscoveryTest.test1(DiscoveryTest.java:105)

at de.javawi.jstun.test.DiscoveryTest.test(DiscoveryTest.java:65)

at de.javawi.jstun.test.demo.ice.ICENegociator.testInterface(ICENegociator.java:12 6)

at de.javawi.jstun.test.demo.ice.ICENegociator.access$000(ICENegociator.java:40)

at de.javawi.jstun.test.demo.ice.ICENegociator$1.run(ICENegociator.java:88)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

at java.lang.Thread.run(Thread.java:679)

JavaSound Capture Supported = true

JavaSoundAuto: Committed ok

The second one:

**No response from the server.: **

at org.jivesoftware.smackx.ServiceDiscoveryManager.discoverInfo(ServiceDiscoveryMa nager.java:445)

at org.jivesoftware.smackx.ServiceDiscoveryManager.discoverInfo(ServiceDiscoveryMa nager.java:414)

at org.jivesoftware.smackx.jingle.nat.RTPBridge.serviceAvailable(RTPBridge.java:44 4)

at org.jivesoftware.smackx.jingle.nat.ICEResolver.resolve(ICEResolver.java:166)

at org.jivesoftware.smackx.jingle.nat.ICETransportManager.createResolver(ICETransp ortManager.java:45)

at org.jivesoftware.smackx.jingle.nat.JingleTransportManager.getResolver(JingleTra nsportManager.java:58)

at org.jivesoftware.smackx.jingle.JingleSession.startOutgoing(JingleSession.java:1 194)

at Demo$2.actionPerformed(Demo.java:117)

at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)

at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)

at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)

at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)

at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.ja va:253)

at java.awt.Component.processMouseEvent(Component.java:6268)

at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)

at java.awt.Component.processEvent(Component.java:6033)

at java.awt.Container.processEvent(Container.java:2045)

at java.awt.Component.dispatchEventImpl(Component.java:4629)

at java.awt.Container.dispatchEventImpl(Container.java:2103)

at java.awt.Component.dispatchEvent(Component.java:4455)

at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4633)

at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4297)

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4227)

at java.awt.Container.dispatchEventImpl(Container.java:2089)

at java.awt.Window.dispatchEventImpl(Window.java:2517)

at java.awt.Component.dispatchEvent(Component.java:4455)

at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:649)

at java.awt.EventQueue.access$000(EventQueue.java:96)

at java.awt.EventQueue$1.run(EventQueue.java:608)

at java.awt.EventQueue$1.run(EventQueue.java:606)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlConte xt.java:105)

at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlConte xt.java:116)

at java.awt.EventQueue$2.run(EventQueue.java:622)

at java.awt.EventQueue$2.run(EventQueue.java:620)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlConte xt.java:105)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:619)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:27 5)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:19 0)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

Thanks to all.

Ilrosso

Considering how buggy Spark is in regards to Jingle I assume the real troubles are buried down deep in Smack as the foundation of Spark. Sadly enough there are no takers getting Spark/Smack up to speed jinglewise as for example JITSI or other clients are already.

I am faceing error

JingleSessionStatePending why can you help me

private void Outgoing_call(XMPPConnection x0) {

try {

BasicTransportManager bt = new BasicTransportManager();

mMediaManagers = new ArrayList();

mMediaManagers.add(new MicrophoneRTPManager1(bt, this));

System.out.println(“gnna intialize the new jingle setup”);

ProviderManager providerManager = ProviderManager.getInstance();

providerManager.addIQProvider(“jingle”, “urn:xmpp:tmp:jingle”, new JingleProvider());

JingleManager jingleManager=new JingleManager(x0, mMediaManagers);

JingleManager.setJingleServiceEnabled();

JingleSession jingleSession=jingleManager.createOutgoingJingleSession(“babymonitor@lindev/Qxm pp”);

jingleSession.addListener(new BeemJingleSessionListener());

jingleSession.startOutgoing();

System.out.println(“method finished and jingle sesssion state is =”+jingleSession.getSessionState());

} catch (Exception e) {

e.printStackTrace();

}

}

http://community.igniterealtime.org/blogs/ignite/2012/06/08/a-new-jingle-voice-c hat-plugin-for-spark

I don’t understand why folks don’t read the blogs or use the search facility here