[SR-Users] Kamailio not updating CSeq after uac_auth() for ACK

Terry Tailor terry at fullduplex.co.uk
Thu Dec 17 13:05:19 CET 2020


 Hi, I have updated Kamailio to 5.4 still there is an issue with Cseq of
cancel in case of cancel it is not increasing cSeq
here are details
1. proxy a sends invite with CSeq: 102 INVITE and proxy b route it to
asterisk with CSeq: 102 INVITE
2. asterisk sends 401 Unauthorized with CSeq: 102 INVITE and proxy b sends
ACK with CSeq: 102 ACK
3. proxy b sends invite with CSeq: 103 INVITE and asterisk sends 100 Trying
and 180 Ringing with CSeq: 103 INVITE
4. proxy b relay to proxy a 180 Ringing with CSeq: 102 INVITE
5. proxy a send CANCEL with CSeq: 102 CANCEL and proxy b sends CANCEL with
CSeq: 102 CANCEL to asterisk
6. Now asterisk is sending 481 Call leg/transaction does not exist

uname -a: Linux example.com 4.15.0-124-generic #127-Ubuntu SMP Fri Nov 6
10:54:43 UTC 2020 x86_64 GNU/Linux
kamailio -v: version: kamailio 5.4.3 (x86_64/linux)
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE,
USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC,
TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT,
USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST,
HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024,
BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown
compiled with gcc 6.3.0


sip logs:


2020/12/17 11:42:32.289934 proxy-a.com:5060 -> 10.0.14.118:5060
INVITE sip:123456 at proxy-a.com SIP/2.0
Record-Route: <sip:proxy-a.com;lr>
Via: SIP/2.0/UDP proxy-a.com:5060
;branch=z9hG4bKb7e1.f58c5fbd664fa63cd69162afcb07f88a.1
Via: SIP/2.0/UDP did.com:5060;received=did.com
;branch=z9hG4bK3756a567;rport=5060
Max-Forwards: 70
From: "54321" <sip:54321 at did.com>;tag=as02b3f892
To: <sip:123456 at proxy-a.com>
Contact: <sip:54321 at did.com:5060>
Call-ID: 6a981008384dd72c23ee9e59690eb5eb at did.com
User-Agent: VB-Proxy
CSeq: 102 INVITE
User-Agent: did
Date: Thu, 17 Dec 2020 11:42:32 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
PUBLISH, MESSAGE
Supported: replaces, timer
Remote-Party-ID: "54321" <sip:54321 at did.com
>;party=calling;privacy=off;screen=no
Content-Type: application/sdp
Content-Length: 889

2020/12/17 11:42:32.290569 10.0.14.118:5060 -> proxy-a.com:5060
SIP/2.0 100 trying -- your call is important to us
Via: SIP/2.0/UDP proxy-a.com:5060
;branch=z9hG4bKb7e1.f58c5fbd664fa63cd69162afcb07f88a.1;rport=5060
Via: SIP/2.0/UDP did.com:5060;received=did.com
;branch=z9hG4bK3756a567;rport=5060
From: "54321" <sip:54321 at did.com>;tag=as02b3f892
To: <sip:123456 at proxy-a.com>
Call-ID: 6a981008384dd72c23ee9e59690eb5eb at did.com
CSeq: 102 INVITE
Server: kamailio (5.4.3 (x86_64/linux))
Content-Length: 0



2020/12/17 11:42:32.291036 10.0.14.118:5060 -> 10.0.14.118:6000
INVITE sip:123456 at proxy-a.com SIP/2.0
Record-Route: <sip:sip.comms.kuflink.com;lr;did=baf.7bf1>
Record-Route: <sip:proxy-a.com;lr>
Via: SIP/2.0/UDP sip.comms.kuflink.com:5060
;branch=z9hG4bKb7e1.bbcb7aefd10825105e2fce86fd82efe6.0
Via: SIP/2.0/UDP proxy-a.com:5060
;rport=5060;branch=z9hG4bKb7e1.f58c5fbd664fa63cd69162afcb07f88a.1
Via: SIP/2.0/UDP did.com:5060;received=did.com
;branch=z9hG4bK3756a567;rport=5060
Max-Forwards: 70
From: "54321" <sip:54321 at did.com>;tag=as02b3f892
To: <sip:123456 at proxy-a.com>
Contact: <sip:54321 at did.com:5060>
Call-ID: 6a981008384dd72c23ee9e59690eb5eb at did.com
User-Agent: VB-Proxy
CSeq: 102 INVITE
User-Agent: did
Date: Thu, 17 Dec 2020 11:42:32 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
PUBLISH, MESSAGE
Supported: replaces, timer
Remote-Party-ID: "54321" <sip:54321 at did.com
>;party=calling;privacy=off;screen=no
Content-Type: application/sdp
Content-Length: 889



2020/12/17 11:42:32.308279 10.0.14.118:6000 -> 10.0.14.118:5060
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP sip.comms.kuflink.com:5060
;branch=z9hG4bKb7e1.bbcb7aefd10825105e2fce86fd82efe6.0;received=10.0.14.118;rport=5060
Via: SIP/2.0/UDP proxy-a.com:5060
;rport=5060;branch=z9hG4bKb7e1.f58c5fbd664fa63cd69162afcb07f88a.1
Via: SIP/2.0/UDP did.com:5060;received=did.com
;branch=z9hG4bK3756a567;rport=5060
From: "54321" <sip:54321 at did.com>;tag=as02b3f892
To: <sip:123456 at proxy-a.com>;tag=as152bd976
Call-ID: 6a981008384dd72c23ee9e59690eb5eb at did.com
CSeq: 102 INVITE
Server: did
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="sip1.comms.kuflink.com",
nonce="3673a540"
Content-Length: 0


2020/12/17 11:42:32.308770 10.0.14.118:5060 -> 10.0.14.118:6000
ACK sip:123456 at proxy-a.com SIP/2.0
Via: SIP/2.0/UDP sip.comms.kuflink.com:5060
;branch=z9hG4bKb7e1.bbcb7aefd10825105e2fce86fd82efe6.0
Max-Forwards: 70
From: "54321" <sip:54321 at did.com>;tag=as02b3f892
To: <sip:123456 at proxy-a.com>;tag=as152bd976
Call-ID: 6a981008384dd72c23ee9e59690eb5eb at did.com
CSeq: 102 ACK
Content-Length: 0


2020/12/17 11:42:32.309610 10.0.14.118:5060 -> 10.0.14.118:6000
INVITE sip:123456 at proxy-a.com SIP/2.0
Record-Route: <sip:sip.comms.kuflink.com;lr;did=baf.7bf1>
Record-Route: <sip:proxy-a.com;lr>
Via: SIP/2.0/UDP sip.comms.kuflink.com:5060
;branch=z9hG4bKb7e1.bbcb7aefd10825105e2fce86fd82efe6.1.cs102
Via: SIP/2.0/UDP proxy-a.com:5060
;rport=5060;branch=z9hG4bKb7e1.f58c5fbd664fa63cd69162afcb07f88a.1
Via: SIP/2.0/UDP did.com:5060;received=did.com
;branch=z9hG4bK3756a567;rport=5060
Max-Forwards: 70
From: "54321" <sip:54321 at did.com>;tag=as02b3f892
To: <sip:123456 at proxy-a.com>
Contact: <sip:54321 at did.com:5060>
Call-ID: 6a981008384dd72c23ee9e59690eb5eb at did.com
User-Agent: VB-Proxy
CSeq: 103 INVITE
User-Agent: did
Date: Thu, 17 Dec 2020 11:42:32 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
PUBLISH, MESSAGE
Supported: replaces, timer
Remote-Party-ID: "54321" <sip:54321 at did.com
>;party=calling;privacy=off;screen=no
Content-Type: application/sdp
Content-Length: 889
Authorization: Digest username="did095499", realm="sip1.comms.kuflink.com",
nonce="3673a540", uri="sip:123456 at proxy-a.com",
response="24d8949f18f4f2650913ce3feaa78380", algorithm=MD5




2020/12/17 11:42:32.333610 10.0.14.118:6000 -> 10.0.14.118:5060
SIP/2.0 100 Trying
Via: SIP/2.0/UDP sip.comms.kuflink.com:5060
;branch=z9hG4bKb7e1.bbcb7aefd10825105e2fce86fd82efe6.1.cs102;received=10.0.14.118;rport=5060
Via: SIP/2.0/UDP proxy-a.com:5060
;rport=5060;branch=z9hG4bKb7e1.f58c5fbd664fa63cd69162afcb07f88a.1
Via: SIP/2.0/UDP did.com:5060;received=did.com
;branch=z9hG4bK3756a567;rport=5060
Record-Route: <sip:sip.comms.kuflink.com;lr;did=baf.7bf1>
Record-Route: <sip:proxy-a.com;lr>
From: "54321" <sip:54321 at did.com>;tag=as02b3f892
To: <sip:123456 at proxy-a.com>
Call-ID: 6a981008384dd72c23ee9e59690eb5eb at did.com
CSeq: 103 INVITE
Server: did
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
Contact: <sip:123456 at 10.0.14.118:6000>
Content-Length: 0



2020/12/17 11:42:34.276380 10.0.14.118:6000 -> 10.0.14.118:5060
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP sip.comms.kuflink.com:5060
;branch=z9hG4bKb7e1.bbcb7aefd10825105e2fce86fd82efe6.1.cs102;received=10.0.14.118;rport=5060
Via: SIP/2.0/UDP proxy-a.com:5060
;rport=5060;branch=z9hG4bKb7e1.f58c5fbd664fa63cd69162afcb07f88a.1
Via: SIP/2.0/UDP did.com:5060;received=did.com
;branch=z9hG4bK3756a567;rport=5060
Record-Route: <sip:sip.comms.kuflink.com;lr;did=baf.7bf1>
Record-Route: <sip:proxy-a.com;lr>
From: "54321" <sip:54321 at did.com>;tag=as02b3f892
To: <sip:123456 at proxy-a.com>;tag=as12b14194
Call-ID: 6a981008384dd72c23ee9e59690eb5eb at did.com
CSeq: 103 INVITE
Server: did
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
Contact: <sip:123456 at 10.0.14.118:6000>
Content-Length: 0


2020/12/17 11:42:34.277337 10.0.14.118:5060 -> proxy-a.com:5060
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP proxy-a.com:5060
;rport=5060;branch=z9hG4bKb7e1.f58c5fbd664fa63cd69162afcb07f88a.1
Via: SIP/2.0/UDP did.com:5060;received=did.com
;branch=z9hG4bK3756a567;rport=5060
Record-Route: <sip:sip.comms.kuflink.com;lr;did=baf.7bf1>
Record-Route: <sip:proxy-a.com;lr>
From: "54321" <sip:54321 at did.com>;tag=as02b3f892
To: <sip:123456 at proxy-a.com>;tag=as12b14194
Call-ID: 6a981008384dd72c23ee9e59690eb5eb at did.com
CSeq: 102 INVITE
Server: did
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
Contact: <sip:123456 at 10.0.14.118:6000;alias=10.0.14.118~6000~1>
Content-Length: 0



2020/12/17 11:42:38.113181 proxy-a.com:5060 -> 10.0.14.118:5060
CANCEL sip:123456 at proxy-a.com SIP/2.0
Via: SIP/2.0/UDP proxy-a.com:5060
;branch=z9hG4bKb7e1.f58c5fbd664fa63cd69162afcb07f88a.1
Max-Forwards: 70
From: "54321" <sip:54321 at did.com>;tag=as02b3f892
To: <sip:123456 at proxy-a.com>
Call-ID: 6a981008384dd72c23ee9e59690eb5eb at did.com
CSeq: 102 CANCEL
Content-Length: 0


2020/12/17 11:42:38.113918 10.0.14.118:5060 -> 10.0.14.118:6000
CANCEL sip:123456 at proxy-a.com SIP/2.0
Via: SIP/2.0/UDP sip.comms.kuflink.com:5060
;branch=z9hG4bKb7e1.bbcb7aefd10825105e2fce86fd82efe6.1
Max-Forwards: 70
From: "54321" <sip:54321 at did.com>;tag=as02b3f892
To: <sip:123456 at proxy-a.com>
Call-ID: 6a981008384dd72c23ee9e59690eb5eb at did.com
CSeq: 102 CANCEL
Content-Length: 0
P-K-CSeq-Auth: 103



2020/12/17 11:42:38.114114 10.0.14.118:5060 -> proxy-a.com:5060
SIP/2.0 200 canceling
Via: SIP/2.0/UDP proxy-a.com:5060
;branch=z9hG4bKb7e1.f58c5fbd664fa63cd69162afcb07f88a.1;rport=5060
From: "54321" <sip:54321 at did.com>;tag=as02b3f892
To: <sip:123456 at proxy-a.com>;tag=a74459175e9494c7e23ffeb306461015-0f770312
Call-ID: 6a981008384dd72c23ee9e59690eb5eb at did.com
CSeq: 102 CANCEL
Server: kamailio (5.4.3 (x86_64/linux))
Content-Length: 0



2020/12/17 11:42:38.116456 10.0.14.118:6000 -> 10.0.14.118:5060
SIP/2.0 481 Call leg/transaction does not exist
Via: SIP/2.0/UDP sip.comms.kuflink.com:5060
;branch=z9hG4bKb7e1.bbcb7aefd10825105e2fce86fd82efe6.1;received=10.0.14.118;rport=5060
From: "54321" <sip:54321 at did.com>;tag=as02b3f892
To: <sip:123456 at proxy-a.com>;tag=as24deed39
Call-ID: 6a981008384dd72c23ee9e59690eb5eb at did.com
CSeq: 102 CANCEL
Server: did
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0



2020/12/17 11:42:54.554350 10.0.14.118:6000 -> 10.0.14.118:5060
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP sip.comms.kuflink.com:5060
;branch=z9hG4bKb7e1.bbcb7aefd10825105e2fce86fd82efe6.1.cs102;received=10.0.14.118;rport=5060
Via: SIP/2.0/UDP proxy-a.com:5060
;rport=5060;branch=z9hG4bKb7e1.f58c5fbd664fa63cd69162afcb07f88a.1
Via: SIP/2.0/UDP did.com:5060;received=did.com
;branch=z9hG4bK3756a567;rport=5060
Record-Route: <sip:sip.comms.kuflink.com;lr;did=baf.7bf1>
Record-Route: <sip:proxy-a.com;lr>
From: "54321" <sip:54321 at did.com>;tag=as02b3f892
To: <sip:123456 at proxy-a.com>;tag=as12b14194
Call-ID: 6a981008384dd72c23ee9e59690eb5eb at did.com
CSeq: 103 INVITE
Server: did
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
Contact: <sip:123456 at 10.0.14.118:6000>
Content-Type: application/sdp
Require: timer
Content-Length: 292



2020/12/17 11:42:54.554978 10.0.14.118:5060 -> 10.0.14.118:6000
CANCEL sip:123456 at proxy-a.com SIP/2.0
Via: SIP/2.0/UDP sip.comms.kuflink.com:5060
;branch=z9hG4bKb7e1.bbcb7aefd10825105e2fce86fd82efe6.1
Max-Forwards: 70
From: "54321" <sip:54321 at did.com>;tag=as02b3f892
To: <sip:123456 at proxy-a.com>
Call-ID: 6a981008384dd72c23ee9e59690eb5eb at did.com
CSeq: 102 CANCEL
Content-Length: 0
P-K-CSeq-Auth: 103



2020/12/17 11:42:54.557082 10.0.14.118:6000 -> 10.0.14.118:5060
SIP/2.0 481 Call leg/transaction does not exist
Via: SIP/2.0/UDP sip.comms.kuflink.com:5060
;branch=z9hG4bKb7e1.bbcb7aefd10825105e2fce86fd82efe6.1;received=10.0.14.118;rport=5060
From: "54321" <sip:54321 at did.com>;tag=as02b3f892
To: <sip:123456 at proxy-a.com>;tag=as5eee0295
Call-ID: 6a981008384dd72c23ee9e59690eb5eb at did.com
CSeq: 102 CANCEL
Server: did
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0



2020/12/17 11:42:59.617825 10.0.14.118:6000 -> 10.0.14.118:5060
SIP/2.0 603 Declined
Via: SIP/2.0/UDP sip.comms.kuflink.com:5060
;branch=z9hG4bKb7e1.bbcb7aefd10825105e2fce86fd82efe6.1.cs102;received=10.0.14.118;rport=5060
Via: SIP/2.0/UDP proxy-a.com:5060
;rport=5060;branch=z9hG4bKb7e1.f58c5fbd664fa63cd69162afcb07f88a.1
Via: SIP/2.0/UDP did.com:5060;received=did.com
;branch=z9hG4bK3756a567;rport=5060
From: "54321" <sip:54321 at did.com>;tag=as02b3f892
To: <sip:123456 at proxy-a.com>;tag=as12b14194
Call-ID: 6a981008384dd72c23ee9e59690eb5eb at did.com
CSeq: 103 INVITE
Server: did
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
Content-Length: 0



2020/12/17 11:42:59.618423 10.0.14.118:5060 -> 10.0.14.118:6000
ACK sip:123456 at proxy-a.com SIP/2.0
Via: SIP/2.0/UDP sip.comms.kuflink.com:5060
;branch=z9hG4bKb7e1.bbcb7aefd10825105e2fce86fd82efe6.1.cs102
Max-Forwards: 70
From: "54321" <sip:54321 at did.com>;tag=as02b3f892
To: <sip:123456 at proxy-a.com>;tag=as12b14194
Call-ID: 6a981008384dd72c23ee9e59690eb5eb at did.com
CSeq: 103 ACK
Content-Length: 0



2020/12/17 11:42:59.618944 10.0.14.118:5060 -> proxy-a.com:5060
SIP/2.0 603 Declined
Via: SIP/2.0/UDP proxy-a.com:5060
;rport=5060;branch=z9hG4bKb7e1.f58c5fbd664fa63cd69162afcb07f88a.1
Via: SIP/2.0/UDP did.com:5060;received=did.com
;branch=z9hG4bK3756a567;rport=5060
From: "54321" <sip:54321 at did.com>;tag=as02b3f892
To: <sip:123456 at proxy-a.com>;tag=as12b14194
Call-ID: 6a981008384dd72c23ee9e59690eb5eb at did.com
CSeq: 102 INVITE
Server: did
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
Content-Length: 0



2020/12/17 11:42:59.620074 proxy-a.com:5060 -> 10.0.14.118:5060
ACK sip:123456 at proxy-a.com SIP/2.0
Via: SIP/2.0/UDP proxy-a.com:5060
;branch=z9hG4bKb7e1.f58c5fbd664fa63cd69162afcb07f88a.1
Max-Forwards: 70
From: "54321" <sip:54321 at did.com>;tag=as02b3f892
To: <sip:123456 at proxy-a.com>;tag=as12b14194
Call-ID: 6a981008384dd72c23ee9e59690eb5eb at did.com
CSeq: 102 ACK
Content-Length: 0

On Thu, Dec 17, 2020 at 4:52 PM George Diamantopoulos <georgediam at gmail.com>
wrote:

> Not sure if this is related, but I've also run into issues with
> track_cseq_updates:
> https://www.mail-archive.com/sr-users@lists.kamailio.org/msg12362.html
>
> More specifically, kamailio won't process the 100 Trying to an Cseq-bumped
> INVITE it generated
> itself with uac_auth() when track_cseq_updates is on.
>
> This implementation appears to be a little too fragile for the time
> being....
>
> BR,
> George
>
> On Thu, 17 Dec 2020 at 12:29, Terry Tailor <terry at fullduplex.co.uk> wrote:
>
>> Hi, Here is setup details
>> Kamailio Proxy a <-----> Kamailio Proxy b  <-----> Asterisk
>> Kamailio proxy b auth based on IP Kamailio Proxy a
>> 1. Kamailio proxy sends an Invite request to Kamailio proxy b with CSeq:
>> 102 INVITE
>> 2. Kamailio proxy b check again IP auth and sends invite request to
>> asterisk with CSeq: 102 INVITE
>> 4 asterisk response with 401 Unauthorized with  CSeq: 102
>> 5. Kamailio proxy b sends ACK request with CSeq: 102 ACK
>> 6. Kamailio proxy b sends INVITE request with CSeq: 103 INVITE
>> 7. Asterisk sends 100 trying and 180 ringing with CSeq: 103 INVITE
>> 8. Kamailio proxy b relay 180 ringing with  CSeq: 102 INVITE
>> 9. Asterisk send 200 Ok with CSeq: 103 INVITE and proxy b relay it to
>> proxy a with CSeq: 102 INVITE
>> 10. Now Proxy a send an ACK with CSeq: 102 ACK and proxy b relay ACK to
>> asterisk with CSeq: 102 ACK
>>
>> Now asterisk is retransmitting 200 ok with CSeq: 103 INVITE and proxy a
>> is sending ACK with Cseq: 102 ACK
>>
>> Same happing in case of 487 Request Terminated
>>
>> Here is my config
>>
>> modparam("dialog", "default_timeout", 10800) # 3h
>> modparam("dialog", "dlg_match_mode", 1)
>> modparam("dialog", "db_mode", 0)
>> modparam("dialog", "send_bye", 1)
>> modparam("dialog", "track_cseq_updates", 1)
>> modparam("uac","auth_username_avp","$avp(auser)")
>> modparam("uac","auth_password_avp","$avp(apass)")
>> modparam("uac","auth_realm_avp","$avp(arealm)")
>>
>> modparam("tm", "failure_reply_mode", 3)
>> # default retransmission timeout: 3 sec
>> modparam("tm", "fr_timer", 2000)
>> modparam("tm", "retr_timer1", 250)
>> modparam("tm", "retr_timer2", 500)
>> # default invite retransmission timeout after 1xx: 60 sec
>> modparam("tm", "fr_inv_timer", 60000)
>> modparam("tm", "reparse_on_dns_failover", 0)
>>
>>
>>
>> if (is_method("INVITE") && !has_totag()) {
>>         dlg_setflag(FLD_RTPPROXY);
>>         dlg_manage();
>>     }
>>     route(RELAY);
>>
>>
>>
>>
>> route[RELAY] {
>>
>>     # At this point all checks are passed
>>     t_on_branch("MANAGE_BRANCH");
>>     t_on_reply("MANAGE_REPLY");
>>     t_on_failure("MANAGE_FAILURE");
>>     if(is_method("INVITE") && isflagset(FLT_FROMDID)) {
>>      #$fd = "sip.comms.kuflink.com";
>>       t_on_failure("RELAY_AUTH");
>>     }
>>
>>     if (!t_relay()) {
>>         send_reply("500", "Cannot relay to $du/$ru");
>>     }
>>     exit;
>> }
>>
>> failure_route[RELAY_AUTH] {
>>     t_on_branch("MANAGE_BRANCH");
>>     t_on_reply("MANAGE_REPLY");
>>     if (t_is_canceled()) {
>>         exit;
>>     }
>>     if(t_check_status("401|407")) {
>>         #$fd = "sip.comms.kuflink.com";
>>         $avp(auser) = "DID_UA_USERNAME";
>>         $avp(apass) = "DID_UA_PASSWORD";
>>         if (uac_auth()) {
>>             t_relay();
>>         }
>>         exit;
>>     }
>> }
>>
>>
>> route[WITHINDLG] {
>>     if (!has_totag()) {
>>         return;
>>     }
>>
>>     if (is_method("BYE")) {
>>         rtpengine_delete();
>>     }
>>
>>     # sequential request withing a dialog should
>>     # take the path determined by record-routing
>>     if (loose_route()) {
>>         route(DLGURI);
>>         if (is_method("ACK")) {
>>             # ACK is forwarded statelessly
>>             route(NATMANAGE);
>>         } else if (is_method("NOTIFY")) {
>>             # Add Record-Route for in-dialog NOTIFY as per RFC 6665.
>>             record_route();
>>         }
>>         route(RELAY);
>>         exit;
>>     }
>>
>>     if (is_method("SUBSCRIBE") && uri == myself) {
>>         # in-dialog subscribe requests
>>         route(PRESENCE);
>>         exit;
>>     }
>>     if (is_method("ACK") ) {
>>         if (t_check_trans()) {
>>             # no loose-route, but stateful ACK;
>>             # must be an ACK after a 487
>>             # or e.g. 404 from upstream server
>>             route(RELAY);
>>             exit;
>>         } else {
>>             # ACK without matching transaction ... ignore and discard
>>             exit;
>>         }
>>     }
>>     send_reply("404","Not here");
>>     exit;
>> }
>>
>>
>> kamailio -v
>> version: kamailio 5.3.7 (x86_64/linux)
>> flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS,
>> DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC,
>> F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT,
>> USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST,
>> HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED
>> ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024,
>> BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
>> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
>> id: unknown
>> compiled with gcc 6.3.0
>>
>>
>> uname -a
>> Linux example.com 4.15.0-124-generic #127-Ubuntu SMP Fri Nov 6 10:54:43
>> UTC 2020 x86_64 GNU/Linux
>>
>>
>>
>> SIP logs
>> 2020/12/17 10:08:18.483907 proxy-a.com:5060 -> 10.0.14.118:5060
>> INVITE sip:123456 at proxy-a.com SIP/2.0
>> Record-Route: <sip:proxy-a.com;lr>
>> Via: SIP/2.0/UDP proxy-a.com:5060
>> ;branch=z9hG4bKbe6d.10c4c5f001c66b8976214d4aef9f635c.1
>> Via: SIP/2.0/UDP did.com:5060;received=did.com
>> ;branch=z9hG4bK45f94ed9;rport=5060
>> Max-Forwards: 70
>> From: "7654321" <sip:7654321 at did.com>;tag=as55c522e1
>> To: <sip:123456 at proxy-a.com>
>> Contact: <sip:7654321 at did.com:5060>
>> Call-ID: 67675c7e636d6e773860255316e54779 at did.com
>> User-Agent: ProxyA
>> CSeq: 102 INVITE
>> User-Agent: proxy
>> Date: Thu, 17 Dec 2020 10:08:18 GMT
>> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
>> PUBLISH, MESSAGE
>> Supported: replaces, timer
>> Remote-Party-ID: "7654321" <sip:7654321 at did.com
>> >;party=calling;privacy=off;screen=no
>> Content-Type: application/sdp
>> Content-Length: 885
>>
>>
>>
>> 2020/12/17 10:08:18.485063 10.0.14.118:5060 -> proxy-a.com:5060
>> SIP/2.0 100 trying -- your call is important to us
>> Via: SIP/2.0/UDP proxy-a.com:5060
>> ;branch=z9hG4bKbe6d.10c4c5f001c66b8976214d4aef9f635c.1;rport=5060
>> Via: SIP/2.0/UDP did.com:5060;received=did.com
>> ;branch=z9hG4bK45f94ed9;rport=5060
>> From: "7654321" <sip:7654321 at did.com>;tag=as55c522e1
>> To: <sip:123456 at proxy-a.com>
>> Call-ID: 67675c7e636d6e773860255316e54779 at did.com
>> CSeq: 102 INVITE
>> Server: kamailio (5.3.7 (x86_64/linux))
>> Content-Length: 0
>>
>>
>> 2020/12/17 10:08:18.485576 10.0.14.118:5060 -> 10.0.14.118:6000
>> INVITE sip:123456 at proxy-a.com SIP/2.0
>> Record-Route: <sip:proxy-b.com;lr;did=d18.7a9>
>> Record-Route: <sip:proxy-a.com;lr>
>> Via: SIP/2.0/UDP proxy-b.com:5060
>> ;branch=z9hG4bKbe6d.619fd995c3fc8764ce5cd9c7be7efeef.0
>> Via: SIP/2.0/UDP proxy-a.com:5060
>> ;rport=5060;branch=z9hG4bKbe6d.10c4c5f001c66b8976214d4aef9f635c.1
>> Via: SIP/2.0/UDP did.com:5060;received=did.com
>> ;branch=z9hG4bK45f94ed9;rport=5060
>> Max-Forwards: 70
>> From: "7654321" <sip:7654321 at did.com>;tag=as55c522e1
>> To: <sip:123456 at proxy-a.com>
>> Contact: <sip:7654321 at did.com:5060>
>> Call-ID: 67675c7e636d6e773860255316e54779 at did.com
>> User-Agent: ProxyA
>> CSeq: 102 INVITE
>> User-Agent: proxy
>> Date: Thu, 17 Dec 2020 10:08:18 GMT
>> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
>> PUBLISH, MESSAGE
>> Supported: replaces, timer
>> Remote-Party-ID: "7654321" <sip:7654321 at did.com
>> >;party=calling;privacy=off;screen=no
>> Content-Type: application/sdp
>> Content-Length: 885
>>
>>
>>
>> 2020/12/17 10:08:18.622867 10.0.14.118:6000 -> 10.0.14.118:5060
>> SIP/2.0 401 Unauthorized
>> Via: SIP/2.0/UDP proxy-b.com:5060
>> ;branch=z9hG4bKbe6d.619fd995c3fc8764ce5cd9c7be7efeef.0;received=10.0.14.118;rport=5060
>> Via: SIP/2.0/UDP proxy-a.com:5060
>> ;rport=5060;branch=z9hG4bKbe6d.10c4c5f001c66b8976214d4aef9f635c.1
>> Via: SIP/2.0/UDP did.com:5060;received=did.com
>> ;branch=z9hG4bK45f94ed9;rport=5060
>> From: "7654321" <sip:7654321 at did.com>;tag=as55c522e1
>> To: <sip:123456 at proxy-a.com>;tag=as4107645c
>> Call-ID: 67675c7e636d6e773860255316e54779 at did.com
>> CSeq: 102 INVITE
>> Server: proxy
>> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
>> PUBLISH, MESSAGE
>> Supported: replaces, timer
>> WWW-Authenticate: Digest algorithm=MD5, realm="sip1.comms.kuflink.com",
>> nonce="11139d33"
>> Content-Length: 0
>>
>>
>>
>> 2020/12/17 10:08:18.624034 10.0.14.118:5060 -> 10.0.14.118:6000
>> ACK sip:123456 at proxy-a.com SIP/2.0
>> Via: SIP/2.0/UDP proxy-b.com:5060
>> ;branch=z9hG4bKbe6d.619fd995c3fc8764ce5cd9c7be7efeef.0
>> Max-Forwards: 70
>> From: "7654321" <sip:7654321 at did.com>;tag=as55c522e1
>> To: <sip:123456 at proxy-a.com>;tag=as4107645c
>> Call-ID: 67675c7e636d6e773860255316e54779 at did.com
>> CSeq: 102 ACK
>> Content-Length: 0
>>
>>
>>
>> 2020/12/17 10:08:18.625557 10.0.14.118:5060 -> 10.0.14.118:6000
>> INVITE sip:123456 at proxy-a.com SIP/2.0
>> Record-Route: <sip:proxy-b.com;lr;did=d18.7a9>
>> Record-Route: <sip:proxy-a.com;lr>
>> Via: SIP/2.0/UDP proxy-b.com:5060
>> ;branch=z9hG4bKbe6d.619fd995c3fc8764ce5cd9c7be7efeef.1.cs102
>> Via: SIP/2.0/UDP proxy-a.com:5060
>> ;rport=5060;branch=z9hG4bKbe6d.10c4c5f001c66b8976214d4aef9f635c.1
>> Via: SIP/2.0/UDP did.com:5060;received=did.com
>> ;branch=z9hG4bK45f94ed9;rport=5060
>> Max-Forwards: 70
>> From: "7654321" <sip:7654321 at did.com>;tag=as55c522e1
>> To: <sip:123456 at proxy-a.com>
>> Contact: <sip:7654321 at did.com:5060>
>> Call-ID: 67675c7e636d6e773860255316e54779 at did.com
>> User-Agent: ProxyA
>> CSeq: 103 INVITE
>> User-Agent: proxy
>> Date: Thu, 17 Dec 2020 10:08:18 GMT
>> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
>> PUBLISH, MESSAGE
>> Supported: replaces, timer
>> Remote-Party-ID: "7654321" <sip:7654321 at did.com
>> >;party=calling;privacy=off;screen=no
>> Content-Type: application/sdp
>> Content-Length: 885
>> Authorization: Digest username="xxxxx", realm="xxxx", nonce="11139d33",
>> uri="sip:123456 at proxy-a.com", response="qwewqeqwe", algorithm=MD5
>>
>>
>>
>> 2020/12/17 10:08:18.779483 10.0.14.118:6000 -> 10.0.14.118:5060
>> SIP/2.0 100 Trying
>> Via: SIP/2.0/UDP proxy-b.com:5060
>> ;branch=z9hG4bKbe6d.619fd995c3fc8764ce5cd9c7be7efeef.1.cs102;received=10.0.14.118;rport=5060
>> Via: SIP/2.0/UDP proxy-a.com:5060
>> ;rport=5060;branch=z9hG4bKbe6d.10c4c5f001c66b8976214d4aef9f635c.1
>> Via: SIP/2.0/UDP did.com:5060;received=did.com
>> ;branch=z9hG4bK45f94ed9;rport=5060
>> Record-Route: <sip:proxy-b.com;lr;did=d18.7a9>
>> Record-Route: <sip:proxy-a.com;lr>
>> From: "7654321" <sip:7654321 at did.com>;tag=as55c522e1
>> To: <sip:123456 at proxy-a.com>
>> Call-ID: 67675c7e636d6e773860255316e54779 at did.com
>> CSeq: 103 INVITE
>> Server: proxy
>> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
>> PUBLISH, MESSAGE
>> Supported: replaces, timer
>> Session-Expires: 1800;refresher=uas
>> Contact: <sip:123456 at 10.0.14.118:6000>
>> Content-Length: 0
>>
>>
>>
>>
>> 2020/12/17 10:08:20.937756 10.0.14.118:6000 -> 10.0.14.118:5060
>> SIP/2.0 180 Ringing
>> Via: SIP/2.0/UDP proxy-b.com:5060
>> ;branch=z9hG4bKbe6d.619fd995c3fc8764ce5cd9c7be7efeef.1.cs102;received=10.0.14.118;rport=5060
>> Via: SIP/2.0/UDP proxy-a.com:5060
>> ;rport=5060;branch=z9hG4bKbe6d.10c4c5f001c66b8976214d4aef9f635c.1
>> Via: SIP/2.0/UDP did.com:5060;received=did.com
>> ;branch=z9hG4bK45f94ed9;rport=5060
>> Record-Route: <sip:proxy-b.com;lr;did=d18.7a9>
>> Record-Route: <sip:proxy-a.com;lr>
>> From: "7654321" <sip:7654321 at did.com>;tag=as55c522e1
>> To: <sip:123456 at proxy-a.com>;tag=as147bfa3e
>> Call-ID: 67675c7e636d6e773860255316e54779 at did.com
>> CSeq: 103 INVITE
>> Server: proxy
>> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
>> PUBLISH, MESSAGE
>> Supported: replaces, timer
>> Session-Expires: 1800;refresher=uas
>> Contact: <sip:123456 at 10.0.14.118:6000>
>> Content-Length: 0
>>
>>
>>
>> 2020/12/17 10:08:20.938593 10.0.14.118:5060 -> proxy-a.com:5060
>> SIP/2.0 180 Ringing
>> Via: SIP/2.0/UDP proxy-a.com:5060
>> ;rport=5060;branch=z9hG4bKbe6d.10c4c5f001c66b8976214d4aef9f635c.1
>> Via: SIP/2.0/UDP did.com:5060;received=did.com
>> ;branch=z9hG4bK45f94ed9;rport=5060
>> Record-Route: <sip:proxy-b.com;lr;did=d18.7a9>
>> Record-Route: <sip:proxy-a.com;lr>
>> From: "7654321" <sip:7654321 at did.com>;tag=as55c522e1
>> To: <sip:123456 at proxy-a.com>;tag=as147bfa3e
>> Call-ID: 67675c7e636d6e773860255316e54779 at did.com
>> CSeq: 102 INVITE
>> Server: proxy
>> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
>> PUBLISH, MESSAGE
>> Supported: replaces, timer
>> Session-Expires: 1800;refresher=uas
>> Contact: <sip:123456 at 10.0.14.118:6000;alias=10.0.14.118~6000~1>
>> Content-Length: 0
>>
>>
>>
>> 2020/12/17 10:08:22.075814 10.0.14.118:6000 -> 10.0.14.118:5060
>> SIP/2.0 200 OK
>> Via: SIP/2.0/UDP proxy-b.com:5060
>> ;branch=z9hG4bKbe6d.619fd995c3fc8764ce5cd9c7be7efeef.1.cs102;received=10.0.14.118;rport=5060
>> Via: SIP/2.0/UDP proxy-a.com:5060
>> ;rport=5060;branch=z9hG4bKbe6d.10c4c5f001c66b8976214d4aef9f635c.1
>> Via: SIP/2.0/UDP did.com:5060;received=did.com
>> ;branch=z9hG4bK45f94ed9;rport=5060
>> Record-Route: <sip:proxy-b.com;lr;did=d18.7a9>
>> Record-Route: <sip:proxy-a.com;lr>
>> From: "7654321" <sip:7654321 at did.com>;tag=as55c522e1
>> To: <sip:123456 at proxy-a.com>;tag=as147bfa3e
>> Call-ID: 67675c7e636d6e773860255316e54779 at did.com
>> CSeq: 103 INVITE
>> Server: proxy
>> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
>> PUBLISH, MESSAGE
>> Supported: replaces, timer
>> Session-Expires: 1800;refresher=uas
>> Contact: <sip:123456 at 10.0.14.118:6000>
>> Content-Type: application/sdp
>> Require: timer
>> Content-Length: 296
>>
>>
>> 2020/12/17 10:08:22.077049 10.0.14.118:5060 -> proxy-a.com:5060
>> SIP/2.0 200 OK
>> Via: SIP/2.0/UDP proxy-a.com:5060
>> ;rport=5060;branch=z9hG4bKbe6d.10c4c5f001c66b8976214d4aef9f635c.1
>> Via: SIP/2.0/UDP did.com:5060;received=did.com
>> ;branch=z9hG4bK45f94ed9;rport=5060
>> Record-Route: <sip:proxy-b.com;lr;did=d18.7a9>
>> Record-Route: <sip:proxy-a.com;lr>
>> From: "7654321" <sip:7654321 at did.com>;tag=as55c522e1
>> To: <sip:123456 at proxy-a.com>;tag=as147bfa3e
>> Call-ID: 67675c7e636d6e773860255316e54779 at did.com
>> CSeq: 102 INVITE
>> Server: proxy
>> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
>> PUBLISH, MESSAGE
>> Supported: replaces, timer
>> Session-Expires: 1800;refresher=uas
>> Contact: <sip:123456 at 10.0.14.118:6000;alias=10.0.14.118~6000~1>
>> Content-Type: application/sdp
>> Require: timer
>> Content-Length: 316
>>
>>
>>
>> 2020/12/17 10:08:22.103365 proxy-a.com:5060 -> 10.0.14.118:5060
>> ACK sip:123456 at 10.0.14.118:6000;alias=10.0.14.118~6000~1;alias=109.72.216.251~5060~1
>> SIP/2.0
>> Via: SIP/2.0/UDP proxy-a.com:5060
>> ;branch=z9hG4bKbe6d.0fc1940efc770391762d7d67094c24f8.0
>> Via: SIP/2.0/UDP did.com:5060;received=did.com
>> ;branch=z9hG4bK2a5fae72;rport=5060
>> Route: <sip:proxy-b.com;lr;did=d18.7a9>
>> Max-Forwards: 70
>> From: "7654321" <sip:7654321 at did.com>;tag=as55c522e1
>> To: <sip:123456 at proxy-a.com>;tag=as147bfa3e
>> Contact: <sip:7654321 at did.com:5060>
>> Call-ID: 67675c7e636d6e773860255316e54779 at did.com
>> CSeq: 102 ACK
>> User-Agent: proxy
>> Content-Length: 0
>>
>>
>>
>> 2020/12/17 10:08:22.103877 10.0.14.118:5060 -> 10.0.14.118:6000
>> ACK sip:123456 at 10.0.14.118:6000;alias=109.72.216.251~5060~1 SIP/2.0
>> Via: SIP/2.0/UDP proxy-b.com:5060
>> ;branch=z9hG4bKbe6d.79f351d031912aae585207d2f26d5650.0
>> Via: SIP/2.0/UDP proxy-a.com:5060
>> ;rport=5060;branch=z9hG4bKbe6d.0fc1940efc770391762d7d67094c24f8.0
>> Via: SIP/2.0/UDP did.com:5060;received=did.com
>> ;branch=z9hG4bK2a5fae72;rport=5060
>> Max-Forwards: 70
>> From: "7654321" <sip:7654321 at did.com>;tag=as55c522e1
>> To: <sip:123456 at proxy-a.com>;tag=as147bfa3e
>> Contact: <sip:7654321 at did.com:5060>
>> Call-ID: 67675c7e636d6e773860255316e54779 at did.com
>> CSeq: 102 ACK
>> User-Agent: proxy
>> Content-Length: 0
>> P-K-CSeq-Refresh: 103
>>
>>
>> 2020/12/17 10:08:22.575533 10.0.14.118:6000 -> 10.0.14.118:5060
>> SIP/2.0 200 OK
>> Via: SIP/2.0/UDP proxy-b.com:5060
>> ;branch=z9hG4bKbe6d.619fd995c3fc8764ce5cd9c7be7efeef.1.cs102;received=10.0.14.118;rport=5060
>> Via: SIP/2.0/UDP proxy-a.com:5060
>> ;rport=5060;branch=z9hG4bKbe6d.10c4c5f001c66b8976214d4aef9f635c.1
>> Via: SIP/2.0/UDP did.com:5060;received=did.com
>> ;branch=z9hG4bK45f94ed9;rport=5060
>> Record-Route: <sip:proxy-b.com;lr;did=d18.7a9>
>> Record-Route: <sip:proxy-a.com;lr>
>> From: "7654321" <sip:7654321 at did.com>;tag=as55c522e1
>> To: <sip:123456 at proxy-a.com>;tag=as147bfa3e
>> Call-ID: 67675c7e636d6e773860255316e54779 at did.com
>> CSeq: 103 INVITE
>> Server: proxy
>> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
>> PUBLISH, MESSAGE
>> Supported: replaces, timer
>> Session-Expires: 1800;refresher=uas
>> Contact: <sip:123456 at 10.0.14.118:6000>
>> Content-Type: application/sdp
>> Require: timer
>> Content-Length: 296
>>
>>
>>
>> 2020/12/17 10:08:22.576777 10.0.14.118:5060 -> proxy-a.com:5060
>> SIP/2.0 200 OK
>> Via: SIP/2.0/UDP proxy-a.com:5060
>> ;rport=5060;branch=z9hG4bKbe6d.10c4c5f001c66b8976214d4aef9f635c.1
>> Via: SIP/2.0/UDP did.com:5060;received=did.com
>> ;branch=z9hG4bK45f94ed9;rport=5060
>> Record-Route: <sip:proxy-b.com;lr;did=d18.7a9>
>> Record-Route: <sip:proxy-a.com;lr>
>> From: "7654321" <sip:7654321 at did.com>;tag=as55c522e1
>> To: <sip:123456 at proxy-a.com>;tag=as147bfa3e
>> Call-ID: 67675c7e636d6e773860255316e54779 at did.com
>> CSeq: 102 INVITE
>> Server: proxy
>> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
>> PUBLISH, MESSAGE
>> Supported: replaces, timer
>> Session-Expires: 1800;refresher=uas
>> Contact: <sip:123456 at 10.0.14.118:6000;alias=10.0.14.118~6000~1>
>> Content-Type: application/sdp
>> Require: timer
>> Content-Length: 316
>>
>>
>>
>> 2020/12/17 10:08:22.581649 proxy-a.com:5060 -> 10.0.14.118:5060
>> ACK sip:123456 at 10.0.14.118:6000;alias=10.0.14.118~6000~1;alias=109.72.216.251~5060~1
>> SIP/2.0
>> Via: SIP/2.0/UDP proxy-a.com:5060
>> ;branch=z9hG4bKbe6d.b9c7eeccd4cd7b44f05b173308dbaf0a.0
>> Via: SIP/2.0/UDP did.com:5060;received=did.com
>> ;branch=z9hG4bK219933f6;rport=5060
>> Route: <sip:proxy-b.com;lr;did=d18.7a9>
>> Max-Forwards: 70
>> From: "7654321" <sip:7654321 at did.com>;tag=as55c522e1
>> To: <sip:123456 at proxy-a.com>;tag=as147bfa3e
>> Contact: <sip:7654321 at did.com:5060>
>> Call-ID: 67675c7e636d6e773860255316e54779 at did.com
>> CSeq: 102 ACK
>> User-Agent: proxy
>> Content-Length: 0
>>
>>
>>
>> 2020/12/17 10:08:22.582313 10.0.14.118:5060 -> 10.0.14.118:6000
>> ACK sip:123456 at 10.0.14.118:6000;alias=109.72.216.251~5060~1 SIP/2.0
>> Via: SIP/2.0/UDP proxy-b.com:5060
>> ;branch=z9hG4bKbe6d.33626b5695ad4648ba393bc62bed6a8c.0
>> Via: SIP/2.0/UDP proxy-a.com:5060
>> ;rport=5060;branch=z9hG4bKbe6d.b9c7eeccd4cd7b44f05b173308dbaf0a.0
>> Via: SIP/2.0/UDP did.com:5060;received=did.com
>> ;branch=z9hG4bK219933f6;rport=5060
>> Max-Forwards: 70
>> From: "7654321" <sip:7654321 at did.com>;tag=as55c522e1
>> To: <sip:123456 at proxy-a.com>;tag=as147bfa3e
>> Contact: <sip:7654321 at did.com:5060>
>> Call-ID: 67675c7e636d6e773860255316e54779 at did.com
>> CSeq: 102 ACK
>> User-Agent: proxy
>> Content-Length: 0
>> P-K-CSeq-Refresh: 103
>>
>>
>> 2020/12/17 10:08:23.575828 10.0.14.118:6000 -> 10.0.14.118:5060
>> SIP/2.0 200 OK
>> Via: SIP/2.0/UDP proxy-b.com:5060
>> ;branch=z9hG4bKbe6d.619fd995c3fc8764ce5cd9c7be7efeef.1.cs102;received=10.0.14.118;rport=5060
>> Via: SIP/2.0/UDP proxy-a.com:5060
>> ;rport=5060;branch=z9hG4bKbe6d.10c4c5f001c66b8976214d4aef9f635c.1
>> Via: SIP/2.0/UDP did.com:5060;received=did.com
>> ;branch=z9hG4bK45f94ed9;rport=5060
>> Record-Route: <sip:proxy-b.com;lr;did=d18.7a9>
>> Record-Route: <sip:proxy-a.com;lr>
>> From: "7654321" <sip:7654321 at did.com>;tag=as55c522e1
>> To: <sip:123456 at proxy-a.com>;tag=as147bfa3e
>> Call-ID: 67675c7e636d6e773860255316e54779 at did.com
>> CSeq: 103 INVITE
>> Server: proxy
>> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
>> PUBLISH, MESSAGE
>> Supported: replaces, timer
>> Session-Expires: 1800;refresher=uas
>> Contact: <sip:123456 at 10.0.14.118:6000>
>> Content-Type: application/sdp
>> Require: timer
>> Content-Length: 296
>>
>>
>> 2020/12/17 10:08:23.577863 10.0.14.118:5060 -> proxy-a.com:5060
>> SIP/2.0 200 OK
>> Via: SIP/2.0/UDP proxy-a.com:5060
>> ;rport=5060;branch=z9hG4bKbe6d.10c4c5f001c66b8976214d4aef9f635c.1
>> Via: SIP/2.0/UDP did.com:5060;received=did.com
>> ;branch=z9hG4bK45f94ed9;rport=5060
>> Record-Route: <sip:proxy-b.com;lr;did=d18.7a9>
>> Record-Route: <sip:proxy-a.com;lr>
>> From: "7654321" <sip:7654321 at did.com>;tag=as55c522e1
>> To: <sip:123456 at proxy-a.com>;tag=as147bfa3e
>> Call-ID: 67675c7e636d6e773860255316e54779 at did.com
>> CSeq: 102 INVITE
>> Server: proxy
>> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
>> PUBLISH, MESSAGE
>> Supported: replaces, timer
>> Session-Expires: 1800;refresher=uas
>> Contact: <sip:123456 at 10.0.14.118:6000;alias=10.0.14.118~6000~1>
>> Content-Type: application/sdp
>> Require: timer
>> Content-Length: 316
>>
>>
>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20201217/18e44e24/attachment.htm>


More information about the sr-users mailing list