I am testing VoIP business using cipango as a sip server and I had found a question appears occasionally:
The scenes is user c invite user h, user h reply 200 OK, user c send ACK, and then user c and user h establish a success sip session. But when I try to end the session by send BYE message from user c to the user h, sometimes the BYE was sended successfully and sometimes failure because the cipango reply back with a [481 No Application Session] message directly. The SIP message and session call-id were all correct.
Call-ID: 0f5b95a6-4443-23de-a85d-5c5fe7b8b763
Contact: "c"<sip:c...@df7jal23ls0d.invalid;rtcweb-breaker=no;click2call=no;transport=ws>;+g.oma.sip-im;+sip.ice
Content-Length: 1833
Content-Type: application/sdp
CSeq: 24912 INVITE
Max-Forwards: 70
Organization: Huawei_UCC
User-Agent: Espace WebRTC
Via: SIP/2.0/WS df7jal23ls0d.invalid;branch=z9hG4bKGaT1nLWTIo6Z11To2BBQ7fv5h6Tvn8Gx;rport
v=0
o=- 3220673645713299500 2 IN IP4 127.0.0.1
s=Doubango Telecom - chrome
t=0 0
a=group:BUNDLE audio
a=msid-semantic: WMS x59Y5mJmnvdNpj6v0UOkS3HaIw0lYN8zIGyx
m=audio 60718 RTP/SAVPF 111 103 104 0 8 107 106 105 13 126
c=IN IP4 10.166.41.129
a=rtcp:60718 IN IP4 10.166.41.129
a=candidate:
2062110140 1 udp 2113937151 10.166.41.129 60718 typ host generation 0
a=candidate:
2062110140 2 udp 2113937151 10.166.41.129 60718 typ host generation 0
a=candidate:2694876 1 udp 2113937151 10.166.41.109 60719 typ host generation 0
a=candidate:2694876 2 udp 2113937151 10.166.41.109 60719 typ host generation 0
a=candidate:879407436 1 tcp 1509957375 10.166.41.129 0 typ host generation 0
a=candidate:879407436 2 tcp 1509957375 10.166.41.129 0 typ host generation 0
a=candidate:1319821868 1 tcp 1509957375 10.166.41.109 0 typ host generation 0
a=candidate:1319821868 2 tcp 1509957375 10.166.41.109 0 typ host generation 0
a=ice-ufrag:m4N1lszgQOZgVKsZ
a=ice-pwd:Qbz3guE1lriFODg+f6CA525N
a=ice-options:google-ice
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=sendrecv
a=mid:audio
a=rtcp-mux
a=crypto:0 AES_CM_128_HMAC_SHA1_32 inline:i57hdqkvRJjJFOVz3vI1UHQuqWcy1OK66TbtLVo3
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:HPyhrEbW4zf3WMfOsxZ9nZDPQKDaeQ3eJ7Ah+cSc
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
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:3161698596 cname:YYl5pdqlYkz9AuIC
a=ssrc:3161698596 msid:x59Y5mJmnvdNpj6v0UOkS3HaIw0lYN8zIGyx x59Y5mJmnvdNpj6v0UOkS3HaIw0lYN8zIGyxa0
a=ssrc:3161698596 mslabel:x59Y5mJmnvdNpj6v0UOkS3HaIw0lYN8zIGyx
a=ssrc:3161698596 label:x59Y5mJmnvdNpj6v0UOkS3HaIw0lYN8zIGyxa0
SIP/2.0 100 Trying
Call-ID: 0f5b95a6-4443-23de-a85d-5c5fe7b8b763
CSeq: 24912 INVITE
Via: SIP/2.0/WS df7jal23ls0d.invalid;branch=z9hG4bKGaT1nLWTIo6Z11To2BBQ7fv5h6Tvn8Gx;received=10.166.41.129;rport=22670
Content-Length: 0
INVITE sip:h...@10.166.41.129:22675;transport=ws SIP/2.0
Call-ID: 4HTc8YCTNF1@X00197827
Contact: <sip:10.166.41.129:5060;appid=1Y6.2hm63VKNOwL>
Content-Length: 1833
Content-Type: application/sdp
CSeq: 1 INVITE
Max-Forwards: 70
Via: SIP/2.0/WS 10.166.41.129:18080;branch=z9hG4bK5D3RExLDLFn
v=0
o=- 3220673645713299500 2 IN IP4 127.0.0.1
s=Doubango Telecom - chrome
t=0 0
a=group:BUNDLE audio
a=msid-semantic: WMS x59Y5mJmnvdNpj6v0UOkS3HaIw0lYN8zIGyx
m=audio 60718 RTP/SAVPF 111 103 104 0 8 107 106 105 13 126
c=IN IP4 10.166.41.129
a=rtcp:60718 IN IP4 10.166.41.129
a=candidate:
2062110140 1 udp 2113937151 10.166.41.129 60718 typ host generation 0
a=candidate:
2062110140 2 udp 2113937151 10.166.41.129 60718 typ host generation 0
a=candidate:2694876 1 udp 2113937151 10.166.41.109 60719 typ host generation 0
a=candidate:2694876 2 udp 2113937151 10.166.41.109 60719 typ host generation 0
a=candidate:879407436 1 tcp 1509957375 10.166.41.129 0 typ host generation 0
a=candidate:879407436 2 tcp 1509957375 10.166.41.129 0 typ host generation 0
a=candidate:1319821868 1 tcp 1509957375 10.166.41.109 0 typ host generation 0
a=candidate:1319821868 2 tcp 1509957375 10.166.41.109 0 typ host generation 0
a=ice-ufrag:m4N1lszgQOZgVKsZ
a=ice-pwd:Qbz3guE1lriFODg+f6CA525N
a=ice-options:google-ice
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=sendrecv
a=mid:audio
a=rtcp-mux
a=crypto:0 AES_CM_128_HMAC_SHA1_32 inline:i57hdqkvRJjJFOVz3vI1UHQuqWcy1OK66TbtLVo3
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:HPyhrEbW4zf3WMfOsxZ9nZDPQKDaeQ3eJ7Ah+cSc
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
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:3161698596 cname:YYl5pdqlYkz9AuIC
a=ssrc:3161698596 msid:x59Y5mJmnvdNpj6v0UOkS3HaIw0lYN8zIGyx x59Y5mJmnvdNpj6v0UOkS3HaIw0lYN8zIGyxa0
a=ssrc:3161698596 mslabel:x59Y5mJmnvdNpj6v0UOkS3HaIw0lYN8zIGyx
a=ssrc:3161698596 label:x59Y5mJmnvdNpj6v0UOkS3HaIw0lYN8zIGyxa0
SIP/2.0 100 Trying (sent from the Transaction Layer)
Call-ID: 4HTc8YCTNF1@X00197827
Content-Length: 0
CSeq: 1 INVITE
Via: SIP/2.0/WS 10.166.41.129:18080;branch=z9hG4bK5D3RExLDLFn
SIP/2.0 180 Ringing
Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS, PRACK, REFER, UPDATE
Call-ID: 4HTc8YCTNF1@X00197827
Contact: <sip:h...@df7jal23ls0d.invalid;transport=ws>
Content-Length: 0
CSeq: 1 INVITE
Via: SIP/2.0/WS 10.166.41.129:18080;branch=z9hG4bK5D3RExLDLFn
SIP/2.0 180 Ringing
Call-ID: 0f5b95a6-4443-23de-a85d-5c5fe7b8b763
Contact: <sip:10.166.41.129:18080;transport=ws;appid=1Y6.ML4s7x0fdd>
CSeq: 24912 INVITE
Via: SIP/2.0/WS df7jal23ls0d.invalid;branch=z9hG4bKGaT1nLWTIo6Z11To2BBQ7fv5h6Tvn8Gx;received=10.166.41.129;rport=22670
Content-Length: 0
SIP/2.0 200 OK
Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS, PRACK, REFER, UPDATE
Call-ID: 4HTc8YCTNF1@X00197827
Contact: <sip:h...@df7jal23ls0d.invalid;transport=ws>
Content-Length: 1393
Content-Type: application/sdp
CSeq: 1 INVITE
Via: SIP/2.0/WS 10.166.41.129:18080;branch=z9hG4bK5D3RExLDLFn
v=0
o=- 6084755400264331000 2 IN IP4 127.0.0.1
s=Doubango Telecom - chrome
t=0 0
a=group:BUNDLE audio
a=msid-semantic: WMS ZSPJWL6e1bLZ0FSO4YnMAacXJbAmvzvD62hm
m=audio 60727 RTP/SAVPF 111 103 104 0 8 107 106 105 13 126
c=IN IP4 10.166.41.129
a=rtcp:1 IN IP4 0.0.0.0
a=candidate:
2062110140 1 udp 2113937151 10.166.41.129 60727 typ host generation 0
a=candidate:2694876 1 udp 2113937151 10.166.41.109 60728 typ host generation 0
a=candidate:879407436 1 tcp 1509957375 10.166.41.129 0 typ host generation 0
a=candidate:1319821868 1 tcp 1509957375 10.166.41.109 0 typ host generation 0
a=ice-ufrag:4Bq35es6vtzMdrmX
a=ice-pwd:6/7DHPnobgVD/UCV7dQSezf/
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=sendrecv
a=mid:audio
a=rtcp-mux
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:QV8HULQ2apfvN2YGZ1chzf5GHSutS0zSa8H2ImaE
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
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:2659684898 cname:vKF6ySbKuXQU7izN
a=ssrc:2659684898 msid:ZSPJWL6e1bLZ0FSO4YnMAacXJbAmvzvD62hm ZSPJWL6e1bLZ0FSO4YnMAacXJbAmvzvD62hma0
a=ssrc:2659684898 mslabel:ZSPJWL6e1bLZ0FSO4YnMAacXJbAmvzvD62hm
a=ssrc:2659684898 label:ZSPJWL6e1bLZ0FSO4YnMAacXJbAmvzvD62hma0
SIP/2.0 200 OK
Call-ID: 0f5b95a6-4443-23de-a85d-5c5fe7b8b763
Contact: <sip:10.166.41.129:18080;transport=ws;appid=1Y6.ML4s7x0fdd>
Content-Length: 1393
Content-Type: application/sdp
CSeq: 24912 INVITE
Via: SIP/2.0/WS df7jal23ls0d.invalid;branch=z9hG4bKGaT1nLWTIo6Z11To2BBQ7fv5h6Tvn8Gx;received=10.166.41.129;rport=22670
v=0
o=- 6084755400264331000 2 IN IP4 127.0.0.1
s=Doubango Telecom - chrome
t=0 0
a=group:BUNDLE audio
a=msid-semantic: WMS ZSPJWL6e1bLZ0FSO4YnMAacXJbAmvzvD62hm
m=audio 60727 RTP/SAVPF 111 103 104 0 8 107 106 105 13 126
c=IN IP4 10.166.41.129
a=rtcp:1 IN IP4 0.0.0.0
a=candidate:
2062110140 1 udp 2113937151 10.166.41.129 60727 typ host generation 0
a=candidate:2694876 1 udp 2113937151 10.166.41.109 60728 typ host generation 0
a=candidate:879407436 1 tcp 1509957375 10.166.41.129 0 typ host generation 0
a=candidate:1319821868 1 tcp 1509957375 10.166.41.109 0 typ host generation 0
a=ice-ufrag:4Bq35es6vtzMdrmX
a=ice-pwd:6/7DHPnobgVD/UCV7dQSezf/
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=sendrecv
a=mid:audio
a=rtcp-mux
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:QV8HULQ2apfvN2YGZ1chzf5GHSutS0zSa8H2ImaE
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10
a=rtpmap:103 ISAC/16000
a=rtpmap:104 ISAC/32000
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:2659684898 cname:vKF6ySbKuXQU7izN
a=ssrc:2659684898 msid:ZSPJWL6e1bLZ0FSO4YnMAacXJbAmvzvD62hm ZSPJWL6e1bLZ0FSO4YnMAacXJbAmvzvD62hma0
a=ssrc:2659684898 mslabel:ZSPJWL6e1bLZ0FSO4YnMAacXJbAmvzvD62hm
a=ssrc:2659684898 label:ZSPJWL6e1bLZ0FSO4YnMAacXJbAmvzvD62hma0
ACK sip:10.166.41.129:18080;transport=ws;appid=1Y6.ML4s7x0fdd SIP/2.0
Call-ID: 0f5b95a6-4443-23de-a85d-5c5fe7b8b763
Contact: "c"<sip:c...@df7jal23ls0d.invalid;rtcweb-breaker=no;click2call=no;transport=ws>;+g.oma.sip-im;+sip.ice
Content-Length: 0
CSeq: 24912 ACK
Max-Forwards: 70
Organization: Huawei_UCC
User-Agent: Espace WebRTC
Via: SIP/2.0/WS df7jal23ls0d.invalid;branch=z9hG4bKR2KkJNpzynw2O0VmF5U1;rport
ACK sip:h...@10.166.41.129:22675;transport=ws SIP/2.0
Call-ID: 4HTc8YCTNF1@X00197827
CSeq: 1 ACK
Max-Forwards: 70
Via: SIP/2.0/WS 10.166.41.129:18080;branch=z9hG4bK44LUSCQAFd
Content-Length: 0
BYE sip:10.166.41.129:18080;transport=ws;appid=1Y6.ML4s7x0fdd SIP/2.0
Accept-Contact: *;+g.oma.sip-im, *;+sip.ice
Call-ID: 0f5b95a6-4443-23de-a85d-5c5fe7b8b763
Content-Length: 0
CSeq: 24913 BYE
Max-Forwards: 70
Organization: Huawei_UCC
User-Agent: Espace WebRTC
Via: SIP/2.0/WS df7jal23ls0d.invalid;branch=z9hG4bKE0HS6VFohyuZMwP8mFm2tXyHaNT4IXtF;rport
SIP/2.0 481 No Application Session
Call-ID: 0f5b95a6-4443-23de-a85d-5c5fe7b8b763
CSeq: 24913 BYE
Via: SIP/2.0/WS df7jal23ls0d.invalid;branch=z9hG4bKE0HS6VFohyuZMwP8mFm2tXyHaNT4IXtF;received=10.166.41.129;rport=22670
Content-Length: 0