Hi
i have some kind of issue with BYE Asterisk send invite to Kamailio1, Kamailio1 proxy to Kamailio2, Kamailio2 found UAC and send invite to it. UAC response 200OK -> Kamailio2 -> Kamailio1 -> Asterisk. Session established.
But then UAC sending BYE to Kamailio2 , Kamailio2 sending it to Kamailio1 and Kamailio1 response 404 not here (not sending BYE to Asterisk)
Any suggestions?
54.236.97.30 107.21.18.6 10.0.0.68 108.41.170.187 Asterisk Kamailio1 Kamailio2 UAC | invite | | | |--------------------------------> | invite | | | |------------------------------->| invite | | | |----------------------------------->| | | | 200OK | | | 200OK |<-----------------------------------| | 200OK |<-------------------------------| | |<--------------------------------| | |
BYE | | BYE |<-----------------------------------| | |<-------------------------------| | | | 404 Not here | | | |------------------------------->| 404 Not here | | | |----------------------------------->|
# U 107.21.18.6:5060 -> 10.0.0.68:5060 INVITE sip:88919640010@sip7.keku.com SIP/2.0. 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. From: "6093756295" sip:6093756295@54.236.97.30;tag=as372f68e0. To: sip:88919640010@sip6.keku.com. Contact: sip:6093756295@54.236.97.30:5060. Call-ID: 01e9e3e03dd2995d720bff297a226e83@54.236.97.30:5060. 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. Cisco-Guid: 1241711126_45859092@23.29.27.22. 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.
U 10.0.0.68:5060 -> 107.21.18.6:5060 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. From: "6093756295" sip:6093756295@54.236.97.30;tag=as372f68e0. To: sip:88919640010@sip6.keku.com. Call-ID: 01e9e3e03dd2995d720bff297a226e83@54.236.97.30:5060. CSeq: 102 INVITE. Server: kamailio (4.4.3 (x86_64/linux)). Content-Length: 0. .
# U 10.0.0.68:5060 -> 108.41.170.187:53487 INVITE sip:88919640010@108.41.170.187:53487;rinstance=37d7b85846910961 SIP/2.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. From: "6093756295" sip:6093756295@54.236.97.30;tag=as372f68e0. To: sip:88919640010@sip6.keku.com. Contact: sip:6093756295@54.236.97.30:5060;alias=107.21.18.6~5060~1. Call-ID: 01e9e3e03dd2995d720bff297a226e83@54.236.97.30:5060. 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. Cisco-Guid: 1241711126_45859092@23.29.27.22. 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.
# U 108.41.170.187:53487 -> 10.0.0.68:5060 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. To: sip:88919640010@sip6.keku.com. From: "6093756295" sip:6093756295@54.236.97.30;tag=as372f68e0. Call-ID: 01e9e3e03dd2995d720bff297a226e83@54.236.97.30:5060. CSeq: 102 INVITE. Content-Length: 0. .
# U 108.41.170.187:53487 -> 10.0.0.68:5060 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. Contact: sip:88919640010@108.41.170.187:53487;rinstance=37d7b85846910961. To: "88919640010"sip:88919640010@sip6.keku.com;tag=d6323b02. From: "6093756295" sip:6093756295@54.236.97.30;tag=as372f68e0. Call-ID: 01e9e3e03dd2995d720bff297a226e83@54.236.97.30:5060. CSeq: 102 INVITE. User-Agent: X-Lite release 4.9.6 stamp 82167. Allow-Events: talk, hold. Content-Length: 0. .
# U 10.0.0.68:5060 -> 107.21.18.6:5060 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. Contact: sip:88919640010@108.41.170.187:53487;rinstance=37d7b85846910961. To: "88919640010"sip:88919640010@sip6.keku.com;tag=d6323b02. From: "6093756295" sip:6093756295@54.236.97.30;tag=as372f68e0. Call-ID: 01e9e3e03dd2995d720bff297a226e83@54.236.97.30:5060. CSeq: 102 INVITE. User-Agent: X-Lite release 4.9.6 stamp 82167. Allow-Events: talk, hold. Content-Length: 0. .
# U 108.41.170.187:53487 -> 10.0.0.68:5060 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. Contact: sip:88919640010@108.41.170.187:53487;rinstance=37d7b85846910961. To: sip:88919640010@sip6.keku.com;tag=d6323b02. From: "6093756295" sip:6093756295@54.236.97.30;tag=as372f68e0. Call-ID: 01e9e3e03dd2995d720bff297a226e83@54.236.97.30:5060. 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.
# U 10.0.0.68:5060 -> 107.21.18.6:5060 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. Contact: sip:88919640010@108.41.170.187:53487;rinstance=37d7b85846910961. To: sip:88919640010@sip6.keku.com;tag=d6323b02. From: "6093756295" sip:6093756295@54.236.97.30;tag=as372f68e0. Call-ID: 01e9e3e03dd2995d720bff297a226e83@54.236.97.30:5060. 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.
# U 107.21.18.6:5060 -> 10.0.0.68:5060 ACK sip:88919640010@108.41.170.187:53487;rinstance=37d7b85846910961 SIP/2.0. 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. From: "6093756295" sip:6093756295@54.236.97.30;tag=as372f68e0. To: sip:88919640010@sip7.keku.com;tag=d6323b02. Contact: sip:6093756295@54.236.97.30:5060. Call-ID: 01e9e3e03dd2995d720bff297a226e83@54.236.97.30:5060. CSeq: 102 ACK. User-Agent: Asterisk PBX. Content-Length: 0. .
# U 10.0.0.68:5060 -> 108.41.170.187:53487 ACK sip:88919640010@108.41.170.187:53487;rinstance=37d7b85846910961 SIP/2.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. From: "6093756295" sip:6093756295@54.236.97.30;tag=as372f68e0. To: sip:88919640010@sip7.keku.com;tag=d6323b02. Contact: sip:6093756295@54.236.97.30:5060;alias=107.21.18.6~5060~1. Call-ID: 01e9e3e03dd2995d720bff297a226e83@54.236.97.30:5060. CSeq: 102 ACK. User-Agent: Asterisk PBX. Content-Length: 0. .
# U 108.41.170.187:53487 -> 10.0.0.68:5060 . .
# U 108.41.170.187:53487 -> 10.0.0.68:5060 BYE sip:6093756295@54.236.97.30:5060;alias=107.21.18.6~5060~1 SIP/2.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. Contact: sip:88919640010@108.41.170.187:53487;rinstance=37d7b85846910961. To: "6093756295" sip:6093756295@54.236.97.30;tag=as372f68e0. From: sip:88919640010@sip6.keku.com;tag=d6323b02. Call-ID: 01e9e3e03dd2995d720bff297a226e83@54.236.97.30:5060. CSeq: 2 BYE. User-Agent: X-Lite release 4.9.6 stamp 82167. Content-Length: 0. .
# U 10.0.0.68:5060 -> 107.21.18.6:5060 BYE sip:6093756295@54.236.97.30:5060;alias=107.21.18.6~5060~1 SIP/2.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. Contact: sip:88919640010@108.41.170.187:53487;rinstance=37d7b85846910961. To: "6093756295" sip:6093756295@54.236.97.30;tag=as372f68e0. From: sip:88919640010@sip6.keku.com;tag=d6323b02. Call-ID: 01e9e3e03dd2995d720bff297a226e83@54.236.97.30:5060. CSeq: 2 BYE. User-Agent: X-Lite release 4.9.6 stamp 82167. Content-Length: 0. .
# U 107.21.18.6:5060 -> 10.0.0.68:5060 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. To: "6093756295" sip:6093756295@54.236.97.30;tag=as372f68e0. From: sip:88919640010@sip6.keku.com;tag=d6323b02. Call-ID: 01e9e3e03dd2995d720bff297a226e83@54.236.97.30:5060. CSeq: 2 BYE. Server: kamailio (4.2.5 (x86_64/linux)). Content-Length: 0. .
# U 10.0.0.68:5060 -> 108.41.170.187:53487 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. To: "6093756295" sip:6093756295@54.236.97.30;tag=as372f68e0. From: sip:88919640010@sip6.keku.com;tag=d6323b02. Call-ID: 01e9e3e03dd2995d720bff297a226e83@54.236.97.30:5060. CSeq: 2 BYE. Server: kamailio (4.2.5 (x86_64/linux)). Content-Length: 0.