Hi,
I have a provider that requires proxy auth for all outgoing calls so I create the following config:
``` loadmodule "uac.so" loadmodule "dialog.so" modparam("dialog", "dlg_flag", 4) modparam("dialog", "track_cseq_updates", 1) modparam("dialog", "send_bye", 1) modparam("dialog", "timeout_noreset", 1) modparam("uac","auth_realm_avp","$avp(s:auth_realm_avp)") modparam("uac","auth_username_avp","$avp(s:auth_username_avp)") modparam("uac","auth_password_avp","$avp(s:auth_password_avp)")
route { ...... dlg_manage();
# dispatch destinations to PSTN route(PSTN);
...... }
failure_route[MANAGE_FAILURE] { route(NATMANAGE);
if (t_is_canceled()) { exit; } if (t_check_status("401|407")) { $avp(s:auth_realm_avp) = "realm"; $avp(s:auth_username_avp) = "user"; $avp(s:auth_password_avp) = "pass"; if (uac_auth()) { xlog("L_INFO", "[MANAGE_FAILURE] did auth. Relaying to new destination. from=$fu, callee-selected-by=$ou, uri=$ru"); t_relay(); exit; } else { xlog("L_INFO", "[MANAGE_FAILURE] no matching realm found. realm=$ar"); } } } ```
Based on this authentication happens correctly however when canceling the call from the caller side, incorrect CSeq value is sent to the PSTN trunk:
INVITE sip:48221028000@__provider__:6050 SIP/2.0 Record-Route: sip:x.x.216.50;lr=on;ftag=327099285;did=14e.8df Max-Forwards: 19 Via: SIP/2.0/UDP x.x.216.50;branch=z9hG4bKa108.115652a5d470ecc5427124e7926af3b2.0 Via: SIP/2.0/UDP x.x.219.61:1049;received=x.x.219.61;rport=1049;branch=z9hG4bK1237457362 From: sip:48221028008@x.x.216.50;tag=327099285 To: sip:48221028000@x.x.216.50 Call-ID: 1015351791@x.x.216.50 Allow: ACK, INVITE, BYE, CANCEL, OPTIONS, INFO CSeq: 74 INVITE Content-Type: application/sdp Content-Length: 481
v=0 o=yate 1483794545 1483794545 IN IP4 x.x.219.61 s=SIP Call c=IN IP4 x.x.219.61 t=0 0 m=audio 21596 RTP/AVP 0 8 11 98 97 102 103 104 105 106 101 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:11 L16/8000 a=rtpmap:98 iLBC/8000 a=fmtp:98 mode=20 a=rtpmap:97 iLBC/8000 a=fmtp:97 mode=30 a=rtpmap:102 SPEEX/8000 a=rtpmap:103 SPEEX/16000 a=rtpmap:104 SPEEX/32000 a=rtpmap:105 iSAC/16000 a=rtpmap:106 iSAC/32000 a=rtpmap:101 telephone-event/8000 a=ptime:30
SIP/2.0 407 Proxy Authentication Required Via: SIP/2.0/UDP x.x.216.50;branch=z9hG4bKa108.115652a5d470ecc5427124e7926af3b2.0;received=x.x.216.50 Via: SIP/2.0/UDP x.x.219.61:1049;received=x.x.219.61;rport=1049;branch=z9hG4bK1237457362 From: sip:48221028008@x.x.216.50;tag=327099285 To: sip:48221028000@x.x.216.50;tag=as386df8c6 Call-ID: 1015351791@x.x.216.50 CSeq: 74 INVITE User-Agent: Adescom CTM5000 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO Max-Forwards: 70 Proxy-Authenticate: Digest realm="adescom", nonce="080cd7c6" Content-Length: 0
ACK sip:48221028000@__provider__:6050 SIP/2.0 Max-Forwards: 19 Via: SIP/2.0/UDP x.x.216.50;branch=z9hG4bKa108.115652a5d470ecc5427124e7926af3b2.0 From: sip:48221028008@x.x.216.50;tag=327099285 To: sip:48221028000@x.x.216.50;tag=as386df8c6 Call-ID: 1015351791@x.x.216.50 CSeq: 74 ACK Content-Length: 0
INVITE sip:48221028000@__provider__:6050 SIP/2.0 Record-Route: sip:x.x.216.50;lr=on;ftag=327099285;did=14e.8df Max-Forwards: 19 Via: SIP/2.0/UDP x.x.216.50;branch=z9hG4bKa108.115652a5d470ecc5427124e7926af3b2.1.cs74 Via: SIP/2.0/UDP x.x.219.61:1049;received=x.x.219.61;rport=1049;branch=z9hG4bK1237457362 From: sip:48221028008@x.x.216.50;tag=327099285 To: sip:48221028000@x.x.216.50 Call-ID: 1015351791@x.x.216.50 Allow: ACK, INVITE, BYE, CANCEL, OPTIONS, INFO CSeq: 75 INVITE Content-Type: application/sdp Content-Length: 481 Proxy-Authorization: Digest username="___USER___", realm="adescom", nonce="080cd7c6", uri="sip:48221028000@__provider__:6050", response="521afedacdfa7033339e4956580bb0ec", algorithm=MD5
v=0 o=yate 1483794545 1483794545 IN IP4 x.x.219.61 s=SIP Call c=IN IP4 x.x.219.61 t=0 0 m=audio 21596 RTP/AVP 0 8 11 98 97 102 103 104 105 106 101 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:11 L16/8000 a=rtpmap:98 iLBC/8000 a=fmtp:98 mode=20 a=rtpmap:97 iLBC/8000 a=fmtp:97 mode=30 a=rtpmap:102 SPEEX/8000 a=rtpmap:103 SPEEX/16000 a=rtpmap:104 SPEEX/32000 a=rtpmap:105 iSAC/16000 a=rtpmap:106 iSAC/32000 a=rtpmap:101 telephone-event/8000 a=ptime:30
SIP/2.0 100 Trying Via: SIP/2.0/UDP x.x.216.50;branch=z9hG4bKa108.115652a5d470ecc5427124e7926af3b2.1.cs74;received=x.x.216.50 Via: SIP/2.0/UDP x.x.219.61:1049;received=x.x.219.61;rport=1049;branch=z9hG4bK1237457362 From: sip:48221028008@x.x.216.50;tag=327099285 To: sip:48221028000@x.x.216.50 Call-ID: 1015351791@x.x.216.50 CSeq: 75 INVITE User-Agent: Adescom CTM5000 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO Max-Forwards: 70 Contact: sip:48221028000@85.14.79.130:6050 Content-Length: 0 X-CTMG-HangupCause: Normal Clearing
SIP/2.0 183 Session Progress Via: SIP/2.0/UDP x.x.216.50;branch=z9hG4bKa108.115652a5d470ecc5427124e7926af3b2.1.cs74;received=x.x.216.50 Via: SIP/2.0/UDP x.x.219.61:1049;received=x.x.219.61;rport=1049;branch=z9hG4bK1237457362 From: sip:48221028008@x.x.216.50;tag=327099285 To: sip:48221028000@x.x.216.50;tag=as1fa0d5d0 Call-ID: 1015351791@x.x.216.50 CSeq: 75 INVITE User-Agent: Adescom CTM5000 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO Max-Forwards: 70 Contact: sip:48221028000@85.14.79.130:6050 Content-Type: application/sdp Content-Length: 226
v=0 o=root 7839 7839 IN IP4 85.14.79.130 s=session c=IN IP4 85.14.79.130 t=0 0 m=audio 30688 RTP/AVP 8 101 a=rtpmap:8 PCMA/8000 a=ptime:20 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=silenceSupp:off - - - -
CANCEL sip:48221028000@__provider__:6050 SIP/2.0 Max-Forwards: 19 Via: SIP/2.0/UDP x.x.216.50;branch=z9hG4bKa108.115652a5d470ecc5427124e7926af3b2.1 From: sip:48221028008@x.x.216.50;tag=327099285 To: sip:48221028000@x.x.216.50 Call-ID: 1015351791@x.x.216.50 CSeq: 74 CANCEL Content-Length: 0
SIP/2.0 500 Server error Via: SIP/2.0/UDP x.x.216.50;branch=z9hG4bKa108.115652a5d470ecc5427124e7926af3b2.1;received=x.x.216.50 From: sip:48221028008@x.x.216.50;tag=327099285 To: sip:48221028000@x.x.216.50;tag=as1fa0d5d0 Call-ID: 1015351791@x.x.216.50 CSeq: 74 CANCEL User-Agent: Adescom CTM5000 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO Max-Forwards: 70 Content-Length: 0 X-CTMG-HangupCause: Normal Clearing
Since I'm new to Kamailio, I figured I must be doing something wrong but don't seem to find any working example anywhere....
-G
Can you paste here the parameters you set for **tm** module?
I have default settings from for tm:
# ----- tm params ----- # auto-discard branches from previous serial forking leg modparam("tm", "failure_reply_mode", 3) # default retransmission timeout: 30sec modparam("tm", "fr_timer", 30000) # default invite retransmission timeout after 1xx: 120sec modparam("tm", "fr_inv_timer", 120000)
-Gregg
Can you test with laster master branch?
After installing from package, it works better but there are some issues still:
# U x.x.x.50:5060 -> 85.14.79.130:6050 INVITE sip:48732406302@ctmx.3s.pl:6050 SIP/2.0. Record-Route: sip:x.x.x.50;lr=on;ftag=32fe7b01;did=b55.74b1. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bKf853.a86fa1ded7f4197c5ea1a1625d652c6f.0. Via: SIP/2.0/UDP x.x.x.167:52163;rport=52163;branch=z9hG4bK-d8754z-5ef22e5fe1c6a7e5-1---d8754z-. Max-Forwards: 69. Contact: sip:48221028008@x.x.x.167:52163;transport=UDP. To: sip:48732406302@x.x.x.50;transport=UDP. From: sip:48221028008@x.x.x.50;transport=UDP;tag=32fe7b01. Call-ID: YmY5NjBiYTJlM2YyMTM2OTY5MjQ1ZGE4NzNiN2YxYWE.. CSeq: 2 INVITE. Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE. Content-Type: application/sdp. Supported: replaces, norefersub, extended-refer, timer, X-cisco-serviceuri. Allow-Events: presence, kpml. Content-Length: 241. . v=0. o=Z 0 0 IN IP4 x.x.x.167. s=Z. c=IN IP4 x.x.x.167. t=0 0. m=audio 8000 RTP/AVP 3 110 8 0 98 101. a=rtpmap:110 speex/8000. a=rtpmap:98 iLBC/8000. a=fmtp:98 mode=20. a=rtpmap:101 telephone-event/8000. a=fmtp:101 0-15. a=sendrecv.
# U 85.14.79.130:6050 -> x.x.x.50:5060 SIP/2.0 407 Proxy Authentication Required. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bKf853.a86fa1ded7f4197c5ea1a1625d652c6f.0;received=x.x.x.50. Via: SIP/2.0/UDP x.x.x.167:52163;rport=52163;branch=z9hG4bK-d8754z-5ef22e5fe1c6a7e5-1---d8754z-. From: sip:48221028008@x.x.x.50;transport=UDP;tag=32fe7b01. To: sip:48732406302@x.x.x.50;transport=UDP;tag=as29ba68ca. Call-ID: YmY5NjBiYTJlM2YyMTM2OTY5MjQ1ZGE4NzNiN2YxYWE.. CSeq: 2 INVITE. User-Agent: Adescom CTM5000. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO. Max-Forwards: 70. Proxy-Authenticate: Digest realm="adescom", nonce="2ead1894". Content-Length: 0. .
# U x.x.x.50:5060 -> 85.14.79.130:6050 ACK sip:48732406302@ctmx.3s.pl:6050 SIP/2.0. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bKf853.a86fa1ded7f4197c5ea1a1625d652c6f.0. Max-Forwards: 69. To: sip:48732406302@x.x.x.50;transport=UDP;tag=as29ba68ca. From: sip:48221028008@x.x.x.50;transport=UDP;tag=32fe7b01. Call-ID: YmY5NjBiYTJlM2YyMTM2OTY5MjQ1ZGE4NzNiN2YxYWE.. CSeq: 2 ACK. Content-Length: 0. .
# U x.x.x.50:5060 -> 85.14.79.130:6050 INVITE sip:48732406302@ctmx.3s.pl:6050 SIP/2.0. Record-Route: sip:x.x.x.50;lr=on;ftag=32fe7b01;did=b55.74b1. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bKf853.a86fa1ded7f4197c5ea1a1625d652c6f.1.cs2. Via: SIP/2.0/UDP x.x.x.167:52163;rport=52163;branch=z9hG4bK-d8754z-5ef22e5fe1c6a7e5-1---d8754z-. Max-Forwards: 69. Contact: sip:48221028008@x.x.x.167:52163;transport=UDP. To: sip:48732406302@x.x.x.50;transport=UDP. From: sip:48221028008@x.x.x.50;transport=UDP;tag=32fe7b01. Call-ID: YmY5NjBiYTJlM2YyMTM2OTY5MjQ1ZGE4NzNiN2YxYWE.. CSeq: 3 INVITE. Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE. Content-Type: application/sdp. Supported: replaces, norefersub, extended-refer, timer, X-cisco-serviceuri. Allow-Events: presence, kpml. Content-Length: 241. Proxy-Authorization: Digest username="USER", realm="adescom", nonce="2ead1894", uri="sip:48732406302@ctmx.3s.pl:6050", response="9ff5d37d98280fe6d8676d654a8d7812", algorithm=MD5. . v=0. o=Z 0 0 IN IP4 x.x.x.167. s=Z. c=IN IP4 x.x.x.167. t=0 0. m=audio 8000 RTP/AVP 3 110 8 0 98 101. a=rtpmap:110 speex/8000. a=rtpmap:98 iLBC/8000. a=fmtp:98 mode=20. a=rtpmap:101 telephone-event/8000. a=fmtp:101 0-15. a=sendrecv.
# U 85.14.79.130:6050 -> x.x.x.50:5060 SIP/2.0 100 Trying. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bKf853.a86fa1ded7f4197c5ea1a1625d652c6f.1.cs2;received=x.x.x.50. Via: SIP/2.0/UDP x.x.x.167:52163;rport=52163;branch=z9hG4bK-d8754z-5ef22e5fe1c6a7e5-1---d8754z-. From: sip:48221028008@x.x.x.50;transport=UDP;tag=32fe7b01. To: sip:48732406302@x.x.x.50;transport=UDP. Call-ID: YmY5NjBiYTJlM2YyMTM2OTY5MjQ1ZGE4NzNiN2YxYWE.. CSeq: 3 INVITE. User-Agent: Adescom CTM5000. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO. Max-Forwards: 70. Contact: sip:48732406302@85.14.79.130:6050. Content-Length: 0. X-CTMG-HangupCause: Normal Clearing. .
# U 85.14.79.130:6050 -> x.x.x.50:5060 SIP/2.0 180 Ringing. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bKf853.a86fa1ded7f4197c5ea1a1625d652c6f.1.cs2;received=x.x.x.50. Via: SIP/2.0/UDP x.x.x.167:52163;rport=52163;branch=z9hG4bK-d8754z-5ef22e5fe1c6a7e5-1---d8754z-. From: sip:48221028008@x.x.x.50;transport=UDP;tag=32fe7b01. To: sip:48732406302@x.x.x.50;transport=UDP;tag=as79702a93. Call-ID: YmY5NjBiYTJlM2YyMTM2OTY5MjQ1ZGE4NzNiN2YxYWE.. CSeq: 3 INVITE. User-Agent: Adescom CTM5000. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO. Max-Forwards: 70. Contact: sip:48732406302@85.14.79.130:6050. Content-Length: 0. X-CTMG-HangupCause: Normal Clearing. .
# U 85.14.79.130:6050 -> x.x.x.50:5060 SIP/2.0 183 Session Progress. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bKf853.a86fa1ded7f4197c5ea1a1625d652c6f.1.cs2;received=x.x.x.50. Via: SIP/2.0/UDP x.x.x.167:52163;rport=52163;branch=z9hG4bK-d8754z-5ef22e5fe1c6a7e5-1---d8754z-. From: sip:48221028008@x.x.x.50;transport=UDP;tag=32fe7b01. To: sip:48732406302@x.x.x.50;transport=UDP;tag=as79702a93. Call-ID: YmY5NjBiYTJlM2YyMTM2OTY5MjQ1ZGE4NzNiN2YxYWE.. CSeq: 3 INVITE. User-Agent: Adescom CTM5000. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO. Max-Forwards: 70. Contact: sip:48732406302@85.14.79.130:6050. Content-Type: application/sdp. Content-Length: 226. . v=0. o=root 7839 7839 IN IP4 85.14.79.130. s=session. c=IN IP4 85.14.79.130. t=0 0. m=audio 44578 RTP/AVP 8 101. a=rtpmap:8 PCMA/8000. a=ptime:20. a=rtpmap:101 telephone-event/8000. a=fmtp:101 0-16. a=silenceSupp:off - - - -.
# U x.x.x.50:5060 -> 85.14.79.130:6050 CANCEL sip:48732406302@ctmx.3s.pl:6050 SIP/2.0. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bKf853.a86fa1ded7f4197c5ea1a1625d652c6f.1.cs2. Max-Forwards: 69. To: sip:48732406302@x.x.x.50;transport=UDP. From: sip:48221028008@x.x.x.50;transport=UDP;tag=32fe7b01. Call-ID: YmY5NjBiYTJlM2YyMTM2OTY5MjQ1ZGE4NzNiN2YxYWE.. CSeq: 3 CANCEL. Content-Length: 0. .
# U 85.14.79.130:6050 -> x.x.x.50:5060 SIP/2.0 487 Request Terminated. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bKf853.a86fa1ded7f4197c5ea1a1625d652c6f.1.cs2;received=x.x.x.50. Via: SIP/2.0/UDP x.x.x.167:52163;rport=52163;branch=z9hG4bK-d8754z-5ef22e5fe1c6a7e5-1---d8754z-. From: sip:48221028008@x.x.x.50;transport=UDP;tag=32fe7b01. To: sip:48732406302@x.x.x.50;transport=UDP;tag=as79702a93. Call-ID: YmY5NjBiYTJlM2YyMTM2OTY5MjQ1ZGE4NzNiN2YxYWE.. CSeq: 3 INVITE. User-Agent: Adescom CTM5000. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO. Max-Forwards: 70. Content-Length: 0. X-CTMG-HangupCause: Normal Clearing. Reason: Q.850 ;cause=16 ;text="Normal Clearing". .
# U 85.14.79.130:6050 -> x.x.x.50:5060 SIP/2.0 200 OK. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bKf853.a86fa1ded7f4197c5ea1a1625d652c6f.1.cs2;received=x.x.x.50. From: sip:48221028008@x.x.x.50;transport=UDP;tag=32fe7b01. To: sip:48732406302@x.x.x.50;transport=UDP;tag=as79702a93. Call-ID: YmY5NjBiYTJlM2YyMTM2OTY5MjQ1ZGE4NzNiN2YxYWE.. CSeq: 3 CANCEL. User-Agent: Adescom CTM5000. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO. Max-Forwards: 70. Content-Length: 0. X-CTMG-HangupCause: Normal Clearing. .
# U x.x.x.50:5060 -> 85.14.79.130:6050 ACK sip:48732406302@ctmx.3s.pl:6050 SIP/2.0. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bKf853.a86fa1ded7f4197c5ea1a1625d652c6f.1. Max-Forwards: 69. To: sip:48732406302@x.x.x.50;transport=UDP;tag=as79702a93. From: sip:48221028008@x.x.x.50;transport=UDP;tag=32fe7b01. Call-ID: YmY5NjBiYTJlM2YyMTM2OTY5MjQ1ZGE4NzNiN2YxYWE.. CSeq: 2 ACK. Content-Length: 0. P-K-CSeq-Auth: 3. .
# U 85.14.79.130:6050 -> x.x.x.50:5060 SIP/2.0 500 Server error. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bKf853.a86fa1ded7f4197c5ea1a1625d652c6f.1;received=x.x.x.50. From: sip:48221028008@x.x.x.50;transport=UDP;tag=32fe7b01. To: sip:48732406302@x.x.x.50;transport=UDP;tag=as79702a93. Call-ID: YmY5NjBiYTJlM2YyMTM2OTY5MjQ1ZGE4NzNiN2YxYWE.. CSeq: 2 ACK. User-Agent: Adescom CTM5000. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO. Max-Forwards: 70. Content-Length: 0. .
# U x.x.x.50:5060 -> 85.14.79.130:6050 CANCEL sip:48732406302@ctmx.3s.pl:6050 SIP/2.0. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bKf853.a86fa1ded7f4197c5ea1a1625d652c6f.1.cs2. Max-Forwards: 69. To: sip:48732406302@x.x.x.50;transport=UDP. From: sip:48221028008@x.x.x.50;transport=UDP;tag=32fe7b01. Call-ID: YmY5NjBiYTJlM2YyMTM2OTY5MjQ1ZGE4NzNiN2YxYWE.. CSeq: 3 CANCEL. Content-Length: 0. .
# U 85.14.79.130:6050 -> x.x.x.50:5060 SIP/2.0 200 OK. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bKf853.a86fa1ded7f4197c5ea1a1625d652c6f.1.cs2;received=x.x.x.50. From: sip:48221028008@x.x.x.50;transport=UDP;tag=32fe7b01. To: sip:48732406302@x.x.x.50;transport=UDP;tag=as79702a93. Call-ID: YmY5NjBiYTJlM2YyMTM2OTY5MjQ1ZGE4NzNiN2YxYWE.. CSeq: 3 CANCEL. User-Agent: Adescom CTM5000. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO. Max-Forwards: 70. Content-Length: 0. .
# U 85.14.79.130:6050 -> x.x.x.50:5060 SIP/2.0 487 Request Terminated. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bKf853.a86fa1ded7f4197c5ea1a1625d652c6f.1.cs2;received=x.x.x.50. Via: SIP/2.0/UDP x.x.x.167:52163;rport=52163;branch=z9hG4bK-d8754z-5ef22e5fe1c6a7e5-1---d8754z-. From: sip:48221028008@x.x.x.50;transport=UDP;tag=32fe7b01. To: sip:48732406302@x.x.x.50;transport=UDP;tag=as79702a93. Call-ID: YmY5NjBiYTJlM2YyMTM2OTY5MjQ1ZGE4NzNiN2YxYWE.. CSeq: 3 INVITE. User-Agent: Adescom CTM5000. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO. Max-Forwards: 70. Content-Length: 0. X-CTMG-HangupCause: Normal Clearing. Reason: Q.850 ;cause=16 ;text="Normal Clearing". .
# U x.x.x.50:5060 -> 85.14.79.130:6050 ACK sip:48732406302@ctmx.3s.pl:6050 SIP/2.0. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bKf853.a86fa1ded7f4197c5ea1a1625d652c6f.1. Max-Forwards: 69. To: sip:48732406302@x.x.x.50;transport=UDP;tag=as79702a93. From: sip:48221028008@x.x.x.50;transport=UDP;tag=32fe7b01. Call-ID: YmY5NjBiYTJlM2YyMTM2OTY5MjQ1ZGE4NzNiN2YxYWE.. CSeq: 2 ACK. Content-Length: 0. P-K-CSeq-Auth: 3. .
# U 85.14.79.130:6050 -> x.x.x.50:5060 SIP/2.0 500 Server error. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bKf853.a86fa1ded7f4197c5ea1a1625d652c6f.1;received=x.x.x.50. From: sip:48221028008@x.x.x.50;transport=UDP;tag=32fe7b01. To: sip:48732406302@x.x.x.50;transport=UDP;tag=as79702a93. Call-ID: YmY5NjBiYTJlM2YyMTM2OTY5MjQ1ZGE4NzNiN2YxYWE.. CSeq: 2 ACK. User-Agent: Adescom CTM5000. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO. Max-Forwards: 70. Content-Length: 0. .
# U x.x.x.50:5060 -> 85.14.79.130:6050 CANCEL sip:48732406302@ctmx.3s.pl:6050 SIP/2.0. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bKf853.a86fa1ded7f4197c5ea1a1625d652c6f.1.cs2. Max-Forwards: 69. To: sip:48732406302@x.x.x.50;transport=UDP. From: sip:48221028008@x.x.x.50;transport=UDP;tag=32fe7b01. Call-ID: YmY5NjBiYTJlM2YyMTM2OTY5MjQ1ZGE4NzNiN2YxYWE.. CSeq: 3 CANCEL. Content-Length: 0. .
# U 85.14.79.130:6050 -> x.x.x.50:5060 SIP/2.0 200 OK. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bKf853.a86fa1ded7f4197c5ea1a1625d652c6f.1.cs2;received=x.x.x.50. From: sip:48221028008@x.x.x.50;transport=UDP;tag=32fe7b01. To: sip:48732406302@x.x.x.50;transport=UDP;tag=as79702a93. Call-ID: YmY5NjBiYTJlM2YyMTM2OTY5MjQ1ZGE4NzNiN2YxYWE.. CSeq: 3 CANCEL. User-Agent: Adescom CTM5000. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO. Max-Forwards: 70. Content-Length: 0. .
# U 85.14.79.130:6050 -> x.x.x.50:5060 SIP/2.0 487 Request Terminated. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bKf853.a86fa1ded7f4197c5ea1a1625d652c6f.1.cs2;received=x.x.x.50. Via: SIP/2.0/UDP x.x.x.167:52163;rport=52163;branch=z9hG4bK-d8754z-5ef22e5fe1c6a7e5-1---d8754z-. From: sip:48221028008@x.x.x.50;transport=UDP;tag=32fe7b01. To: sip:48732406302@x.x.x.50;transport=UDP;tag=as79702a93. Call-ID: YmY5NjBiYTJlM2YyMTM2OTY5MjQ1ZGE4NzNiN2YxYWE.. CSeq: 3 INVITE. User-Agent: Adescom CTM5000. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO. Max-Forwards: 70. Content-Length: 0. X-CTMG-HangupCause: Normal Clearing. Reason: Q.850 ;cause=16 ;text="Normal Clearing". .
# U x.x.x.50:5060 -> 85.14.79.130:6050 ACK sip:48732406302@ctmx.3s.pl:6050 SIP/2.0. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bKf853.a86fa1ded7f4197c5ea1a1625d652c6f.1. Max-Forwards: 69. To: sip:48732406302@x.x.x.50;transport=UDP;tag=as79702a93. From: sip:48221028008@x.x.x.50;transport=UDP;tag=32fe7b01. Call-ID: YmY5NjBiYTJlM2YyMTM2OTY5MjQ1ZGE4NzNiN2YxYWE.. CSeq: 2 ACK. Content-Length: 0. P-K-CSeq-Auth: 3. .
# U 85.14.79.130:6050 -> x.x.x.50:5060 SIP/2.0 500 Server error. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bKf853.a86fa1ded7f4197c5ea1a1625d652c6f.1;received=x.x.x.50. From: sip:48221028008@x.x.x.50;transport=UDP;tag=32fe7b01. To: sip:48732406302@x.x.x.50;transport=UDP;tag=as79702a93. Call-ID: YmY5NjBiYTJlM2YyMTM2OTY5MjQ1ZGE4NzNiN2YxYWE.. CSeq: 2 ACK. User-Agent: Adescom CTM5000. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO. Max-Forwards: 70. Content-Length: 0. .
# U x.x.x.50:5060 -> 85.14.79.130:6050 CANCEL sip:48732406302@ctmx.3s.pl:6050 SIP/2.0. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bKf853.a86fa1ded7f4197c5ea1a1625d652c6f.1.cs2. Max-Forwards: 69. To: sip:48732406302@x.x.x.50;transport=UDP. From: sip:48221028008@x.x.x.50;transport=UDP;tag=32fe7b01. Call-ID: YmY5NjBiYTJlM2YyMTM2OTY5MjQ1ZGE4NzNiN2YxYWE.. CSeq: 3 CANCEL. Content-Length: 0. .
# U 85.14.79.130:6050 -> x.x.x.50:5060 SIP/2.0 200 OK. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bKf853.a86fa1ded7f4197c5ea1a1625d652c6f.1.cs2;received=x.x.x.50. From: sip:48221028008@x.x.x.50;transport=UDP;tag=32fe7b01. To: sip:48732406302@x.x.x.50;transport=UDP;tag=as79702a93. Call-ID: YmY5NjBiYTJlM2YyMTM2OTY5MjQ1ZGE4NzNiN2YxYWE.. CSeq: 3 CANCEL. User-Agent: Adescom CTM5000. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO. Max-Forwards: 70. Content-Length: 0. .
# U 85.14.79.130:6050 -> x.x.x.50:5060 SIP/2.0 487 Request Terminated. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bKf853.a86fa1ded7f4197c5ea1a1625d652c6f.1.cs2;received=x.x.x.50. Via: SIP/2.0/UDP x.x.x.167:52163;rport=52163;branch=z9hG4bK-d8754z-5ef22e5fe1c6a7e5-1---d8754z-. From: sip:48221028008@x.x.x.50;transport=UDP;tag=32fe7b01. To: sip:48732406302@x.x.x.50;transport=UDP;tag=as79702a93. Call-ID: YmY5NjBiYTJlM2YyMTM2OTY5MjQ1ZGE4NzNiN2YxYWE.. CSeq: 3 INVITE. User-Agent: Adescom CTM5000. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO. Max-Forwards: 70. Content-Length: 0. X-CTMG-HangupCause: Normal Clearing. Reason: Q.850 ;cause=16 ;text="Normal Clearing". .
# U x.x.x.50:5060 -> 85.14.79.130:6050 ACK sip:48732406302@ctmx.3s.pl:6050 SIP/2.0. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bKf853.a86fa1ded7f4197c5ea1a1625d652c6f.1. Max-Forwards: 69. To: sip:48732406302@x.x.x.50;transport=UDP;tag=as79702a93. From: sip:48221028008@x.x.x.50;transport=UDP;tag=32fe7b01. Call-ID: YmY5NjBiYTJlM2YyMTM2OTY5MjQ1ZGE4NzNiN2YxYWE.. CSeq: 2 ACK. Content-Length: 0. P-K-CSeq-Auth: 3. .
# U 85.14.79.130:6050 -> x.x.x.50:5060 SIP/2.0 500 Server error. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bKf853.a86fa1ded7f4197c5ea1a1625d652c6f.1;received=x.x.x.50. From: sip:48221028008@x.x.x.50;transport=UDP;tag=32fe7b01. To: sip:48732406302@x.x.x.50;transport=UDP;tag=as79702a93. Call-ID: YmY5NjBiYTJlM2YyMTM2OTY5MjQ1ZGE4NzNiN2YxYWE.. CSeq: 2 ACK. User-Agent: Adescom CTM5000. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO. Max-Forwards: 70. Content-Length: 0. .
# U 85.14.79.130:6050 -> x.x.x.50:5060 SIP/2.0 487 Request Terminated. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bKf853.a86fa1ded7f4197c5ea1a1625d652c6f.1.cs2;received=x.x.x.50. Via: SIP/2.0/UDP x.x.x.167:52163;rport=52163;branch=z9hG4bK-d8754z-5ef22e5fe1c6a7e5-1---d8754z-. From: sip:48221028008@x.x.x.50;transport=UDP;tag=32fe7b01. To: sip:48732406302@x.x.x.50;transport=UDP;tag=as79702a93. Call-ID: YmY5NjBiYTJlM2YyMTM2OTY5MjQ1ZGE4NzNiN2YxYWE.. CSeq: 3 INVITE. User-Agent: Adescom CTM5000. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO. Max-Forwards: 70. Content-Length: 0. X-CTMG-HangupCause: Normal Clearing. Reason: Q.850 ;cause=16 ;text="Normal Clearing". .
# U 85.14.79.130:6050 -> x.x.x.50:5060 SIP/2.0 487 Request Terminated. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bKf853.a86fa1ded7f4197c5ea1a1625d652c6f.1.cs2;received=x.x.x.50. Via: SIP/2.0/UDP x.x.x.167:52163;rport=52163;branch=z9hG4bK-d8754z-5ef22e5fe1c6a7e5-1---d8754z-. From: sip:48221028008@x.x.x.50;transport=UDP;tag=32fe7b01. To: sip:48732406302@x.x.x.50;transport=UDP;tag=as79702a93. Call-ID: YmY5NjBiYTJlM2YyMTM2OTY5MjQ1ZGE4NzNiN2YxYWE.. CSeq: 3 INVITE. User-Agent: Adescom CTM5000. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO. Max-Forwards: 70. Content-Length: 0. X-CTMG-HangupCause: Normal Clearing. Reason: Q.850 ;cause=16 ;text="Normal Clearing". .
# U 85.14.79.130:6050 -> x.x.x.50:5060 SIP/2.0 487 Request Terminated. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bKf853.a86fa1ded7f4197c5ea1a1625d652c6f.1.cs2;received=x.x.x.50. Via: SIP/2.0/UDP x.x.x.167:52163;rport=52163;branch=z9hG4bK-d8754z-5ef22e5fe1c6a7e5-1---d8754z-. From: sip:48221028008@x.x.x.50;transport=UDP;tag=32fe7b01. To: sip:48732406302@x.x.x.50;transport=UDP;tag=as79702a93. Call-ID: YmY5NjBiYTJlM2YyMTM2OTY5MjQ1ZGE4NzNiN2YxYWE.. CSeq: 3 INVITE. User-Agent: Adescom CTM5000. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO. Max-Forwards: 70. Content-Length: 0. X-CTMG-HangupCause: Normal Clearing. Reason: Q.850 ;cause=16 ;text="Normal Clearing". .
A new patch was pushed. Try again with latest master branch.
Now the CSeq is correct, however I do see repeated CANCELs and 487s from the peer just as in https://github.com/kamailio/kamailio/issues/870 This means that it does cancel the call and these extra messages back and forth do not cause any end-user side effects:
# U x.x.x.50:5060 -> 85.14.79.130:6050 INVITE sip:48732406302@provider.server:6050 SIP/2.0. Record-Route: sip:x.x.x.50;lr=on;ftag=1966e51d;did=394.3881. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bK7c47.6ccd00e1473454bee7f723fc9772a737.0. Via: SIP/2.0/UDP x.x.x.61:52163;rport=52163;branch=z9hG4bK-d8754z-61867e46d5fd912d-1---d8754z-. Max-Forwards: 69. Contact: sip:48221028008@x.x.x.61:52163;transport=UDP. To: sip:48732406302@x.x.x.50;transport=UDP. From: sip:48221028008@x.x.x.50;transport=UDP;tag=1966e51d. Call-ID: NDY0MjJlYjNmNTMwMzQ1MjFiZjZlZTQyMTU0MTVjZTc.. CSeq: 2 INVITE. Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE. Content-Type: application/sdp. Supported: replaces, norefersub, extended-refer, timer, X-cisco-serviceuri. Allow-Events: presence, kpml. Content-Length: 239. . v=0. o=Z 0 0 IN IP4 x.x.x.61. s=Z. c=IN IP4 x.x.x.61. t=0 0. m=audio 8000 RTP/AVP 3 110 8 0 98 101. a=rtpmap:110 speex/8000. a=rtpmap:98 iLBC/8000. a=fmtp:98 mode=20. a=rtpmap:101 telephone-event/8000. a=fmtp:101 0-15. a=sendrecv.
# U 85.14.79.130:6050 -> x.x.x.50:5060 SIP/2.0 407 Proxy Authentication Required. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bK7c47.6ccd00e1473454bee7f723fc9772a737.0;received=x.x.x.50. Via: SIP/2.0/UDP x.x.x.61:52163;rport=52163;branch=z9hG4bK-d8754z-61867e46d5fd912d-1---d8754z-. From: sip:48221028008@x.x.x.50;transport=UDP;tag=1966e51d. To: sip:48732406302@x.x.x.50;transport=UDP;tag=as209509cf. Call-ID: NDY0MjJlYjNmNTMwMzQ1MjFiZjZlZTQyMTU0MTVjZTc.. CSeq: 2 INVITE. User-Agent: Adescom CTM5000. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO. Max-Forwards: 70. Proxy-Authenticate: Digest realm="adescom", nonce="4d5a9b94". Content-Length: 0. .
# U x.x.x.50:5060 -> 85.14.79.130:6050 ACK sip:48732406302@provider.server:6050 SIP/2.0. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bK7c47.6ccd00e1473454bee7f723fc9772a737.0. Max-Forwards: 69. To: sip:48732406302@x.x.x.50;transport=UDP;tag=as209509cf. From: sip:48221028008@x.x.x.50;transport=UDP;tag=1966e51d. Call-ID: NDY0MjJlYjNmNTMwMzQ1MjFiZjZlZTQyMTU0MTVjZTc.. CSeq: 2 ACK. Content-Length: 0. .
# U x.x.x.50:5060 -> 85.14.79.130:6050 INVITE sip:48732406302@provider.server:6050 SIP/2.0. Record-Route: sip:x.x.x.50;lr=on;ftag=1966e51d;did=394.3881. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bK7c47.6ccd00e1473454bee7f723fc9772a737.1.cs2. Via: SIP/2.0/UDP x.x.x.61:52163;rport=52163;branch=z9hG4bK-d8754z-61867e46d5fd912d-1---d8754z-. Max-Forwards: 69. Contact: sip:48221028008@x.x.x.61:52163;transport=UDP. To: sip:48732406302@x.x.x.50;transport=UDP. From: sip:48221028008@x.x.x.50;transport=UDP;tag=1966e51d. Call-ID: NDY0MjJlYjNmNTMwMzQ1MjFiZjZlZTQyMTU0MTVjZTc.. CSeq: 3 INVITE. Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE. Content-Type: application/sdp. Supported: replaces, norefersub, extended-refer, timer, X-cisco-serviceuri. Allow-Events: presence, kpml. Content-Length: 239. Proxy-Authorization: Digest username="USER", realm="adescom", nonce="4d5a9b94", uri="sip:48732406302@provider.server:6050", response="5e7395307812b7c47418bfde0d4262bf", algorithm=MD5. . v=0. o=Z 0 0 IN IP4 x.x.x.61. s=Z. c=IN IP4 x.x.x.61. t=0 0. m=audio 8000 RTP/AVP 3 110 8 0 98 101. a=rtpmap:110 speex/8000. a=rtpmap:98 iLBC/8000. a=fmtp:98 mode=20. a=rtpmap:101 telephone-event/8000. a=fmtp:101 0-15. a=sendrecv.
# U 85.14.79.130:6050 -> x.x.x.50:5060 SIP/2.0 100 Trying. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bK7c47.6ccd00e1473454bee7f723fc9772a737.1.cs2;received=x.x.x.50. Via: SIP/2.0/UDP x.x.x.61:52163;rport=52163;branch=z9hG4bK-d8754z-61867e46d5fd912d-1---d8754z-. From: sip:48221028008@x.x.x.50;transport=UDP;tag=1966e51d. To: sip:48732406302@x.x.x.50;transport=UDP. Call-ID: NDY0MjJlYjNmNTMwMzQ1MjFiZjZlZTQyMTU0MTVjZTc.. CSeq: 3 INVITE. User-Agent: Adescom CTM5000. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO. Max-Forwards: 70. Contact: sip:48732406302@85.14.79.130:6050. Content-Length: 0. X-CTMG-HangupCause: Normal Clearing. .
# U 85.14.79.130:6050 -> x.x.x.50:5060 SIP/2.0 183 Session Progress. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bK7c47.6ccd00e1473454bee7f723fc9772a737.1.cs2;received=x.x.x.50. Via: SIP/2.0/UDP x.x.x.61:52163;rport=52163;branch=z9hG4bK-d8754z-61867e46d5fd912d-1---d8754z-. From: sip:48221028008@x.x.x.50;transport=UDP;tag=1966e51d. To: sip:48732406302@x.x.x.50;transport=UDP;tag=as72708a91. Call-ID: NDY0MjJlYjNmNTMwMzQ1MjFiZjZlZTQyMTU0MTVjZTc.. CSeq: 3 INVITE. User-Agent: Adescom CTM5000. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO. Max-Forwards: 70. Contact: sip:48732406302@85.14.79.130:6050. Content-Type: application/sdp. Content-Length: 226. . v=0. o=root 7839 7839 IN IP4 85.14.79.130. s=session. c=IN IP4 85.14.79.130. t=0 0. m=audio 54604 RTP/AVP 8 101. a=rtpmap:8 PCMA/8000. a=ptime:20. a=rtpmap:101 telephone-event/8000. a=fmtp:101 0-16. a=silenceSupp:off - - - -.
# U x.x.x.50:5060 -> 85.14.79.130:6050 CANCEL sip:48732406302@provider.server:6050 SIP/2.0. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bK7c47.6ccd00e1473454bee7f723fc9772a737.1.cs2. Max-Forwards: 69. To: sip:48732406302@x.x.x.50;transport=UDP. From: sip:48221028008@x.x.x.50;transport=UDP;tag=1966e51d. Call-ID: NDY0MjJlYjNmNTMwMzQ1MjFiZjZlZTQyMTU0MTVjZTc.. CSeq: 3 CANCEL. Content-Length: 0. .
# U 85.14.79.130:6050 -> x.x.x.50:5060 SIP/2.0 487 Request Terminated. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bK7c47.6ccd00e1473454bee7f723fc9772a737.1.cs2;received=x.x.x.50. Via: SIP/2.0/UDP x.x.x.61:52163;rport=52163;branch=z9hG4bK-d8754z-61867e46d5fd912d-1---d8754z-. From: sip:48221028008@x.x.x.50;transport=UDP;tag=1966e51d. To: sip:48732406302@x.x.x.50;transport=UDP;tag=as72708a91. Call-ID: NDY0MjJlYjNmNTMwMzQ1MjFiZjZlZTQyMTU0MTVjZTc.. CSeq: 3 INVITE. User-Agent: Adescom CTM5000. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO. Max-Forwards: 70. Content-Length: 0. X-CTMG-HangupCause: Normal Clearing. Reason: Q.850 ;cause=16 ;text="Normal Clearing". .
# U 85.14.79.130:6050 -> x.x.x.50:5060 SIP/2.0 200 OK. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bK7c47.6ccd00e1473454bee7f723fc9772a737.1.cs2;received=x.x.x.50. From: sip:48221028008@x.x.x.50;transport=UDP;tag=1966e51d. To: sip:48732406302@x.x.x.50;transport=UDP;tag=as72708a91. Call-ID: NDY0MjJlYjNmNTMwMzQ1MjFiZjZlZTQyMTU0MTVjZTc.. CSeq: 3 CANCEL. User-Agent: Adescom CTM5000. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO. Max-Forwards: 70. Content-Length: 0. X-CTMG-HangupCause: Normal Clearing. .
# U x.x.x.50:5060 -> 85.14.79.130:6050 ACK sip:48732406302@provider.server:6050 SIP/2.0. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bK7c47.6ccd00e1473454bee7f723fc9772a737.1.cs2. Max-Forwards: 69. To: sip:48732406302@x.x.x.50;transport=UDP;tag=as72708a91. From: sip:48221028008@x.x.x.50;transport=UDP;tag=1966e51d. Call-ID: NDY0MjJlYjNmNTMwMzQ1MjFiZjZlZTQyMTU0MTVjZTc.. CSeq: 3 ACK. Content-Length: 0. .
# U x.x.x.50:5060 -> 85.14.79.130:6050 CANCEL sip:48732406302@provider.server:6050 SIP/2.0. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bK7c47.6ccd00e1473454bee7f723fc9772a737.1.cs2. Max-Forwards: 69. To: sip:48732406302@x.x.x.50;transport=UDP. From: sip:48221028008@x.x.x.50;transport=UDP;tag=1966e51d. Call-ID: NDY0MjJlYjNmNTMwMzQ1MjFiZjZlZTQyMTU0MTVjZTc.. CSeq: 3 CANCEL. Content-Length: 0. .
# U 85.14.79.130:6050 -> x.x.x.50:5060 SIP/2.0 481 Call Leg Does Not Exist. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bK7c47.6ccd00e1473454bee7f723fc9772a737.1.cs2;received=x.x.x.50. From: sip:48221028008@x.x.x.50;transport=UDP;tag=1966e51d. To: sip:48732406302@x.x.x.50;transport=UDP;tag=as0575a12b. Call-ID: NDY0MjJlYjNmNTMwMzQ1MjFiZjZlZTQyMTU0MTVjZTc.. CSeq: 3 CANCEL. User-Agent: Adescom CTM5000. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO. Max-Forwards: 70. Content-Length: 0. .
# U x.x.x.50:5060 -> 85.14.79.130:6050 CANCEL sip:48732406302@provider.server:6050 SIP/2.0. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bK7c47.6ccd00e1473454bee7f723fc9772a737.1.cs2. Max-Forwards: 69. To: sip:48732406302@x.x.x.50;transport=UDP. From: sip:48221028008@x.x.x.50;transport=UDP;tag=1966e51d. Call-ID: NDY0MjJlYjNmNTMwMzQ1MjFiZjZlZTQyMTU0MTVjZTc.. CSeq: 3 CANCEL. Content-Length: 0. .
# U 85.14.79.130:6050 -> x.x.x.50:5060 SIP/2.0 481 Call Leg Does Not Exist. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bK7c47.6ccd00e1473454bee7f723fc9772a737.1.cs2;received=x.x.x.50. From: sip:48221028008@x.x.x.50;transport=UDP;tag=1966e51d. To: sip:48732406302@x.x.x.50;transport=UDP;tag=as6b28014f. Call-ID: NDY0MjJlYjNmNTMwMzQ1MjFiZjZlZTQyMTU0MTVjZTc.. CSeq: 3 CANCEL. User-Agent: Adescom CTM5000. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO. Max-Forwards: 70. Content-Length: 0. .
# U x.x.x.50:5060 -> 85.14.79.130:6050 CANCEL sip:48732406302@provider.server:6050 SIP/2.0. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bK7c47.6ccd00e1473454bee7f723fc9772a737.1.cs2. Max-Forwards: 69. To: sip:48732406302@x.x.x.50;transport=UDP. From: sip:48221028008@x.x.x.50;transport=UDP;tag=1966e51d. Call-ID: NDY0MjJlYjNmNTMwMzQ1MjFiZjZlZTQyMTU0MTVjZTc.. CSeq: 3 CANCEL. Content-Length: 0. .
# U 85.14.79.130:6050 -> x.x.x.50:5060 SIP/2.0 481 Call Leg Does Not Exist. Via: SIP/2.0/UDP x.x.x.50;branch=z9hG4bK7c47.6ccd00e1473454bee7f723fc9772a737.1.cs2;received=x.x.x.50. From: sip:48221028008@x.x.x.50;transport=UDP;tag=1966e51d. To: sip:48732406302@x.x.x.50;transport=UDP;tag=as52cb54b1. Call-ID: NDY0MjJlYjNmNTMwMzQ1MjFiZjZlZTQyMTU0MTVjZTc.. CSeq: 3 CANCEL. User-Agent: Adescom CTM5000. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO. Max-Forwards: 70. Content-Length: 0. .
Would it be because the operator sends 487 before 200 (shouldn't it be 200 OK for CANCEL first then 487 as last message). https://github.com/kamailio/kamailio/issues/870 seems to have similar call flow.
Attach also thekamailio log messages from syslog file with debug=3 in kamailio.cfg.
I may have a lead to troubleshoot this further. Hopefully I will get the time for it later today, if not, tomorrow.
I pushed another patch in master. Can you try again with latest version?
Works for me now! Thanks guys, you are the best ;)
Closed #918.
OK, I am closing this item. Thanks for troubleshooting assistance and testing.