[jitsi-dev] Calling jitsi from other software


#1

Hey there,

  A user of java-bells (https://github.com/bejayoharen/java-bells) noticed that calling from Java-Bells to Jitsi doesn't seem to work. So I tried myself and it's true.

Here is a simplified transcript of my call. I've tried a few variations, but I can't get Jitsi to send a list of media, only transport candidates.

     [java] Caller ----> : session-initiate with complete list of content and transport candidates for audio and video
     [java] Caller <---- : ack
     [java] Caller <---- : transport-info for audio only
     [java] Caller ----> : ack
     [java] Caller <---- : transport-info for video only
     [java] Caller ----> : ack
     [java] Caller <---- : session-info tells me jitsi is ringing
     [java] Caller <---- : ack

If I try to start ICE after the second transport-info it goes into the terminated state. Otherwise I can't get any more info from Jitsi. Answering on jitsi causes Jitsi to open the chat window, but it continues to make the ringing sound until I hang up. Nothing is sent over XMPP from Jitsi when the user answers, so clearly something is to be left to ICE at this point, but, like I said, it goes into terminated.

What am I missing? I assume I'm missing something from the spec, but maybe Jitsi isn't designed to work with this situation for some reason?

Thanks

···

-----------------------------
Bjorn Roche
http://www.xonami.com
Audio Collaboration
http://blog.bjornroche.com
@xonamiaudio


#2

The scenarios look OK to me. There's something else that must be wrong. What do the logs say?

Emil

···

On 22.07.13, 23:38, Bjorn Roche wrote:

Hey there,

  A user of java-bells (https://github.com/bejayoharen/java-bells) noticed that calling from Java-Bells to Jitsi doesn't seem to work. So I tried myself and it's true.

Here is a simplified transcript of my call. I've tried a few variations, but I can't get Jitsi to send a list of media, only transport candidates.

      [java] Caller ----> : session-initiate with complete list of content and transport candidates for audio and video
      [java] Caller <---- : ack
      [java] Caller <---- : transport-info for audio only
      [java] Caller ----> : ack
      [java] Caller <---- : transport-info for video only
      [java] Caller ----> : ack
      [java] Caller <---- : session-info tells me jitsi is ringing
      [java] Caller <---- : ack

If I try to start ICE after the second transport-info it goes into the terminated state. Otherwise I can't get any more info from Jitsi. Answering on jitsi causes Jitsi to open the chat window, but it continues to make the ringing sound until I hang up. Nothing is sent over XMPP from Jitsi when the user answers, so clearly something is to be left to ICE at this point, but, like I said, it goes into terminated.

What am I missing? I assume I'm missing something from the spec, but maybe Jitsi isn't designed to work with this situation for some reason?

Thanks

-----------------------------
Bjorn Roche
http://www.xonami.com
Audio Collaboration
http://blog.bjornroche.com
@xonamiaudio

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

--
https://jitsi.org


#3

Here's the complete log of jingle packets from my side. You can see I eventually terminate when ICE goes into the failed state. I've attached the complete Jitsi logs.

     [java] Caller ----> : <iq id="Qt38m-5" to="8998d7d4-0882-4f5b-b563-4d403ca2375e@xmpp.xonami.com/jitsi-1h9sggl" from="8998d7d4-0882-4f5b-b563-4d403ca2375e@xmpp.xonami.com/Caller" type="set"><jingle xmlns='urn:xmpp:jingle:1' action='session-initiate' initiator='8998d7d4-0882-4f5b-b563-4d403ca2375e@xmpp.xonami.com/Caller' sid='c09f53s3knsbn'><content creator='initiator' name='audio'><description xmlns='urn:xmpp:jingle:apps:rtp:1' media='audio'><payload-type id='96' name='opus' channels='1' clockrate='48000'><parameter name='usedtx' value='1'/></payload-type><payload-type id='9' name='G722' channels='1' clockrate='8000'/><payload-type id='97' name='SILK' channels='1' clockrate='24000'/><payload-type id='98' name='SILK' channels='1' clockrate='16000'/><payload-type id='100' name='speex' channels='1' clockrate='32000'/><payload-type id='102' name='speex' channels='1' clockrate='16000'/><payload-type id='0' name='PCMU' channels='1' clockrate='8000'/><payload-type id='8' name='PCMA' channels='1' clockrate='8000'/><payload-type id='103' name='iLBC' channels='1' clockrate='8000'/><payload-type id='3' name='GSM' channels='1' clockrate='8000'/><payload-type id='104' name='speex' channels='1' clockrate='8000'/><payload-type id='101' name='telephone-event' channels='1' clockrate='8000'/></description><transport xmlns='urn:xmpp:jingle:transports:ice-udp:1' pwd='501g8p2gtmft1ene5qc89obs8t' ufrag='6f2mu'><candidate component='1' foundation='2' generation='0' id='1' network='0' ip='fe80:0:0:0:e2f8:47ff:fe22:5482' port='6422' priority='2113937151' protocol='udp' type='host'/><candidate component='1' foundation='1' generation='0' id='2' network='0' ip='192.168.2.1' port='6422' priority='2113932031' protocol='udp' type='host'/><candidate component='1' foundation='3' generation='0' id='3' network='0' ip='192.168.1.137' port='6422' priority='2113932031' protocol='udp' type='host'/><candidate component='2' foundation='2' generation='0' id='4' network='0' ip='fe80:0:0:0:e2f8:47ff:fe22:5482' port='6423' priority='2113937150' protocol='udp' type='host'/><candidate component='2' foundation='1' generation='0' id='5' network='0' ip='192.168.2.1' port='6423' priority='2113932030' protocol='udp' type='host'/><candidate component='2' foundation='3' generation='0' id='6' network='0' ip='192.168.1.137' port='6423' priority='2113932030' protocol='udp' type='host'/></transport></content><content creator='initiator' name='video'><description xmlns='urn:xmpp:jingle:apps:rtp:1' media='video'><payload-type id='105' name='H264' clockrate='90000'><parameter name='profile-level-id' value='4DE01f'/><parameter name='packetization-mode' value='1'/><parameter name='imageattr' value='send [x=[0-640],y=[0-480]] recv [x=[0-1920],y=[0-1200]]'/></payload-type><payload-type id='99' name='H264' clockrate='90000'><parameter name='profile-level-id' value='4DE01f'/><parameter name='imageattr' value='send [x=[0-640],y=[0-480]] recv [x=[0-1920],y=[0-1200]]'/></payload-type></description><transport xmlns='urn:xmpp:jingle:transports:ice-udp:1' pwd='501g8p2gtmft1ene5qc89obs8t' ufrag='6f2mu'><candidate component='1' foundation='2' generation='0' id='7' network='0' ip='fe80:0:0:0:e2f8:47ff:fe22:5482' port='6424' priority='2113937151' protocol='udp' type='host'/><candidate component='1' foundation='1' generation='0' id='8' network='0' ip='192.168.2.1' port='6424' priority='2113932031' protocol='udp' type='host'/><candidate component='1' foundation='3' generation='0' id='9' network='0' ip='192.168.1.137' port='6424' priority='2113932031' protocol='udp' type='host'/><candidate component='2' foundation='2' generation='0' id='10' network='0' ip='fe80:0:0:0:e2f8:47ff:fe22:5482' port='6425' priority='2113937150' protocol='udp' type='host'/><candidate component='2' foundation='1' generation='0' id='11' network='0' ip='192.168.2.1' port='6425' priority='2113932030' protocol='udp' type='host'/><candidate component='2' foundation='3' generation='0' id='12' network='0' ip='192.168.1.137' port='6425' priority='2113932030' protocol='udp' type='host'/></transport></content></jingle></iq>
     [java] Caller <---- : <iq id="Qt38m-5" to="8998d7d4-0882-4f5b-b563-4d403ca2375e@xmpp.xonami.com/Caller" from="8998d7d4-0882-4f5b-b563-4d403ca2375e@xmpp.xonami.com/jitsi-1h9sggl" type="result"></iq>
     [java] Caller <---- : [jingle packet] c09f53s3knsbn : transport-info : <iq id="8Slou-44" to="8998d7d4-0882-4f5b-b563-4d403ca2375e@xmpp.xonami.com/Caller" from="8998d7d4-0882-4f5b-b563-4d403ca2375e@xmpp.xonami.com/jitsi-1h9sggl" type="set"><jingle xmlns='urn:xmpp:jingle:1' action='transport-info' sid='c09f53s3knsbn'><content creator='initiator' name='audio'><transport xmlns='urn:xmpp:jingle:transports:ice-udp:1' ufrag='4ie65' pwd='25j9bdcojicmnbbh75aahfreq4'><candidate xmlns='urn:xmpp:jingle:transports:ice-udp:1' foundation='2' component='1' protocol='udp' priority='2113937151' generation='0' id='13' ip='fe80:0:0:0:e2f8:47ff:fe22:5482' port='5004' type='host' network='0'/><candidate xmlns='urn:xmpp:jingle:transports:ice-udp:1' foundation='1' component='1' protocol='udp' priority='2113932031' generation='0' id='14' ip='192.168.2.1' port='5004' type='host' network='0'/><candidate xmlns='urn:xmpp:jingle:transports:ice-udp:1' foundation='3' component='1' protocol='udp' priority='2113932031' generation='0' id='15' ip='192.168.1.137' port='5004' type='host' network='0'/><candidate xmlns='urn:xmpp:jingle:transports:ice-udp:1' foundation='2' component='2' protocol='udp' priority='2113937150' generation='0' id='16' ip='fe80:0:0:0:e2f8:47ff:fe22:5482' port='5005' type='host' network='0'/><candidate xmlns='urn:xmpp:jingle:transports:ice-udp:1' foundation='1' component='2' protocol='udp' priority='2113932030' generation='0' id='17' ip='192.168.2.1' port='5005' type='host' network='0'/><candidate xmlns='urn:xmpp:jingle:transports:ice-udp:1' foundation='3' component='2' protocol='udp' priority='2113932030' generation='0' id='18' ip='192.168.1.137' port='5005' type='host' network='0'/></transport></content></jingle></iq>
     [java] Caller <---- : [jingle packet] c09f53s3knsbn : transport-info : <iq id="8Slou-45" to="8998d7d4-0882-4f5b-b563-4d403ca2375e@xmpp.xonami.com/Caller" from="8998d7d4-0882-4f5b-b563-4d403ca2375e@xmpp.xonami.com/jitsi-1h9sggl" type="set"><jingle xmlns='urn:xmpp:jingle:1' action='transport-info' sid='c09f53s3knsbn'><content creator='initiator' name='video' senders='initiator'><transport xmlns='urn:xmpp:jingle:transports:ice-udp:1' ufrag='4ie65' pwd='25j9bdcojicmnbbh75aahfreq4'><candidate xmlns='urn:xmpp:jingle:transports:ice-udp:1' foundation='2' component='1' protocol='udp' priority='2113937151' generation='0' id='19' ip='fe80:0:0:0:e2f8:47ff:fe22:5482' port='5006' type='host' network='0'/><candidate xmlns='urn:xmpp:jingle:transports:ice-udp:1' foundation='1' component='1' protocol='udp' priority='2113932031' generation='0' id='20' ip='192.168.2.1' port='5006' type='host' network='0'/><candidate xmlns='urn:xmpp:jingle:transports:ice-udp:1' foundation='3' component='1' protocol='udp' priority='2113932031' generation='0' id='21' ip='192.168.1.137' port='5006' type='host' network='0'/><candidate xmlns='urn:xmpp:jingle:transports:ice-udp:1' foundation='2' component='2' protocol='udp' priority='2113937150' generation='0' id='22' ip='fe80:0:0:0:e2f8:47ff:fe22:5482' port='5007' type='host' network='0'/><candidate xmlns='urn:xmpp:jingle:transports:ice-udp:1' foundation='1' component='2' protocol='udp' priority='2113932030' generation='0' id='23' ip='192.168.2.1' port='5007' type='host' network='0'/><candidate xmlns='urn:xmpp:jingle:transports:ice-udp:1' foundation='3' component='2' protocol='udp' priority='2113932030' generation='0' id='24' ip='192.168.1.137' port='5007' type='host' network='0'/></transport></content></jingle></iq>
     [java] Caller ----> : <iq id="8Slou-46" to="8998d7d4-0882-4f5b-b563-4d403ca2375e@xmpp.xonami.com/jitsi-1h9sggl" from="8998d7d4-0882-4f5b-b563-4d403ca2375e@xmpp.xonami.com/Caller" type="result"></iq>
     [java] Caller <---- : [jingle packet] c09f53s3knsbn : session-info : <iq id="8Slou-46" to="8998d7d4-0882-4f5b-b563-4d403ca2375e@xmpp.xonami.com/Caller" from="8998d7d4-0882-4f5b-b563-4d403ca2375e@xmpp.xonami.com/jitsi-1h9sggl" type="set"><jingle xmlns='urn:xmpp:jingle:1' action='session-info' sid='c09f53s3knsbn'><ringing xmlns='urn:xmpp:jingle:apps:rtp:info:1'/></jingle></iq>
     [java] Caller ----> : <iq id="Qt38m-6" to="8998d7d4-0882-4f5b-b563-4d403ca2375e@xmpp.xonami.com/jitsi-1h9sggl" from="8998d7d4-0882-4f5b-b563-4d403ca2375e@xmpp.xonami.com/Caller" type="set"><jingle xmlns='urn:xmpp:jingle:1' action='session-terminate' sid='c09f53s3knsbn'><reason><connectivity-error/></reason></jingle></iq>
     [java] Caller <---- : <iq id="Qt38m-6" to="8998d7d4-0882-4f5b-b563-4d403ca2375e@xmpp.xonami.com/Caller" from="8998d7d4-0882-4f5b-b563-4d403ca2375e@xmpp.xonami.com/jitsi-1h9sggl" type="result"></iq>

2013-07-23@19.06.05-logs.zip (86.8 KB)