So you are saying sip.js works fine?
On Thursday, June 11, 2015, Ricardo Hernandez <ricardo.hernandez@cibersys.com> wrote:
Good day, we are trying to use jssip directly with the websocket functionality in Freeswitch, using wss in port 7443.We are using tryit.jssip.net to test the connection with jssip. When the connection is established it shows a message about "Bad Media Description" so we think it is maybe related to the SDP that Freeswitch and jssip exchange.We tried to use jssip with only audio and it seems to ask for video also in the SDP, also we tried sip.js and works good with only audio.What seems different in the SDP is that jssip use:a=group:BUNDLE audio videoa=msid-semantic: WMS PawM1oe2pNKiSnlcrCjI4eaWfWkbHgWHqDn5m=audio 40283 RTP/SAVPF 111 103 104 9 0 8 106 105 13 126And sip.js use:a=group:BUNDLE audioa=msid-semantic: WMS sb3vos9wXefDV2LO3NQmNPJXww23Hh5zK0znm=audio 35907 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 126I am copying the whole INVITE-Response first from jssip and last from sip.js to Freeswitch:Thank you in advance.INVITE sip:9196@conference2.cibersys.com SIP/2.0Via: SIP/2.0/WSS rp3mpnou5jnl.invalid;branch=z9hG4bK8006947Max-Forwards: 69From: <sip:1000@conference2.cibersys.com>;tag=eq4cu21u2rCall-ID: t3dk0o0dj41vcm1agqj2CSeq: 3025 INVITEProxy-Authorization: Digest algorithm=MD5, username="1000", realm="conference2.cibersys.com", nonce="642839d2-6425-4248-a6cc-606f51d4506a", uri="sip:9196@conference2.cibersys.com", response="7f8537dfbfb3de1a34c151d2d2b41307", qop=auth, cnonce="9cr63aqqk5tg", nc=00000001X-Can-Renegotiate: trueContact: <sip:fhh33jaa@rp3mpnou5jnl.invalid;transport=ws;ob>Content-Type: application/sdpAllow: INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONSSupported: ice,outboundUser-Agent: JsSIP 0.6.30Content-Length: 3709v=0o=- 1430994607190998965 2 IN IP4 127.0.0.1s=-t=0 0a=group:BUNDLE audio videoa=msid-semantic: WMS PawM1oe2pNKiSnlcrCjI4eaWfWkbHgWHqDn5m=audio 40283 RTP/SAVPF 111 103 104 9 0 8 106 105 13 126c=IN IP4 200.82.236.209a=rtcp:47588 IN IP4 200.82.236.209a=candidate:2999745851 1 udp 2122194687 192.168.56.1 49826 typ host generation 0a=candidate:1013097898 1 udp 2122129151 10.0.1.8 49827 typ host generation 0a=candidate:2999745851 2 udp 2122194686 192.168.56.1 49828 typ host generation 0a=candidate:1013097898 2 udp 2122129150 10.0.1.8 49829 typ host generation 0a=candidate:50610563 1 udp 1685921535 200.82.236.209 40283 typ srflx raddr 10.0.1.8 rport 49827 generation 0a=candidate:50610563 2 udp 1685921534 200.82.236.209 47588 typ srflx raddr 10.0.1.8 rport 49829 generation 0a=candidate:4233069003 1 tcp 1518214911 192.168.56.1 0 typ host tcptype active generation 0a=candidate:1927371098 1 tcp 1518149375 10.0.1.8 0 typ host tcptype active generation 0a=candidate:4233069003 2 tcp 1518214910 192.168.56.1 0 typ host tcptype active generation 0a=candidate:1927371098 2 tcp 1518149374 10.0.1.8 0 typ host tcptype active generation 0a=ice-ufrag:+BRKFdwXRfJPhO6xa=ice-pwd:aM60hJkwlM6FNqZUqp10mknma=fingerprint:sha-256 34:95:A3:46:CF:B5:8C:3B:5C:E9:1C:80:39:54:67:7F:AA:FA:10:E3:2D:64:0F:00:43:EB:D2:FE:4A:58:0A:DCa=setup:actpassa=mid:audioa=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-levela=sendrecva=rtcp-muxa=rtpmap:111 opus/48000/2a=fmtp:111 minptime=10; useinbandfec=1a=rtpmap:103 ISAC/16000a=rtpmap:104 ISAC/32000a=rtpmap:9 G722/8000a=rtpmap:0 PCMU/8000a=rtpmap:8 PCMA/8000a=rtpmap:106 CN/32000a=rtpmap:105 CN/16000a=rtpmap:13 CN/8000a=rtpmap:126 telephone-event/8000a=maxptime:60a=ssrc:550712101 cname:c9UmE3sQGsfoTBmxa=ssrc:550712101 msid:PawM1oe2pNKiSnlcrCjI4eaWfWkbHgWHqDn5 37864d75-0547-4bf1-aa91-d122004f0169a=ssrc:550712101 mslabel:PawM1oe2pNKiSnlcrCjI4eaWfWkbHgWHqDn5a=ssrc:550712101 label:37864d75-0547-4bf1-aa91-d122004f0169m=video 34574 RTP/SAVPF 100 116 117 96c=IN IP4 200.82.236.209a=rtcp:48136 IN IP4 200.82.236.209a=candidate:2999745851 1 udp 2122194687 192.168.56.1 49830 typ host generation 0a=candidate:1013097898 1 udp 2122129151 10.0.1.8 49831 typ host generation 0a=candidate:2999745851 2 udp 2122194686 192.168.56.1 49832 typ host generation 0a=candidate:1013097898 2 udp 2122129150 10.0.1.8 49833 typ host generation 0a=candidate:50610563 2 udp 1685921534 200.82.236.209 48136 typ srflx raddr 10.0.1.8 rport 49833 generation 0a=candidate:50610563 1 udp 1685921535 200.82.236.209 34574 typ srflx raddr 10.0.1.8 rport 49831 generation 0a=candidate:4233069003 1 tcp 1518214911 192.168.56.1 0 typ host tcptype active generation 0a=candidate:1927371098 1 tcp 1518149375 10.0.1.8 0 typ host tcptype active generation 0a=candidate:4233069003 2 tcp 1518214910 192.168.56.1 0 typ host tcptype active generation 0a=candidate:1927371098 2 tcp 1518149374 10.0.1.8 0 typ host tcptype active generation 0a=ice-ufrag:+BRKFdwXRfJPhO6xa=ice-pwd:aM60hJkwlM6FNqZUqp10mknma=fingerprint:sha-256 34:95:A3:46:CF:B5:8C:3B:5C:E9:1C:80:39:54:67:7F:AA:FA:10:E3:2D:64:0F:00:43:EB:D2:FE:4A:58:0A:DCa=setup:actpassa=mid:videoa=extmap:2 urn:ietf:params:rtp-hdrext:toffseta=extmap:4 urn:3gpp:video-orientationa=recvonlya=rtcp-muxa=rtpmap:100 VP8/90000a=rtcp-fb:100 ccm fira=rtcp-fb:100 nacka=rtcp-fb:100 nack plia=rtcp-fb:100 goog-remba=rtpmap:116 red/90000a=rtpmap:117 ulpfec/90000a=rtpmap:96 rtx/90000a=fmtp:96 apt=100--------------------------------------------------------------SIP/2.0 200 OKVia: SIP/2.0/WSS rp3mpnou5jnl.invalid;branch=z9hG4bK8006947;received=200.82.236.209;rport=35929From: <sip:1000@conference2.cibersys.com>;tag=eq4cu21u2rTo: <sip:9196@conference2.cibersys.com>;tag=3t8cX7KNSpgDDCall-ID: t3dk0o0dj41vcm1agqj2CSeq: 3025 INVITEContact: <sip:9196@167.114.64.133:5060;transport=udp>User-Agent: FreeSWITCH-mod_sofia/1.7.0+git~20150609T042756Z~18063a4754~64bitAccept: application/sdpAllow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH,SUBSCRIBESupported: timer, path, replacesAllow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, referSession-Expires: 120;refresher=uasContent-Type: application/sdpContent-Disposition: sessionContent-Length: 1509Remote-Party-ID: "9196" <sip:9196@conference2.cibersys.com>;party=calling;privacy=off;screen=nov=0o=FreeSWITCH 1433962816 1433962817 IN IP4 167.114.64.133s=FreeSWITCHc=IN IP4 167.114.64.133t=0 0a=msid-semantic: WMS 56duKQZAnkHTimXh0kShnZHA9HK7K17Fm=audio 18690 RTP/SAVPF 0 126a=rtpmap:0 PCMU/8000a=rtpmap:126 telephone-event/8000a=ptime:20a=fingerprint:sha-256 68:8F:C5:D4:DB:3B:F2:05:F6:D2:A0:3A:0F:3E:BF:A5:71:3B:36:EA:9B:CF:23:E4:B2:A9:7C:FC:FB:47:5B:9Ea=setup:activea=rtcp-muxa=rtcp:18690 IN IP4 167.114.64.133a=ice-ufrag:NYH0OfrNM1KnTITHa=ice-pwd:KJ6spVngh1eQukf79NYOSfsva=candidate:0344283282 1 udp 659136 167.114.64.133 18690 typ host generation 0a=ssrc:3313344033 cname:Yb0yRPZ40wO8ICgza=ssrc:3313344033 msid:56duKQZAnkHTimXh0kShnZHA9HK7K17F a0a=ssrc:3313344033 mslabel:56duKQZAnkHTimXh0kShnZHA9HK7K17Fa=ssrc:3313344033 label:56duKQZAnkHTimXh0kShnZHA9HK7K17Fa0m=video 25170 RTP/SAVPF 100b=AS:2048a=rtpmap:100 VP8/90000a=sendonlya=fingerprint:sha-256 68:8F:C5:D4:DB:3B:F2:05:F6:D2:A0:3A:0F:3E:BF:A5:71:3B:36:EA:9B:CF:23:E4:B2:A9:7C:FC:FB:47:5B:9Ea=setup:activea=rtcp-muxa=rtcp:25170 IN IP4 167.114.64.133a=rtcp-fb:100 ccm fira=rtcp-fb:100 nacka=rtcp-fb:100 nack plia=ssrc:2596374144 cname:Yb0yRPZ40wO8ICgza=ssrc:2596374144 msid:56duKQZAnkHTimXh0kShnZHA9HK7K17F v0a=ssrc:2596374144 mslabel:56duKQZAnkHTimXh0kShnZHA9HK7K17Fa=ssrc:2596374144 label:56duKQZAnkHTimXh0kShnZHA9HK7K17Fv0a=ice-ufrag:SGyc7yGzJFAvvmIja=ice-pwd:iaAqXYuZA3a57jtPQRSNgodPa=candidate:6626792977 1 udp 659136 167.114.64.133 25170 typ host generation 0-------------------------------------------INVITE sip:9196@conference2.cibersys.com SIP/2.0Via: SIP/2.0/WSS g4413q00qplk.invalid;branch=z9hG4bK3856295Max-Forwards: 70From: <sip:1000@conference2.cibersys.com>;tag=8i0i1tu4saCall-ID: brrcaauhjvt62n23i72jCSeq: 2276 INVITEContact: <sip:re2ehtpr@g4413q00qplk.invalid;transport=ws;ob>Allow: ACK,CANCEL,BYE,OPTIONS,INFO,NOTIFY,INVITE,MESSAGEContent-Type: application/sdpSupported: outboundUser-Agent: SIP.js/0.6.3-devel BBContent-Length: 2105v=0o=- 3214222955446291314 2 IN IP4 127.0.0.1s=-t=0 0a=group:BUNDLE audioa=msid-semantic: WMS sb3vos9wXefDV2LO3NQmNPJXww23Hh5zK0znm=audio 35907 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 126c=IN IP4 200.82.236.209a=rtcp:43823 IN IP4 200.82.236.209a=candidate:2999745851 1 udp 2122194687 192.168.56.1 64356 typ host generation 0a=candidate:1013097898 1 udp 2122129151 10.0.1.8 64357 typ host generation 0a=candidate:2999745851 2 udp 2122194686 192.168.56.1 64358 typ host generation 0a=candidate:1013097898 2 udp 2122129150 10.0.1.8 64359 typ host generation 0a=candidate:4233069003 1 tcp 1518214911 192.168.56.1 0 typ host tcptype active generation 0a=candidate:1927371098 1 tcp 1518149375 10.0.1.8 0 typ host tcptype active generation 0a=candidate:4233069003 2 tcp 1518214910 192.168.56.1 0 typ host tcptype active generation 0a=candidate:1927371098 2 tcp 1518149374 10.0.1.8 0 typ host tcptype active generation 0a=candidate:50610563 1 udp 1685921535 200.82.236.209 35907 typ srflx raddr 10.0.1.8 rport 64357 generation 0a=candidate:50610563 2 udp 1685921534 200.82.236.209 43823 typ srflx raddr 10.0.1.8 rport 64359 generation 0a=ice-ufrag:qbn8dYtQ7XOYCeu8a=ice-pwd:qMkTalQhiMGIO5EdyBWGOP+ia=fingerprint:sha-256 6B:98:3C:1C:65:BC:C7:03:9C:6F:3E:3C:C4:DB:DF:64:42:2D:46:67:9D:71:1E:10:AB:3A:32:FD:3A:B5:32:82a=setup:actpassa=mid:audioa=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-levela=sendrecva=rtcp-muxa=rtpmap:111 opus/48000/2a=fmtp:111 minptime=10; useinbandfec=1a=rtpmap:103 ISAC/16000a=rtpmap:104 ISAC/32000a=rtpmap:9 G722/8000a=rtpmap:0 PCMU/8000a=rtpmap:8 PCMA/8000a=rtpmap:106 CN/32000a=rtpmap:105 CN/16000a=rtpmap:13 CN/8000a=rtpmap:126 telephone-event/8000a=maxptime:60a=ssrc:1770879119 cname:Z4x7vzi6Pgjt5LSza=ssrc:1770879119 msid:sb3vos9wXefDV2LO3NQmNPJXww23Hh5zK0zn 28966a00-fcda-4d5c-8b42-2d232033a248a=ssrc:1770879119 mslabel:sb3vos9wXefDV2LO3NQmNPJXww23Hh5zK0zna=ssrc:1770879119 label:28966a00-fcda-4d5c-8b42-2d232033a248------------------------------------SIP/2.0 200 OKVia: SIP/2.0/WSS g4413q00qplk.invalid;branch=z9hG4bK4420536;received=200.82.236.209;rport=38294From: <sip:1000@conference2.cibersys.com>;tag=8i0i1tu4saTo: <sip:9196@conference2.cibersys.com>;tag=87685e86a3ZaQCall-ID: brrcaauhjvt62n23i72jCSeq: 2277 INVITEContact: <sip:9196@167.114.64.133:5060;transport=udp>User-Agent: FreeSWITCH-mod_sofia/1.7.0+git~20150609T042756Z~18063a4754~64bitAccept: application/sdpAllow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH,SUBSCRIBESupported: timer, path, replacesAllow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, referSession-Expires: 120;refresher=uasContent-Type: application/sdpContent-Disposition: sessionContent-Length: 823Remote-Party-ID: "9196" <sip:9196@conference2.cibersys.com>;party=calling;privacy=off;screen=nov=0o=FreeSWITCH 1433961875 1433961876 IN IP4 167.114.64.133s=FreeSWITCHc=IN IP4 167.114.64.133t=0 0a=msid-semantic: WMS avWcdKMQxwOgv3mzbNyZb72DIOJmABIAm=audio 19902 UDP/TLS/RTP/SAVPF 0 126a=rtpmap:0 PCMU/8000a=rtpmap:126 telephone-event/8000a=ptime:20a=fingerprint:sha-256 68:8F:C5:D4:DB:3B:F2:05:F6:D2:A0:3A:0F:3E:BF:A5:71:3B:36:EA:9B:CF:23:E4:B2:A9:7C:FC:FB:47:5B:9Ea=setup:activea=rtcp-muxa=rtcp:19902 IN IP4 167.114.64.133a=ice-ufrag:oM6qJYUhCtt3V2uIa=ice-pwd:nXyi35Bvh0jmBxtQ9p7IeRQGa=candidate:2466874999 1 udp 659136 167.114.64.133 19902 typ host generation 0a=ssrc:3313344305 cname:WuD05fGsClzYfLnga=ssrc:3313344305 msid:avWcdKMQxwOgv3mzbNyZb72DIOJmABIA a0a=ssrc:3313344305 mslabel:avWcdKMQxwOgv3mzbNyZb72DIOJmABIAa=ssrc:3313344305 label:avWcdKMQxwOgv3mzbNyZb72DIOJmABIAa0