mikesimb / sipml5

Automatically exported from code.google.com/p/sipml5
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Problem in Handling initial INVITE without SDP - no media path #89

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
a) Before posting your issue you MUST answer to the questions otherwise it
will be rejected (invalid status) by us
b) Please check the issue tacker to avoid duplication
c) Please provide network capture (Wireshark) or Javascript console log
if you want quick response

What steps will reproduce the problem?
1. Send an INVITE To call.htm without SDP
2. "Answer" the call, 200 OK goes with offer
3. ACK is received with answer, but it throws error 
4. No media path is established

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

The SDP in ACK should be treated as an answer and processed properly. 

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

Please provide any additional information below.

Hi All,

We are using the Mobicents click2call application to interop with Sipml5.  

The difference in call flow being the initial INVITE comes without SDP.

When the answers comes in ACK, I see the Sipml5 throwing error

                         SetRemoteDescription
          failed.

Can anyone please suggest on what is going wrong in this case? Is this a 
problem of handling initial INVITE without SDP?

recv=INVITE
              sip:...@10.70.53.170:61270;rtcweb-breaker=yes;transport=WS
              SIP/2.0
              Via: SIP/2.0/WS
              10.54.2.49:5082;branch=z9hG4bKf10dafc7-1a89-419d-8a5c-edf92965b3ce_73cd66e0_3383259405120425
From:
              <sip:nan...@10.70.54.72:2757;rtcweb-breaker=yes>;tag=99817463_73cd66e0_f10dafc7-1a89-419d-8a5c-edf92965b3ce
To:
              <sip...@10.70.53.170:61270;rtcweb-breaker=yes>
              Contact:
              <sip:nan...@10.54.2.49:5082;transport=ws>
              Call-ID: 7445f97b0525b5cafd067fce387ec406@10.54.2.49
              CSeq: 1 INVITE
              Content-Length: 0
              Max-Forwards: 70
             tsk_utils.js:110
State machine:
              tsip_transac_ist_Started_2_Proceeding_X_INVITE tsk_utils.js:110
SEND: SIP/2.0 100 Trying (sent from the
              Transaction Layer)
              Via: SIP/2.0/WS
              10.54.2.49:5082;branch=z9hG4bKf10dafc7-1a89-419d-8a5c-edf92965b3ce_73cd66e0_3383259405120425
From:
              <sip:nan...@10.70.54.72:2757;rtcweb-breaker=yes>;tag=99817463_73cd66e0_f10dafc7-1a89-419d-8a5c-edf92965b3ce
To:
              <sip...@10.70.53.170:61270;rtcweb-breaker=yes>
              Call-ID: 7445f97b0525b5cafd067fce387ec406@10.54.2.49
              CSeq: 1 INVITE
              Content-Length: 0
             tsk_utils.js:110
PeerConnectionClass = function
              RTCPeerConnection() { [native code] }
              SessionDescriptionClass = function RTCSessionDescription()
              { [native code] } IceCandidateClass = function
              RTCIceCandidate() { [native code] } tsk_utils.js:110
State machine:
              s0000_Started_2_Ringing_X_iINVITE tsk_utils.js:110
State machine:
              tsip_transac_ist_Proceeding_2_Proceeding_X_1xx tsk_utils.js:110
SEND: SIP/2.0 180 Ringing
              Via: SIP/2.0/WS
              10.54.2.49:5082;branch=z9hG4bKf10dafc7-1a89-419d-8a5c-edf92965b3ce_73cd66e0_3383259405120425
From:
              <sip:nan...@10.70.54.72:2757;rtcweb-breaker=yes>;tag=99817463_73cd66e0_f10dafc7-1a89-419d-8a5c-edf92965b3ce
To:
              <sip...@10.70.53.170:61270;rtcweb-breaker=yes>;tag=cbLeNlJHwm3o5a1HLJRy
Contact:
              <sip...@df7jal23ls0d.invalid;transport=ws>
              Call-ID: 7445f97b0525b5cafd067fce387ec406@10.54.2.49
              CSeq: 1 INVITE
              Content-Length: 0
              Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS,
              PRACK, REFER, UPDATE
             tsk_utils.js:110
==stack event = i_new_call tsk_utils.js:110
State machine:
              s0000_Ringing_2_Connected_X_Accept tsk_utils.js:110
==stack event = m_permission_requested
            tsk_utils.js:110
==session event = connected call.htm:773
onGetUserMediaSuccess tsk_utils.js:110
createOffer tsk_utils.js:110
==stack event = m_permission_accepted
            tsk_utils.js:110
==session event = m_stream_audio_local_added
            call.htm:773
onCreateSdpSuccess tsk_utils.js:110
__on_state_change tsk_utils.js:110
onSetLocalDescriptionSuccess tsk_utils.js:110
onIceCandidate = undefined tsk_utils.js:110
onIceCandidate = undefined tsk_utils.js:110
onIceCandidate = undefined tsk_utils.js:110
onIceCandidate = undefined tsk_utils.js:110
onIceCandidate = undefined tsk_utils.js:110
onIceCandidate = undefined tsk_utils.js:110
onIceCandidate = undefined tsk_utils.js:110
onIceCandidate = undefined tsk_utils.js:110
onIceCandidate = undefined tsk_utils.js:110
ICE GATHERING COMPLETED! tsk_utils.js:110
onIceGatheringCompleted tsk_utils.js:110
State machine:
              tsip_transac_ist_Proceeding_2_Accepted_X_2xx tsk_utils.js:110
SEND: SIP/2.0 200 OK
              Via: SIP/2.0/WS
              10.54.2.49:5082;branch=z9hG4bKf10dafc7-1a89-419d-8a5c-edf92965b3ce_73cd66e0_3383259405120425
From:
              <sip:nan...@10.70.54.72:2757;rtcweb-breaker=yes>;tag=99817463_73cd66e0_f10dafc7-1a89-419d-8a5c-edf92965b3ce
To:
              <sip...@10.70.53.170:61270;rtcweb-breaker=yes>;tag=cbLeNlJHwm3o5a1HLJRy
Contact:
              <sip...@df7jal23ls0d.invalid;transport=ws>
              Call-ID: 7445f97b0525b5cafd067fce387ec406@10.54.2.49
              CSeq: 1 INVITE
              Content-Type: application/sdp
              Content-Length: 2086
              Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS,
              PRACK, REFER, UPDATE
              v=0
              o=- 2339105481 2 IN IP4 127.0.0.1
              s=Doubango Telecom - chrome
              t=0 0
              a=group:BUNDLE audio video
              a=msid-semantic: WMS 8yfdlnwyFnSLPCrEintPlMxmPPHyA4P0WTCT
              m=audio 52279 RTP/SAVPF 103 104 111 0 8 107 106 105 13 126
              c=IN IP4 10.70.53.170
              a=rtcp:52279 IN IP4 10.70.53.170
              a=candidate:3976265052 1 udp 2113937151 10.70.53.170 52279
              typ host generation 0
              a=candidate:3976265052 2 udp 2113937151 10.70.53.170 52279
              typ host generation 0
              a=candidate:2743271852 1 tcp 1509957375 10.70.53.170 61271
              typ host generation 0
              a=candidate:2743271852 2 tcp 1509957375 10.70.53.170 61271
              typ host generation 0
              a=ice-ufrag:oWEKSw8jFoa2nVuR
              a=ice-pwd:Ooweno7KrGzxwUEJ/oLy9mqn
              a=ice-options:google-ice
              a=sendrecv
              a=mid:audio
              a=rtcp-mux
              a=crypto:1 AES_CM_128_HMAC_SHA1_80
              inline:O48ue97FkvNCbb43yyIuDc2FTu3FgijXu9SlH7GT
              a=rtpmap:103 ISAC/16000
              a=rtpmap:104 ISAC/32000
              a=rtpmap:111 opus/48000/2
              a=fmtp:111 minptime=10
              a=rtpmap:0 PCMU/8000
              a=rtpmap:8 PCMA/8000
              a=rtpmap:107 CN/48000
              a=rtpmap:106 CN/32000
              a=rtpmap:105 CN/16000
              a=rtpmap:13 CN/8000
              a=rtpmap:126 telephone-event/8000
              a=maxptime:60
              a=ssrc:1173773566 cname:G8SJvVdM6fRrsvEx
              a=ssrc:1173773566
              msid:8yfdlnwyFnSLPCrEintPlMxmPPHyA4P0WTCT
              8yfdlnwyFnSLPCrEintPlMxmPPHyA4P0WTCTa0
              a=ssrc:1173773566
              mslabel:8yfdlnwyFnSLPCrEintPlMxmPPHyA4P0WTCT
              a=ssrc:1173773566
              label:8yfdlnwyFnSLPCrEintPlMxmPPHyA4P0WTCTa0
              m=video 52279 RTP/SAVPF 100 116 117
              c=IN IP4 10.70.53.170
              a=rtcp:52279 IN IP4 10.70.53.170
              a=candidate:3976265052 1 udp 2113937151 10.70.53.170 52279
              typ host generation 0
              a=candidate:3976265052 2 udp 2113937151 10.70.53.170 52279
              typ host generation 0
              a=candidate:2743271852 1 tcp 1509957375 10.70.53.170 61271
              typ host generation 0
              a=candidate:2743271852 2 tcp 1509957375 10.70.53.170 61271
              typ host generation 0
              a=ice-ufrag:oWEKSw8jFoa2nVuR
              a=ice-pwd:Ooweno7KrGzxwUEJ/oLy9mqn
              a=ice-options:google-ice
              a=sendrecv
              a=mid:video
              a=rtcp-mux
              a=crypto:1 AES_CM_128_HMAC_SHA1_80
              inline:O48ue97FkvNCbb43yyIuDc2FTu3FgijXu9SlH7GT
              a=rtpmap:100 VP8/90000
              a=rtpmap:116 red/90000
              a=rtpmap:117 ulpfec/90000

tsip_transport_ws_onmessage
                  tsk_utils.js:110

recv=ACK
                    sip:...@10.70.53.170:61270;transport=ws SIP/2.0
                    Via: SIP/2.0/WS
                    10.54.2.49:5082;branch=z9hG4bKf10dafc7-1a89-419d-8a5c-edf92965b3ce_73cd66e0_3383287496716914
From:
                    <sip:nan...@10.70.54.72:2757;rtcweb-breaker=yes>;tag=99817463_73cd66e0_f10dafc7-1a89-419d-8a5c-edf92965b3ce
To:
                    <sip...@10.70.53.170:61270;rtcweb-breaker=yes>;tag=cbLeNlJHwm3o5a1HLJRy
Call-ID:
                    7445f97b0525b5cafd067fce387ec406@10.54.2.49
                    CSeq: 1 ACK
                    Content-Type: application/sdp
                    Content-Length: 1946
                    Max-Forwards: 70
                    v=0
                    o=- 3564181990 2 IN IP4 127.0.0.1
                    s=Doubango Telecom - chrome
                    t=0 0
                    a=group:BUNDLE audio video
                    a=msid-semantic: WMS
                    Ny94wYbEitQxTx7GCH0VOofAJrXe0VttoioN
                    m=audio 2766 RTP/SAVPF 103 104 111 0 8 107 106 105
                    13 126
                    c=IN IP4 10.70.54.72
                    a=rtcp:1 IN IP4 0.0.0.0
                    a=candidate:4118777740 1 udp 2113937151 10.70.54.72
                    2766 typ host generation 0
                    a=candidate:3153884028 1 tcp 1509957375 10.70.54.72
                    2767 typ host generation 0
                    a=ice-ufrag:VuvcseaE8UFvI/WD
                    a=ice-pwd:66BHgNrmAAprCaJdYKqSyv7D
                    a=sendrecv
                    a=mid:audio
                    a=rtcp-mux
                    a=crypto:1 AES_CM_128_HMAC_SHA1_80
                    inline:wmrLzxwMw9vThJoFwP2Zece8n3z8sKu4KQfFd596
                    a=rtpmap:103 ISAC/16000
                    a=rtpmap:104 ISAC/32000
                    a=rtpmap:111 opus/48000/2
                    a=fmtp:111 minptime=10
                    a=rtpmap:0 PCMU/8000
                    a=rtpmap:8 PCMA/8000
                    a=rtpmap:107 CN/48000
                    a=rtpmap:106 CN/32000
                    a=rtpmap:105 CN/16000
                    a=rtpmap:13 CN/8000
                    a=rtpmap:126 telephone-event/8000
                    a=maxptime:60
                    a=ssrc:3562602664 cname:IvlmTV4khCnPP9pq
                    a=ssrc:3562602664
                    msid:Ny94wYbEitQxTx7GCH0VOofAJrXe0VttoioN
                    Ny94wYbEitQxTx7GCH0VOofAJrXe0VttoioNa0
                    a=ssrc:3562602664
                    mslabel:Ny94wYbEitQxTx7GCH0VOofAJrXe0VttoioN
                    a=ssrc:3562602664
                    label:Ny94wYbEitQxTx7GCH0VOofAJrXe0VttoioNa0
                    m=video 2766 RTP/SAVPF 100 116 117
                    c=IN IP4 10.70.54.72
                    a=rtcp:1 IN IP4 0.0.0.0
                    a=candidate:4118777740 1 udp 2113937151 10.70.54.72
                    2766 typ host generation 0
                    a=candidate:3153884028 1 tcp 1509957375 10.70.54.72
                    2767 typ host generation 0
                    a=ice-ufrag:VuvcseaE8UFvI/WD
                    a=ice-pwd:66BHgNrmAAprCaJdYKqSyv7D
                    a=sendrecv
                    a=mid:video
                    a=rtcp-mux
                    a=crypto:1 AES_CM_128_HMAC_SHA1_80
                    inline:wmrLzxwMw9vThJoFwP2Zece8n3z8sKu4KQfFd596
                    a=rtpmap:100 VP8/90000
                    a=rtpmap:116 red/90000
                    a=rtpmap:117 ulpfec/90000
                    a=ssrc:1131109151 cname:IvlmTV4khCnPP9pq
                    a=ssrc:1131109151
                    msid:Ny94wYbEitQxTx7GCH0VOofAJrXe0VttoioN
                    Ny94wYbEitQxTx7GCH0VOofAJrXe0VttoioNv0
                    a=ssrc:1131109151
                    mslabel:Ny94wYbEitQxTx7GCH0VOofAJrXe0VttoioN
                    a=ssrc:1131109151
                    label:Ny94wYbEitQxTx7GCH0VOofAJrXe0VttoioNv0
                   tsk_utils.js:110

State machine:
                    tsip_transac_ist_Accepted_2_Accepted_iACK tsk_utils.js:110

State machine:
                    x0000_Connected_2_Connected_X_iACK tsk_utils.js:110

setRemoteDescription(offer)
v=0
o=-
                    3564181990 2 IN IP4 127.0.0.1
                    s=Doubango Telecom - chrome
                    t=0 0
                    a=group:BUNDLE audio video
                    a=msid-semantic: WMS
                    Ny94wYbEitQxTx7GCH0VOofAJrXe0VttoioN
                    m=audio 2766 RTP/SAVPF 103 104 111 0 8 107 106 105
                    13 126
                    c=IN IP4 10.70.54.72
                    a=rtcp:1 IN IP4 0.0.0.0
                    a=candidate:4118777740 1 udp 2113937151 10.70.54.72
                    2766 typ host generation 0
                    a=candidate:3153884028 1 tcp 1509957375 10.70.54.72
                    2767 typ host generation 0
                    a=ice-ufrag:VuvcseaE8UFvI/WD
                    a=ice-pwd:66BHgNrmAAprCaJdYKqSyv7D
                    a=sendrecv
                    a=mid:audio
                    a=rtcp-mux
                    a=crypto:1 AES_CM_128_HMAC_SHA1_80
                    inline:wmrLzxwMw9vThJoFwP2Zece8n3z8sKu4KQfFd596
                    a=rtpmap:103 ISAC/16000
                    a=rtpmap:104 ISAC/32000
                    a=rtpmap:111 opus/48000/2
                    a=fmtp:111 minptime=10
                    a=rtpmap:0 PCMU/8000
                    a=rtpmap:8 PCMA/8000
                    a=rtpmap:107 CN/48000
                    a=rtpmap:106 CN/32000
                    a=rtpmap:105 CN/16000
                    a=rtpmap:13 CN/8000
                    a=rtpmap:126 telephone-event/8000
                    a=maxptime:60
                    a=ssrc:3562602664 cname:IvlmTV4khCnPP9pq
                    a=ssrc:3562602664
                    msid:Ny94wYbEitQxTx7GCH0VOofAJrXe0VttoioN
                    Ny94wYbEitQxTx7GCH0VOofAJrXe0VttoioNa0
                    a=ssrc:3562602664
                    mslabel:Ny94wYbEitQxTx7GCH0VOofAJrXe0VttoioN
                    a=ssrc:3562602664
                    label:Ny94wYbEitQxTx7GCH0VOofAJrXe0VttoioNa0
                    m=video 2766 RTP/SAVPF 100 116 117
                    c=IN IP4 10.70.54.72
                    a=rtcp:1 IN IP4 0.0.0.0
                    a=candidate:4118777740 1 udp 2113937151 10.70.54.72
                    2766 typ host generation 0
                    a=candidate:3153884028 1 tcp 1509957375 10.70.54.72
                    2767 typ host generation 0
                    a=ice-ufrag:VuvcseaE8UFvI/WD
                    a=ice-pwd:66BHgNrmAAprCaJdYKqSyv7D
                    a=sendrecv
                    a=mid:video
                    a=rtcp-mux
                    a=crypto:1 AES_CM_128_HMAC_SHA1_80
                    inline:wmrLzxwMw9vThJoFwP2Zece8n3z8sKu4KQfFd596
                    a=rtpmap:100 VP8/90000
                    a=rtpmap:116 red/90000
                    a=rtpmap:117 ulpfec/90000
                    a=ssrc:1131109151 cname:IvlmTV4khCnPP9pq
                    a=ssrc:1131109151
                    msid:Ny94wYbEitQxTx7GCH0VOofAJrXe0VttoioN
                    Ny94wYbEitQxTx7GCH0VOofAJrXe0VttoioNv0
                    a=ssrc:1131109151
                    mslabel:Ny94wYbEitQxTx7GCH0VOofAJrXe0VttoioN
                    a=ssrc:1131109151
                    label:Ny94wYbEitQxTx7GCH0VOofAJrXe0VttoioNv0
                   tsk_utils.js:110

onSetRemoteDescriptionError
                  tsk_utils.js:110

SetRemoteDescription
                        failed.

Original issue reported on code.google.com by sen.suma...@gmail.com on 13 May 2013 at 6:17

GoogleCodeExporter commented 8 years ago

Original comment by boss...@yahoo.fr on 13 May 2013 at 7:50