pbolognesieustema / sip-js

Automatically exported from code.google.com/p/sip-js
0 stars 0 forks source link

Video flag in Call window is ignored - SIP INVITE still contains the m=video part #9

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Switch off the Video flag in Call window
2. Make call to SIP server
3. Observer the m=video part in SDP

What is the expected output? What do you see instead?

m=video part in SDP need to be present only if Video flag is on

What version of the product are you using? On what operating system?

svn r12

Please provide any additional information below.

Good INVITE with video off (taken from sipml5 log) :

.........

SEND: INVITE sip:1001@10.1.0.100 SIP/2.0
Via: SIP/2.0/WS 
df7jal23ls0d.invalid;branch=z9hG4bKJJ8BmFlZ6nPS9EIyLCdWpiCUe1uIXzuI;rport
From: <sip:100@10.1.1.100>;tag=loMcQKMEt81nnuR7u0MG
To: <sip:1001@10.1.0.100>
Contact: "Rus"<sip:100@df7jal23ls0d.invalid;transport=ws>;+sip.ice
Call-ID: 42b8ee22-85e8-5bf9-672e-d849d92a10ce
CSeq: 23781 INVITE
Content-Type: application/sdp
Content-Length: 1753
Max-Forwards: 70
User-Agent: IM-client/OMA1.0 sipML5/v0.0.0000.0
Organization: Doubango Telecom

v=0
o=- 632935012 1 IN IP4 127.0.0.1
s=webrtc (chrome 22.0.1189.0) - Doubango Telecom (sipML5 r000)
t=0 0
a=group:BUNDLE audio video
m=audio 41817 RTP/SAVPF 103 104 0 8 106 105 13 126
c=IN IP4 10.1.1.100
a=rtcp:41817 IN IP4 10.1.1.100
a=candidate:4167255511 1 udp 2130714367 10.1.1.100 41817 typ host generation 0
a=candidate:4167255511 2 udp 2130714367 10.1.1.100 41817 typ host generation 0
a=candidate:2130130809 1 udp 2130714367 10.1.1.200 52251 typ host generation 0
a=candidate:2130130809 2 udp 2130714367 10.1.1.200 52251 typ host generation 0
a=candidate:1769095179 1 udp 2130714367 10.0.7.101 42400 typ host generation 0
a=candidate:1769095179 2 udp 2130714367 10.0.7.101 42400 typ host generation 0
a=candidate:3068180775 1 tcp 1694506751 10.1.1.100 54898 typ host generation 0
a=candidate:3068180775 2 tcp 1694506751 10.1.1.100 54898 typ host generation 0
a=candidate:812960649 1 tcp 1694506751 10.1.1.200 54149 typ host generation 0
a=candidate:812960649 2 tcp 1694506751 10.1.1.200 54149 typ host generation 0
a=candidate:670153979 1 tcp 1694506751 10.0.7.101 60272 typ host generation 0
a=candidate:670153979 2 tcp 1694506751 10.0.7.101 60272 typ host generation 0
a=ice-ufrag:hcSpqH+iOwIyOiia
a=ice-pwd:GWoep5nuR2PalrWKBWXGapKt
a=sendrecv
a=mid:audio
a=rtcp-mux
a=crypto:1 AES_CM_128_HMAC_SHA1_80 
inline:NYjv0Y+JkNUnpeBGfJY6T5nrla99xsqQuWGqV+1x 
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
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:2200739542 cname:ucn0tRs180QeChSC
a=ssrc:2200739542 mslabel:3e5YMq4OZMmYtj1Fi8nZDHwPan5ZS1ADdFVV
a=ssrc:2200739542 label:3e5YMq4OZMmYtj1Fi8nZDHwPan5ZS1ADdFVV00
...........

Bad INVITE with video off (taken from sip-js log) :

........
INVITE sip:1001 SIP/2.0
Via: SIP/2.0/WS 
r3815967207.invalid;rport;branch=z9hG4bKZjI1YmY5OGYyM2VmNTUzMTI0YjNjNzMzZDZlMGVm
NmM.
From: "First Last" <sip:100@localhost>;tag=61151206415415258794
To: <sip:1001>
Call-ID: 1457032438@r3815967207.invalid
CSeq: 1 INVITE
Max-Forwards: 70
Contact: <sip:100@localhost>
Route: <sip:localhost:8088;lr>
Content-Length: 3000
User-Agent: sip-js/1.0
X-Webrtc: 
eyJtZXNzYWdlVHlwZSI6Ik9GRkVSIiwib2ZmZXJlclNlc3Npb25JZCI6Im1kenUxbXd2UUFvMXlFZUxH
RHplWms4OFFPWWNXSUJmIiwic2VxIjoxLCJ0aWVCcmVha2VyIjozNTg0MDQwNDczfQ==
Content-Type: application/sdp

v=0
o=- 3644358798 1 IN IP4 127.0.0.1
s=
t=0 0
a=group:BUNDLE audio video
m=audio 50800 RTP/SAVPF 103 104 0 8 106 105 13 126
c=IN IP4 10.1.1.100
a=rtcp:50800 IN IP4 10.1.1.100
a=candidate:4167255511 1 udp 2130714367 10.1.1.100 50800 typ host generation 0
a=candidate:4167255511 2 udp 2130714367 10.1.1.100 50800 typ host generation 0
a=candidate:2130130809 1 udp 2130714367 10.1.1.200 50711 typ host generation 0
a=candidate:2130130809 2 udp 2130714367 10.1.1.200 50711 typ host generation 0
a=candidate:1769095179 1 udp 2130714367 10.0.7.101 46492 typ host generation 0
a=candidate:1769095179 2 udp 2130714367 10.0.7.101 46492 typ host generation 0
a=candidate:3068180775 1 tcp 1694506751 10.1.1.100 33159 typ host generation 0
a=candidate:3068180775 2 tcp 1694506751 10.1.1.100 33159 typ host generation 0
a=candidate:812960649 1 tcp 1694506751 10.1.1.200 41314 typ host generation 0
a=candidate:812960649 2 tcp 1694506751 10.1.1.200 41314 typ host generation 0
a=candidate:670153979 1 tcp 1694506751 10.0.7.101 56016 typ host generation 0
a=candidate:670153979 2 tcp 1694506751 10.0.7.101 56016 typ host generation 0
a=ice-ufrag:iwq9tR7u0wA6/FeE
a=ice-pwd:RR7oOGT/1Q69c7a+/jvU1UmQ
a=sendrecv
a=mid:audio
a=rtcp-mux
a=crypto:1 AES_CM_128_HMAC_SHA1_80 
inline:O228GA97U9W55zEFYMV9m7AVcivVv0ehBXl9ZMSQ 
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
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:157283963 cname:I2pKvWLdDw8Oi6op
a=ssrc:157283963 mslabel:GGTlvjz2GJdvFUiloMbNuZx6wXLxHmDc2C7O
a=ssrc:157283963 label:GGTlvjz2GJdvFUiloMbNuZx6wXLxHmDc2C7O00
m=video 50800 RTP/SAVPF 100 101 102
c=IN IP4 10.1.1.100
a=rtcp:50800 IN IP4 10.1.1.100
a=candidate:4167255511 1 udp 2130714367 10.1.1.100 50800 typ host generation 0
a=candidate:4167255511 2 udp 2130714367 10.1.1.100 50800 typ host generation 0
a=candidate:2130130809 1 udp 2130714367 10.1.1.200 50711 typ host generation 0
a=candidate:2130130809 2 udp 2130714367 10.1.1.200 50711 typ host generation 0
a=candidate:1769095179 1 udp 2130714367 10.0.7.101 46492 typ host generation 0
a=candidate:1769095179 2 udp 2130714367 10.0.7.101 46492 typ host generation 0
a=candidate:3068180775 1 tcp 1694506751 10.1.1.100 33159 typ host generation 0
a=candidate:3068180775 2 tcp 1694506751 10.1.1.100 33159 typ host generation 0
a=candidate:812960649 1 tcp 1694506751 10.1.1.200 41314 typ host generation 0
a=candidate:812960649 2 tcp 1694506751 10.1.1.200 41314 typ host generation 0
a=candidate:670153979 1 tcp 1694506751 10.0.7.101 56016 typ host generation 0
a=candidate:670153979 2 tcp 1694506751 10.0.7.101 56016 typ host generation 0
a=ice-ufrag:iwq9tR7u0wA6/FeE
a=ice-pwd:RR7oOGT/1Q69c7a+/jvU1UmQ
a=sendrecv
a=mid:video
a=rtcp-mux
a=crypto:1 AES_CM_128_HMAC_SHA1_80 
inline:O228GA97U9W55zEFYMV9m7AVcivVv0ehBXl9ZMSQ 
a=rtpmap:100 VP8/90000
a=rtpmap:101 red/90000
a=rtpmap:102 ulpfec/90000
........

This issue prevents making the audio calls only.

Original issue reported on code.google.com by sfinx.so...@gmail.com on 29 Aug 2012 at 9:15