amitpahune / jain-sip

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

Exception when receving a CANCEL #49

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Send an INVITE and CANCEL it

What is the expected output? What do you see instead?
I would expect the listener to be called, instead an exception is logged in the 
console 

What version of the product are you using? On what operating system?
latest svn on google canary.

Please provide any additional information below.
Copy&paste from the console:

SIP message received: INVITE sip:101@95.122.229.88:52849;transport=ws SIP/2.0
Call-ID: e8a51dd285071f4b7b4d9991da41e3cf@208.38.164.6
CSeq: 1 INVITE
From: 
<sip:webrtc@208.38.164.6>;tag=29333067_3d5109ff_77d485e5-956c-4261-a33c-f43b0491
91b7
To: <sip:101@208.38.164.6>
Max-Forwards: 70
Contact: <sip:webrtc@208.38.164.6:5082;transport=ws>
Content-Type: application/sdp
Via: SIP/2.0/WS 
208.38.164.6:5082;branch=z9hG4bK77d485e5-956c-4261-a33c-f43b049191b7_3d5109ff_25
28434330093335;rport
Content-Length: 4069

v=0
o=- 2183589562 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio video
a=msid-semantic: WMS Bb4VdVsIPwBJuXU7ibJqqAw82qhyIc7K9VNu
m=audio 61818 RTP/SAVPF 103 104 111 0 8 107 106 105 13 126
c=IN IP4 95.122.229.88
a=rtcp:61818 IN IP4 95.122.229.88
a=candidate:4242042849 1 udp 2113937151 192.168.153.1 61817 typ host generation 
0
a=candidate:4242042849 2 udp 2113937151 192.168.153.1 61817 typ host generation 
0
a=candidate:2896278100 1 udp 2113937151 192.168.1.36 61818 typ host generation 0
a=candidate:2896278100 2 udp 2113937151 192.168.1.36 61818 typ host generation 0
a=candidate:3471623853 1 udp 2113937151 192.168.64.1 61819 typ host generation 0
a=candidate:3471623853 2 udp 2113937151 192.168.64.1 61819 typ host generation 0
a=candidate:1521601408 1 udp 1845501695 95.122.229.88 61818 typ srflx raddr 
192.168.1.36 rport 61818 generation 0
a=candidate:1521601408 2 udp 1845501695 95.122.229.88 61818 typ srflx raddr 
192.168.1.36 rport 61818 generation 0
a=candidate:2992345873 1 tcp 1509957375 192.168.153.1 52851 typ host generation 
0
a=candidate:2992345873 2 tcp 1509957375 192.168.153.1 52851 typ host generation 
0
a=candidate:3793899172 1 tcp 1509957375 192.168.1.36 52852 typ host generation 0
a=candidate:3793899172 2 tcp 1509957375 192.168.1.36 52852 typ host generation 0
a=candidate:2154773085 1 tcp 1509957375 192.168.64.1 52853 typ host generation 0
a=candidate:2154773085 2 tcp 1509957375 192.168.64.1 52853 typ host generation 0
a=ice-ufrag:C7ACspHwhBfyKBoB
a=ice-pwd:bCJoQbbVEFcMrzx/jYa62xAE
a=ice-options:google-ice
a=sendrecv
a=mid:audio
a=rtcp-mux
a=crypto:1 AES_CM_128_HMAC_SHA1_80 
inline:0dGhFqEzuixLqECHfTr8VlAWcnw3aA9KjoI/BgFa
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:111 opus/48000/2
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=ssrc:74897746 cname:f5ybpB+qZQ/fsR8K
a=ssrc:74897746 msid:Bb4VdVsIPwBJuXU7ibJqqAw82qhyIc7K9VNu 
Bb4VdVsIPwBJuXU7ibJqqAw82qhyIc7K9VNua0
a=ssrc:74897746 mslabel:Bb4VdVsIPwBJuXU7ibJqqAw82qhyIc7K9VNu
a=ssrc:74897746 label:Bb4VdVsIPwBJuXU7ibJqqAw82qhyIc7K9VNua0
m=video 61818 RTP/SAVPF 100 116 117
c=IN IP4 95.122.229.88
a=rtcp:61818 IN IP4 95.122.229.88
a=candidate:4242042849 1 udp 2113937151 192.168.153.1 61817 typ host generation 
0
a=candidate:4242042849 2 udp 2113937151 192.168.153.1 61817 typ host generation 
0
a=candidate:2896278100 1 udp 2113937151 192.168.1.36 61818 typ host generation 0
a=candidate:2896278100 2 udp 2113937151 192.168.1.36 61818 typ host generation 0
a=candidate:3471623853 1 udp 2113937151 192.168.64.1 61819 typ host generation 0
a=candidate:3471623853 2 udp 2113937151 192.168.64.1 61819 typ host generation 0
a=candidate:1521601408 1 udp 1845501695 95.122.229.88 61818 typ srflx raddr 
192.168.1.36 rport 61818 generation 0
a=candidate:1521601408 2 udp 1845501695 95.122.229.88 61818 typ srflx raddr 
192.168.1.36 rport 61818 generation 0
a=candidate:2992345873 1 tcp 1509957375 192.168.153.1 52851 typ host generation 
0
a=candidate:2992345873 2 tcp 1509957375 192.168.153.1 52851 typ host generation 
0
a=candidate:3793899172 1 tcp 1509957375 192.168.1.36 52852 typ host generation 0
a=candidate:3793899172 2 tcp 1509957375 192.168.1.36 52852 typ host generation 0
a=candidate:2154773085 1 tcp 1509957375 192.168.64.1 52853 typ host generation 0
a=candidate:2154773085 2 tcp 1509957375 192.168.64.1 52853 typ host generation 0
a=ice-ufrag:C7ACspHwhBfyKBoB
a=ice-pwd:bCJoQbbVEFcMrzx/jYa62xAE
a=ice-options:google-ice
a=sendrecv
a=mid:video
a=rtcp-mux
a=crypto:1 AES_CM_128_HMAC_SHA1_80 
inline:0dGhFqEzuixLqECHfTr8VlAWcnw3aA9KjoI/BgFa
a=rtpmap:100 VP8/90000
a=rtpmap:116 red/90000
a=rtpmap:117 ulpfec/90000
a=ssrc:1978828575 cname:f5ybpB+qZQ/fsR8K
a=ssrc:1978828575 msid:Bb4VdVsIPwBJuXU7ibJqqAw82qhyIc7K9VNu 
Bb4VdVsIPwBJuXU7ibJqqAw82qhyIc7K9VNuv0
a=ssrc:1978828575 mslabel:Bb4VdVsIPwBJuXU7ibJqqAw82qhyIc7K9VNu
a=ssrc:1978828575 label:Bb4VdVsIPwBJuXU7ibJqqAw82qhyIc7K9VNuv0
 jain-sip.js:15420
WebRTCPhoneUA:processRequest() WebRTCPhoneUA.js:409
WebRTCPhoneUA:handleStateMachineInvitedRequestEvent(): 
this.invitedState=INVITED_INITIAL_STATE WebRTCPhoneUA.js:1142
SIP message sent: SIP/2.0 180 Ringing
Call-ID: e8a51dd285071f4b7b4d9991da41e3cf@208.38.164.6
CSeq: 1 INVITE
From: 
<sip:webrtc@208.38.164.6>;tag=29333067_3d5109ff_77d485e5-956c-4261-a33c-f43b0491
91b7
To: <sip:101@208.38.164.6>;tag=1359036147432
Max-Forwards: 70
Via: SIP/2.0/WS 
208.38.164.6:5082;branch=z9hG4bK77d485e5-956c-4261-a33c-f43b049191b7_3d5109ff_25
28434330093335;rport
Contact: <sip:101@RQVAVVZfnWTu.invalid;transport=ws>
User-Agent: WebRTCPhoneUA
Content-Length: 0

 jain-sip.js:20684
WebRTCPhoneUA:handleStateMachineInvitedRequestEvent(): sipUri.getUser()=webrtc 
WebRTCPhoneUA.js:1162
SIP message received: CANCEL sip:101@95.122.229.88:52849;transport=ws SIP/2.0
Call-ID: e8a51dd285071f4b7b4d9991da41e3cf@208.38.164.6
To: <sip:101@208.38.164.6>
CSeq: 1 CANCEL
From: 
<sip:webrtc@208.38.164.6>;tag=29333067_3d5109ff_77d485e5-956c-4261-a33c-f43b0491
91b7
Via: SIP/2.0/WS 
208.38.164.6:5082;branch=z9hG4bK77d485e5-956c-4261-a33c-f43b049191b7_3d5109ff_25
28434330093335;rport
Max-Forwards: 70
Content-Length: 0

 jain-sip.js:15420
SipProviderImpl:sendResponse(): transaction exists -- cannot send response 
statelessly jain-sip.js:26661
SipProviderImpl.sendResponse jain-sip.js:26661
DialogFilter.processRequest jain-sip.js:25888
SIPServerTransaction.processRequest jain-sip.js:24126
WSMsgParser.processMessage jain-sip.js:15437
WSMsgParser.parsermessage jain-sip.js:15421
websocket.onmessage jain-sip.js:20645
Uncaught SipProviderImpl:sendResponse(): transaction exists -- cannot send 
response statelessly jain-sip.js:26662
SipProviderImpl.sendResponse jain-sip.js:26662
DialogFilter.processRequest jain-sip.js:25888
SIPServerTransaction.processRequest jain-sip.js:24126
WSMsgParser.processMessage jain-sip.js:15437
WSMsgParser.parsermessage jain-sip.js:15421
websocket.onmessage

Original issue reported on code.google.com by sergio.g...@gmail.com on 24 Jan 2013 at 2:17

GoogleCodeExporter commented 8 years ago

Original comment by laurent....@gmail.com on 28 Jan 2013 at 4:53

GoogleCodeExporter commented 8 years ago

Original comment by laurent....@gmail.com on 29 Jan 2013 at 11:22