But then UAC sending BYE to Kamailio2 , Kamailio2 sending it to Kamailio1 and Kamailio1 response 404 not here (not sending BYE to Asterisk)
Asterisk Kamailio1 Kamailio2 UAC
| invite | | |
| | |----------------------------------->|
| | | 200OK |
| | 200OK |<-----------------------------------|
BYE
| | BYE |<-----------------------------------|
| | 404 Not here | |
| | |----------------------------------->|
#
Record-Route: <sip:107.21.18.6;lr=on>.
Via: SIP/2.0/UDP 107.21.18.6:5060;branch=z9hG4bK67a4.83b3107c510ddfe551896134a5e82554.0.
Via: SIP/2.0/UDP 54.236.97.30:5060;received=54.236.97.30;branch=z9hG4bK3d97649d;rport=5060.
Max-Forwards: 68.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Date: Fri, 10 Mar 2017 02:30:12 GMT.
Min-SE: 120.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE.
Supported: replaces, timer.
Content-Type: application/sdp.
Content-Length: 237.
.
v=0.
o=root 39119558 39119558 IN IP4 54.236.97.30.
s=Asterisk PBX 1.8.28-cert5.
c=IN IP4 54.236.97.30.
t=0 0.
m=audio 53626 RTP/AVP 0 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=ptime:20.
a=sendrecv.
SIP/2.0 100 trying -- your call is important to us.
Via: SIP/2.0/UDP 107.21.18.6:5060;branch=z9hG4bK67a4.83b3107c510ddfe551896134a5e82554.0;rport=5060.
Via: SIP/2.0/UDP 54.236.97.30:5060;received=54.236.97.30;branch=z9hG4bK3d97649d;rport=5060.
CSeq: 102 INVITE.
Server: kamailio (4.4.3 (x86_64/linux)).
Content-Length: 0.
.
#
Record-Route: <sip:107.23.47.88;lr>.
Record-Route: <sip:107.21.18.6;lr=on>.
Via: SIP/2.0/UDP 107.23.47.88:5060;branch=z9hG4bK67a4.d6f7e6b1f007e0958a99c6a6342e4e48.1.
Via: SIP/2.0/UDP 107.21.18.6:5060;rport=5060;branch=z9hG4bK67a4.83b3107c510ddfe551896134a5e82554.0.
Via: SIP/2.0/UDP 54.236.97.30:5060;received=54.236.97.30;branch=z9hG4bK3d97649d;rport=5060.
Max-Forwards: 66.
CSeq: 102 INVITE.
User-Agent: Asterisk PBX.
Date: Fri, 10 Mar 2017 02:30:12 GMT.
Min-SE: 120.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE.
Supported: replaces, timer.
Content-Type: application/sdp.
Content-Length: 645.
.
v=0.
o=root 39119558 39119558 IN IP4 107.23.47.88.
s=Asterisk PBX 1.8.28-cert5.
c=IN IP4 107.23.47.88.
t=0 0.
m=audio 10054 RTP/SAVPF 0 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=ptime:20.
a=sendrecv.
a=rtcp:10055.
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:v7hy4Ix2Re87vG/Fiymv20UGZ89xoWPp/dFzmiHq.
a=setup:actpass.
a=fingerprint:sha-1 18:F3:50:26:22:26:81:88:FB:95:F8:4B:3A:A7:9F:A6:F5:B7:B8:E3.
a=ice-ufrag:ZgtwCEvD.
a=ice-pwd:a0Tt54oToZFj9b42QXOM2Fq1VR.
a=candidate:RzNgC40JM1mFcCUB 1 UDP 2130706431 107.23.47.88 10054 typ host.
a=candidate:RzNgC40JM1mFcCUB 2 UDP 2130706430 107.23.47.88 10055 typ host.
#
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 107.23.47.88:5060;branch=z9hG4bK67a4.d6f7e6b1f007e0958a99c6a6342e4e48.1.
Via: SIP/2.0/UDP 107.21.18.6:5060;rport=5060;branch=z9hG4bK67a4.83b3107c510ddfe551896134a5e82554.0.
Via: SIP/2.0/UDP 54.236.97.30:5060;received=54.236.97.30;branch=z9hG4bK3d97649d;rport=5060.
CSeq: 102 INVITE.
Content-Length: 0.
.
#
SIP/2.0 180 Ringing.
Via: SIP/2.0/UDP 107.23.47.88:5060;branch=z9hG4bK67a4.d6f7e6b1f007e0958a99c6a6342e4e48.1.
Via: SIP/2.0/UDP 107.21.18.6:5060;rport=5060;branch=z9hG4bK67a4.83b3107c510ddfe551896134a5e82554.0.
Via: SIP/2.0/UDP 54.236.97.30:5060;received=54.236.97.30;branch=z9hG4bK3d97649d;rport=5060.
Record-Route: <sip:107.23.47.88;lr>.
Record-Route: <sip:107.21.18.6;lr=on>.
CSeq: 102 INVITE.
User-Agent: X-Lite release 4.9.6 stamp 82167.
Allow-Events: talk, hold.
Content-Length: 0.
.
#
SIP/2.0 180 Ringing.
Via: SIP/2.0/UDP 107.21.18.6:5060;rport=5060;branch=z9hG4bK67a4.83b3107c510ddfe551896134a5e82554.0.
Via: SIP/2.0/UDP 54.236.97.30:5060;received=54.236.97.30;branch=z9hG4bK3d97649d;rport=5060.
Record-Route: <sip:107.23.47.88;lr>.
Record-Route: <sip:107.21.18.6;lr=on>.
CSeq: 102 INVITE.
User-Agent: X-Lite release 4.9.6 stamp 82167.
Allow-Events: talk, hold.
Content-Length: 0.
.
#
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 107.23.47.88:5060;branch=z9hG4bK67a4.d6f7e6b1f007e0958a99c6a6342e4e48.1.
Via: SIP/2.0/UDP 107.21.18.6:5060;rport=5060;branch=z9hG4bK67a4.83b3107c510ddfe551896134a5e82554.0.
Via: SIP/2.0/UDP 54.236.97.30:5060;received=54.236.97.30;branch=z9hG4bK3d97649d;rport=5060.
Record-Route: <sip:107.23.47.88;lr>.
Record-Route: <sip:107.21.18.6;lr=on>.
CSeq: 102 INVITE.
Allow: SUBSCRIBE, NOTIFY, INVITE, ACK, CANCEL, BYE, REFER, INFO, OPTIONS, MESSAGE.
Content-Type: application/sdp.
Supported: replaces.
User-Agent: X-Lite release 4.9.6 stamp 82167.
Content-Length: 283.
.
v=0.
o=- 620006012 3 IN IP4 172.22.1.2.
s=X-Lite release 4.9.6 stamp 82167.
c=IN IP4 172.22.1.2.
t=0 0.
m=audio 56064 RTP/SAVPF 0 101.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:aoNS33aJgrSvBRBRtHHhjlA+rLvd9ldUiUxXzoem.
a=sendrecv.
#
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 107.21.18.6:5060;rport=5060;branch=z9hG4bK67a4.83b3107c510ddfe551896134a5e82554.0.
Via: SIP/2.0/UDP 54.236.97.30:5060;received=54.236.97.30;branch=z9hG4bK3d97649d;rport=5060.
Record-Route: <sip:107.23.47.88;lr>.
Record-Route: <sip:107.21.18.6;lr=on>.
CSeq: 102 INVITE.
Allow: SUBSCRIBE, NOTIFY, INVITE, ACK, CANCEL, BYE, REFER, INFO, OPTIONS, MESSAGE.
Content-Type: application/sdp.
Supported: replaces.
User-Agent: X-Lite release 4.9.6 stamp 82167.
Content-Length: 215.
.
v=0.
o=- 620006012 3 IN IP4 107.23.47.88.
s=X-Lite release 4.9.6 stamp 82167.
c=IN IP4 107.23.47.88.
t=0 0.
m=audio 10072 RTP/AVP 0 101.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=sendrecv.
a=rtcp:10073.
#
Via: SIP/2.0/UDP 107.21.18.6:5060;branch=z9hG4bK67a4.ff7b9cc9b887d892d7fd83e6f046b4d4.0.
Via: SIP/2.0/UDP 54.236.97.30:5060;received=54.236.97.30;branch=z9hG4bK4e4d5063;rport=5060.
Route: <sip:107.23.47.88;lr>.
Max-Forwards: 68.
CSeq: 102 ACK.
User-Agent: Asterisk PBX.
Content-Length: 0.
.
#
Via: SIP/2.0/UDP 107.23.47.88:5060;branch=z9hG4bK67a4.3a3af8e184f57334c9d42b8ce7d77849.0.
Via: SIP/2.0/UDP 107.21.18.6:5060;rport=5060;branch=z9hG4bK67a4.ff7b9cc9b887d892d7fd83e6f046b4d4.0.
Via: SIP/2.0/UDP 54.236.97.30:5060;received=54.236.97.30;branch=z9hG4bK4e4d5063;rport=5060.
Max-Forwards: 66.
CSeq: 102 ACK.
User-Agent: Asterisk PBX.
Content-Length: 0.
.
#
.
.
#
Via: SIP/2.0/UDP 172.22.1.2:53487;branch=z9hG4bK-524287-1---1034af445c791a63;rport.
Max-Forwards: 70.
Route: <sip:107.23.47.88;lr>.
Route: <sip:107.21.18.6;lr=on>.
CSeq: 2 BYE.
User-Agent: X-Lite release 4.9.6 stamp 82167.
Content-Length: 0.
.
#
Via: SIP/2.0/UDP 107.23.47.88:5060;branch=z9hG4bKbdb2.c896050feb9a2151548b9fe6c3f776fb.0.
Via: SIP/2.0/UDP 172.22.1.2:53487;received=108.41.170.187;branch=z9hG4bK-524287-1---1034af445c791a63;rport=53487.
Max-Forwards: 68.
Route: <sip:107.21.18.6;lr=on>.
CSeq: 2 BYE.
User-Agent: X-Lite release 4.9.6 stamp 82167.
Content-Length: 0.
.
#
SIP/2.0 404 Not here.
Via: SIP/2.0/UDP 107.23.47.88:5060;rport=5060;branch=z9hG4bKbdb2.c896050feb9a2151548b9fe6c3f776fb.0.
Via: SIP/2.0/UDP 172.22.1.2:53487;received=108.41.170.187;branch=z9hG4bK-524287-1---1034af445c791a63;rport=53487.
CSeq: 2 BYE.
Server: kamailio (4.2.5 (x86_64/linux)).
Content-Length: 0.
.
#
SIP/2.0 404 Not here.
Via: SIP/2.0/UDP 172.22.1.2:53487;received=108.41.170.187;branch=z9hG4bK-524287-1---1034af445c791a63;rport=53487.
CSeq: 2 BYE.
Server: kamailio (4.2.5 (x86_64/linux)).
Content-Length: 0.