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
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
2020/12/17 10:08:18.483907
proxy-a.com:5060 ->
10.0.14.118:5060INVITE
sip:123456@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@did.com>;tag=as55c522e1
To: <
sip:123456@proxy-a.com>
Contact: <
sip:7654321@did.com:5060>
Call-ID:
67675c7e636d6e773860255316e54779@did.comUser-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@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:5060SIP/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@did.com>;tag=as55c522e1
To: <
sip:123456@proxy-a.com>
Call-ID:
67675c7e636d6e773860255316e54779@did.comCSeq: 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:6000INVITE
sip:123456@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@did.com>;tag=as55c522e1
To: <
sip:123456@proxy-a.com>
Contact: <
sip:7654321@did.com:5060>
Call-ID:
67675c7e636d6e773860255316e54779@did.comUser-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@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:5060SIP/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@did.com>;tag=as55c522e1
To: <
sip:123456@proxy-a.com>;tag=as4107645c
Call-ID:
67675c7e636d6e773860255316e54779@did.comCSeq: 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:6000ACK
sip:123456@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@did.com>;tag=as55c522e1
To: <
sip:123456@proxy-a.com>;tag=as4107645c
Call-ID:
67675c7e636d6e773860255316e54779@did.comCSeq: 102 ACK
Content-Length: 0
2020/12/17 10:08:18.625557
10.0.14.118:5060 ->
10.0.14.118:6000INVITE
sip:123456@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@did.com>;tag=as55c522e1
To: <
sip:123456@proxy-a.com>
Contact: <
sip:7654321@did.com:5060>
Call-ID:
67675c7e636d6e773860255316e54779@did.comUser-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@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@proxy-a.com", response="qwewqeqwe", algorithm=MD5
2020/12/17 10:08:18.779483
10.0.14.118:6000 ->
10.0.14.118:5060SIP/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@did.com>;tag=as55c522e1
To: <
sip:123456@proxy-a.com>
Call-ID:
67675c7e636d6e773860255316e54779@did.comCSeq: 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@10.0.14.118:6000>
Content-Length: 0
2020/12/17 10:08:20.937756
10.0.14.118:6000 ->
10.0.14.118:5060SIP/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@did.com>;tag=as55c522e1
To: <
sip:123456@proxy-a.com>;tag=as147bfa3e
Call-ID:
67675c7e636d6e773860255316e54779@did.comCSeq: 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@10.0.14.118:6000>
Content-Length: 0
2020/12/17 10:08:20.938593
10.0.14.118:5060 ->
proxy-a.com:5060SIP/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@did.com>;tag=as55c522e1
To: <
sip:123456@proxy-a.com>;tag=as147bfa3e
Call-ID:
67675c7e636d6e773860255316e54779@did.comCSeq: 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@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:5060SIP/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@did.com>;tag=as55c522e1
To: <
sip:123456@proxy-a.com>;tag=as147bfa3e
Call-ID:
67675c7e636d6e773860255316e54779@did.comCSeq: 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@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:5060SIP/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@did.com>;tag=as55c522e1
To: <
sip:123456@proxy-a.com>;tag=as147bfa3e
Call-ID:
67675c7e636d6e773860255316e54779@did.comCSeq: 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@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:5060ACK sip:123456@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@did.com>;tag=as55c522e1
To: <
sip:123456@proxy-a.com>;tag=as147bfa3e
Contact: <
sip:7654321@did.com:5060>
Call-ID:
67675c7e636d6e773860255316e54779@did.comCSeq: 102 ACK
User-Agent: proxy
Content-Length: 0
2020/12/17 10:08:22.103877
10.0.14.118:5060 ->
10.0.14.118:6000ACK sip:123456@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@did.com>;tag=as55c522e1
To: <
sip:123456@proxy-a.com>;tag=as147bfa3e
Contact: <
sip:7654321@did.com:5060>
Call-ID:
67675c7e636d6e773860255316e54779@did.comCSeq: 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:5060SIP/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@did.com>;tag=as55c522e1
To: <
sip:123456@proxy-a.com>;tag=as147bfa3e
Call-ID:
67675c7e636d6e773860255316e54779@did.comCSeq: 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@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:5060SIP/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@did.com>;tag=as55c522e1
To: <
sip:123456@proxy-a.com>;tag=as147bfa3e
Call-ID:
67675c7e636d6e773860255316e54779@did.comCSeq: 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@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:5060ACK sip:123456@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@did.com>;tag=as55c522e1
To: <
sip:123456@proxy-a.com>;tag=as147bfa3e
Contact: <
sip:7654321@did.com:5060>
Call-ID:
67675c7e636d6e773860255316e54779@did.comCSeq: 102 ACK
User-Agent: proxy
Content-Length: 0
2020/12/17 10:08:22.582313
10.0.14.118:5060 ->
10.0.14.118:6000ACK sip:123456@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@did.com>;tag=as55c522e1
To: <
sip:123456@proxy-a.com>;tag=as147bfa3e
Contact: <
sip:7654321@did.com:5060>
Call-ID:
67675c7e636d6e773860255316e54779@did.comCSeq: 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:5060SIP/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@did.com>;tag=as55c522e1
To: <
sip:123456@proxy-a.com>;tag=as147bfa3e
Call-ID:
67675c7e636d6e773860255316e54779@did.comCSeq: 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@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:5060SIP/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@did.com>;tag=as55c522e1
To: <
sip:123456@proxy-a.com>;tag=as147bfa3e
Call-ID:
67675c7e636d6e773860255316e54779@did.comCSeq: 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@10.0.14.118:6000;alias=10.0.14.118~6000~1>
Content-Type: application/sdp
Require: timer
Content-Length: 316