sipml5
sipml5 copied to clipboard
sdp is too long
I maked a call from chrome, log info shows that the SDP in INVITE is too long. How to shorten?
INVITE sip:[email protected] SIP/2.0 Via: SIP/2.0/WS df7jal23ls0d.invalid;branch=z9hG4bK9dIZUQoTpmWqvLQmGv5GBh08vWWJ25zt;rport From: "1001"sip:[email protected];tag=4n8NPbTBZN7L875nb7zv To: sip:[email protected] Contact: "1001"sip:[email protected];rtcweb-breaker=no;click2call=no;transport=ws;+g.oma.sip-im;language="en,fr" Call-ID: c81b8fad-a31d-d4ac-beea-7acb8e336c46 CSeq: 57881 INVITE Content-Type: application/sdp Content-Length: 3920 Max-Forwards: 70 User-Agent: IM-client/OMA1.0 sipML5-v1.2016.03.04 Organization: Doubango Telecom
v=0 o=- 7785195417178360000 2 IN IP4 127.0.0.1 s=Doubango Telecom - chrome t=0 0 a=group:BUNDLE audio video a=msid-semantic: WMS bliCmKIzuae0hL1Qi9lDWCqpXAzPb33Yy9cp m=audio 62534 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 126 c=IN IP4 10.43.90.148 a=rtcp:62535 IN IP4 10.43.90.148 a=candidate:3922980709 1 udp 2122260223 10.43.90.148 62534 typ host generation 0 network-id 1 a=candidate:3922980709 2 udp 2122260222 10.43.90.148 62535 typ host generation 0 network-id 1 a=candidate:2807042965 1 tcp 1518280447 10.43.90.148 9 typ host tcptype active generation 0 network-id 1 a=candidate:2807042965 2 tcp 1518280446 10.43.90.148 9 typ host tcptype active generation 0 network-id 1 a=ice-ufrag:CkD/ a=ice-pwd:np9wirNlKX22iHbYR5LB41Kk a=fingerprint:sha-256 3B:D5:7A:54:91:CD:61:69:11:2D:0F:2E:34:09:A3:8E:FA:0B:AD:18:5D:17:9A:86:DE:14:39:07:FA:50:C6:1C a=setup:actpass a=mid:audio a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time a=sendrecv a=rtcp-mux a=rtpmap:111 opus/48000/2 a=rtcp-fb:111 transport-cc a=fmtp:111 minptime=10;useinbandfec=1 a=rtpmap:103 ISAC/16000 a=rtpmap:104 ISAC/32000 a=rtpmap:9 G722/8000 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:106 CN/32000 a=rtpmap:105 CN/16000 a=rtpmap:13 CN/8000 a=rtpmap:126 telephone-event/8000 a=ssrc:730356440 cname:jkhcGTKcLzwK68ZA a=ssrc:730356440 msid:bliCmKIzuae0hL1Qi9lDWCqpXAzPb33Yy9cp 529ecf1b-f515-419b-b421-0bf9804b731a a=ssrc:730356440 mslabel:bliCmKIzuae0hL1Qi9lDWCqpXAzPb33Yy9cp a=ssrc:730356440 label:529ecf1b-f515-419b-b421-0bf9804b731a m=video 62536 UDP/TLS/RTP/SAVPF 100 101 107 116 117 96 97 99 98 c=IN IP4 10.43.90.148 a=rtcp:62537 IN IP4 10.43.90.148 a=candidate:3922980709 1 udp 2122260223 10.43.90.148 62536 typ host generation 0 network-id 1 a=candidate:3922980709 2 udp 2122260222 10.43.90.148 62537 typ host generation 0 network-id 1 a=candidate:2807042965 1 tcp 1518280447 10.43.90.148 9 typ host tcptype active generation 0 network-id 1 a=candidate:2807042965 2 tcp 1518280446 10.43.90.148 9 typ host tcptype active generation 0 network-id 1 a=ice-ufrag:CkD/ a=ice-pwd:np9wirNlKX22iHbYR5LB41Kk a=fingerprint:sha-256 3B:D5:7A:54:91:CD:61:69:11:2D:0F:2E:34:09:A3:8E:FA:0B:AD:18:5D:17:9A:86:DE:14:39:07:FA:50:C6:1C a=setup:actpass a=mid:video a=extmap:2 urn:ietf:params:rtp-hdrext:toffset a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time a=extmap:4 urn:3gpp:video-orientation a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay a=sendonly a=rtcp-mux a=rtcp-rsize a=rtpmap:100 VP8/90000 a=rtcp-fb:100 ccm fir a=rtcp-fb:100 nack a=rtcp-fb:100 nack pli a=rtcp-fb:100 goog-remb a=rtcp-fb:100 transport-cc a=rtpmap:101 VP9/90000 a=rtcp-fb:101 ccm fir a=rtcp-fb:101 nack a=rtcp-fb:101 nack pli a=rtcp-fb:101 goog-remb a=rtcp-fb:101 transport-cc a=rtpmap:107 H264/90000 a=rtcp-fb:107 ccm fir a=rtcp-fb:107 nack a=rtcp-fb:107 nack pli a=rtcp-fb:107 goog-remb a=rtcp-fb:107 transport-cc a=fmtp:107 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f a=rtpmap:116 red/90000 a=rtpmap:117 ulpfec/90000 a=rtpmap:96 rtx/90000 a=fmtp:96 apt=100 a=rtpmap:97 rtx/90000 a=fmtp:97 apt=101 a=rtpmap:99 rtx/90000 a=fmtp:99 apt=107 a=rtpmap:98 rtx/90000 a=fmtp:98 apt=116 a=ssrc-group:FID 3650209881 820410689 a=ssrc:3650209881 cname:jkhcGTKcLzwK68ZA a=ssrc:3650209881 msid:bliCmKIzuae0hL1Qi9lDWCqpXAzPb33Yy9cp e70afdde-a9c0-4c72-82fb-a08398352eba a=ssrc:3650209881 mslabel:bliCmKIzuae0hL1Qi9lDWCqpXAzPb33Yy9cp a=ssrc:3650209881 label:e70afdde-a9c0-4c72-82fb-a08398352eba a=ssrc:820410689 cname:jkhcGTKcLzwK68ZA a=ssrc:820410689 msid:bliCmKIzuae0hL1Qi9lDWCqpXAzPb33Yy9cp e70afdde-a9c0-4c72-82fb-a08398352eba a=ssrc:820410689 mslabel:bliCmKIzuae0hL1Qi9lDWCqpXAzPb33Yy9cp a=ssrc:820410689 label:e70afdde-a9c0-4c72-82fb-a08398352eba INVITE sip:[email protected] SIP/2.0 Via: SIP/2.0/WS df7jal23ls0d.invalid;branch=z9hG4bK9dIZUQoTpmWqvLQmGv5GBh08vWWJ25zt;rport From: "1001"sip:[email protected];tag=4n8NPbTBZN7L875nb7zv To: sip:[email protected] Contact: "1001"sip:[email protected];rtcweb-breaker=no;click2call=no;transport=ws;+g.oma.sip-im;language="en,fr" Call-ID: c81b8fad-a31d-d4ac-beea-7acb8e336c46 CSeq: 57881 INVITE Content-Type: application/sdp Content-Length: 3920 Max-Forwards: 70 User-Agent: IM-client/OMA1.0 sipML5-v1.2016.03.04 Organization: Doubango Telecom
v=0 o=- 7785195417178360000 2 IN IP4 127.0.0.1 s=Doubango Telecom - chrome t=0 0 a=group:BUNDLE audio video a=msid-semantic: WMS bliCmKIzuae0hL1Qi9lDWCqpXAzPb33Yy9cp m=audio 62534 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 126 c=IN IP4 10.43.90.148 a=rtcp:62535 IN IP4 10.43.90.148 a=candidate:3922980709 1 udp 2122260223 10.43.90.148 62534 typ host generation 0 network-id 1 a=candidate:3922980709 2 udp 2122260222 10.43.90.148 62535 typ host generation 0 network-id 1 a=candidate:2807042965 1 tcp 1518280447 10.43.90.148 9 typ host tcptype active generation 0 network-id 1 a=candidate:2807042965 2 tcp 1518280446 10.43.90.148 9 typ host tcptype active generation 0 network-id 1 a=ice-ufrag:CkD/ a=ice-pwd:np9wirNlKX22iHbYR5LB41Kk a=fingerprint:sha-256 3B:D5:7A:54:91:CD:61:69:11:2D:0F:2E:34:09:A3:8E:FA:0B:AD:18:5D:17:9A:86:DE:14:39:07:FA:50:C6:1C a=setup:actpass a=mid:audio a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time a=sendrecv a=rtcp-mux a=rtpmap:111 opus/48000/2 a=rtcp-fb:111 transport-cc a=fmtp:111 minptime=10;useinbandfec=1 a=rtpmap:103 ISAC/16000 a=rtpmap:104 ISAC/32000 a=rtpmap:9 G722/8000 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:106 CN/32000 a=rtpmap:105 CN/16000 a=rtpmap:13 CN/8000 a=rtpmap:126 telephone-event/8000 a=ssrc:730356440 cname:jkhcGTKcLzwK68ZA a=ssrc:730356440 msid:bliCmKIzuae0hL1Qi9lDWCqpXAzPb33Yy9cp 529ecf1b-f515-419b-b421-0bf9804b731a a=ssrc:730356440 mslabel:bliCmKIzuae0hL1Qi9lDWCqpXAzPb33Yy9cp a=ssrc:730356440 label:529ecf1b-f515-419b-b421-0bf9804b731a m=video 62536 UDP/TLS/RTP/SAVPF 100 101 107 116 117 96 97 99 98 c=IN IP4 10.43.90.148 a=rtcp:62537 IN IP4 10.43.90.148 a=candidate:3922980709 1 udp 2122260223 10.43.90.148 62536 typ host generation 0 network-id 1 a=candidate:3922980709 2 udp 2122260222 10.43.90.148 62537 typ host generation 0 network-id 1 a=candidate:2807042965 1 tcp 1518280447 10.43.90.148 9 typ host tcptype active generation 0 network-id 1 a=candidate:2807042965 2 tcp 1518280446 10.43.90.148 9 typ host tcptype active generation 0 network-id 1 a=ice-ufrag:CkD/ a=ice-pwd:np9wirNlKX22iHbYR5LB41Kk a=fingerprint:sha-256 3B:D5:7A:54:91:CD:61:69:11:2D:0F:2E:34:09:A3:8E:FA:0B:AD:18:5D:17:9A:86:DE:14:39:07:FA:50:C6:1C a=setup:actpass a=mid:video a=extmap:2 urn:ietf:params:rtp-hdrext:toffset a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time a=extmap:4 urn:3gpp:video-orientation a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay a=sendonly a=rtcp-mux a=rtcp-rsize a=rtpmap:100 VP8/90000 a=rtcp-fb:100 ccm fir a=rtcp-fb:100 nack a=rtcp-fb:100 nack pli a=rtcp-fb:100 goog-remb a=rtcp-fb:100 transport-cc a=rtpmap:101 VP9/90000 a=rtcp-fb:101 ccm fir a=rtcp-fb:101 nack a=rtcp-fb:101 nack pli a=rtcp-fb:101 goog-remb a=rtcp-fb:101 transport-cc a=rtpmap:107 H264/90000 a=rtcp-fb:107 ccm fir a=rtcp-fb:107 nack a=rtcp-fb:107 nack pli a=rtcp-fb:107 goog-remb a=rtcp-fb:107 transport-cc a=fmtp:107 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f a=rtpmap:116 red/90000 a=rtpmap:117 ulpfec/90000 a=rtpmap:96 rtx/90000 a=fmtp:96 apt=100 a=rtpmap:97 rtx/90000 a=fmtp:97 apt=101 a=rtpmap:99 rtx/90000 a=fmtp:99 apt=107 a=rtpmap:98 rtx/90000 a=fmtp:98 apt=116 a=ssrc-group:FID 3650209881 820410689 a=ssrc:3650209881 cname:jkhcGTKcLzwK68ZA a=ssrc:3650209881 msid:bliCmKIzuae0hL1Qi9lDWCqpXAzPb33Yy9cp e70afdde-a9c0-4c72-82fb-a08398352eba a=ssrc:3650209881 mslabel:bliCmKIzuae0hL1Qi9lDWCqpXAzPb33Yy9cp a=ssrc:3650209881 label:e70afdde-a9c0-4c72-82fb-a08398352eba a=ssrc:820410689 cname:jkhcGTKcLzwK68ZA a=ssrc:820410689 msid:bliCmKIzuae0hL1Qi9lDWCqpXAzPb33Yy9cp e70afdde-a9c0-4c72-82fb-a08398352eba a=ssrc:820410689 mslabel:bliCmKIzuae0hL1Qi9lDWCqpXAzPb33Yy9cp a=ssrc:820410689 label:e70afdde-a9c0-4c72-82fb-a08398352eba
I may be seeing the same issue when trying to do an INVITE to Twilio. Twilio sends back a 400 Bad SDP along with X-Twilio-Error: 32102 The SDP is not correctly formatted. It doesn't specifically identify the length as the issue, but I suppose it could be the length that it's puking on...?
Your sip packet is not small (4479 bytes), but not super big. If also can be bigger if you will have more network interfaces (for example, for virtualbox/vmware/etc). Other Javascript sip libraries will give similar packets.
So, this is only a Twilio issue.
Solution for asterisk PBX is to change PJSIP_MAX_PKT_LEN option to 12288 and recompile, probably Twilio team should do something similar.