[Jingle] No media recieved

Hello everyone,

I’m loading Openfire 3.5.2 with Tsung server. I’d now like to have an idea of Jingle and red5 calling on the server’s performance. I’m using the Jingle demo (just basic for the time being) from org.jivesoftware.smackx.jingle.mediaimpl.jmf.

When I use it, the signalling happens fine, but in Spark I get a Voice chat ended : No media recieved error. I allready had this error when phoning from domain to domain but never had timeto look closely at it. I don’t know what I’m doing wrong.

Here are the logs :

init:
deps-jar:
compile:
run:
java.io.FileNotFoundException: /usr/lib/jvm/java-6-openjdk/jre/lib/security/cacerts (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:137)
at java.io.FileInputStream.(FileInputStream.java:96)
at org.jivesoftware.smack.ServerTrustManager.(ServerTrustManager.java:62)
at org.jivesoftware.smack.XMPPConnection.proceedTLSReceived(XMPPConnection.java:11 15)
at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:313)
at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:44)
at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:76)
Initialized
1
1
Initializing…Resolved
java.net.UnknownHostException: jivesoftware.com
at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:866)
at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1245)
at java.net.InetAddress.getAllByName0(InetAddress.java:1196)
at java.net.InetAddress.getAllByName(InetAddress.java:1127)
at java.net.InetAddress.getAllByName(InetAddress.java:1063)
at java.net.InetAddress.getByName(InetAddress.java:1013)
at de.javawi.jstun.test.DiscoveryTest.test1(DiscoveryTest.java:90)
at de.javawi.jstun.test.DiscoveryTest.quickTest(DiscoveryTest.java:75)
at de.javawi.jstun.test.demo.ice.ICENegociator$1.run(ICENegociator.java:77)
at java.lang.Thread.run(Thread.java:636)
C: /192.168.8.200|/192.168.8.200 p:2195
Listening for ECHO: 192.168.8.200:19386
Service listing
java.net.UnknownHostException: T-REX: T-REX
at java.net.InetAddress.getLocalHost(InetAddress.java:1425)
at org.jivesoftware.smackx.jingle.nat.BridgedResolver.getLocalHost(BridgedResolver .java:137)
at org.jivesoftware.smackx.jingle.nat.ICEResolver.resolve(ICEResolver.java:141)
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.OutgoingJingleSession.(OutgoingJingleSessi on.java:116)
at org.jivesoftware.smackx.jingle.OutgoingJingleSession.(OutgoingJingleSessi on.java:143)
at org.jivesoftware.smackx.jingle.JingleManager.createOutgoingJingleSession(Jingle Manager.java:617)
at org.jivesoftware.smackx.jingle.JingleManager.createOutgoingJingleSession(Jingle Manager.java:635)
at clientjingle.ClientJingle$2.actionPerformed(ClientJingle.java:94)
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:6106)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3276)
at java.awt.Component.processEvent(Component.java:5871)
at java.awt.Container.processEvent(Container.java:2105)
at java.awt.Component.dispatchEventImpl(Component.java:4467)
at java.awt.Container.dispatchEventImpl(Container.java:2163)
at java.awt.Component.dispatchEvent(Component.java:4293)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)
Initializing…Resolved
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)
at java.awt.Container.dispatchEventImpl(Container.java:2149)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4293)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:604)
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)
UpdatePacketListener
Jingle:
Ignored Jingle(SID) 5741886564041916725|8287002713014629770 :
Jingle:
Ignored Jingle(SID) 1411446588022010750|8287002713014629770 :
Jingle:
Ignored Jingle(SID) 3939036959480556641|8287002713014629770 :
Jingle:
Ignored Jingle(SID) 5279825994201216669|8287002713014629770 :
Jingle:
Ignored Jingle(SID) 3383248172949001422|8287002713014629770 :
Jingle:
Ignored Jingle(SID) 5741886564041916725|8287002713014629770 :
Jingle:
Ignored Jingle(SID) 1411446588022010750|8287002713014629770 :
Jingle:
Ignored Jingle(SID) 3939036959480556641|8287002713014629770 :
Jingle:
Ignored Jingle(SID) 5279825994201216669|8287002713014629770 :
Jingle:
Ignored Jingle(SID) 3383248172949001422|8287002713014629770 :
Jingle:
0
Jingle:
Content Received: 6812996779153322599;192.168.8.10:15122
Result OK:192.168.8.10:15122
RESULT>>>OK:192.168.8.10:15122
0
Jingle:
Content Received: 6812996779153322599;192.168.8.10:15122
Result OK:192.168.8.10:15122
RESULT>>>OK:192.168.8.10:15122
Content Received: 5508052690313311659;192.168.8.10:15122
Result Wrong Data:192.168.8.10:15122
Content Received: 6812996779153322599;192.168.8.10:15122
Result OK:192.168.8.10:15122
RESULT>>>OK:192.168.8.10:15122
Jingle:
BS:gsm
Content Received: 6812996779153322599;192.168.8.10:15122
Result OK:192.168.8.10:15122
RESULT>>>OK:192.168.8.10:15122
Content Received: 5508052690313311659;192.168.8.10:15122
Result Wrong Data:192.168.8.10:15122
ADDED Valid Cand: 192.168.8.10:15122
1
2
Jingle:
Jingle:
Cand: 192.168.8.200
SET ACTIVE
Transport stabilished
triggerTransportEstablished 192.168.8.200:19386|192.168.8.10:15122
3
4
5
6
7
8
9
Jingle:
REMOVE PACKET LISTENER
Negotiation Closed: util1@openfire-monosite.mono1.sicf/Smack 8287002713014629770

Got a wireshark dump of the traffic and udp seems to be going only one way.

netstat doesn’t show me the udp ports open.

And also, this happens Media Proxy activated or not.

All I can get inthe Openfire debug is this :

java.io.IOException: An existing connection was forcibly closed by the remote host
at sun.nio.ch.SocketDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(Unknown Source)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
at sun.nio.ch.IOUtil.read(Unknown Source)
at sun.nio.ch.SocketChannelImpl.read(Unknown Source)
at org.mortbay.io.nio.ChannelEndPoint.fill(ChannelEndPoint.java:122)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:282)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)

Any ideas anyone?

Thanks, Alex

Local calls work, it seems a problem with the demo code.

I suppressed the ICETransportManager since I don’t have STUN enabled for this test, and that doesn’t solve the problem.

I can’t see what’s going wrong.

If I do the call from Spark to Spark, the call goes threw ok. If I do it from code to Spark I get the No media recieved error ???

It seems the code doesn’t initialise a two way udp transaction, like it happens for a normal jingle call.