[SR-Users] Kamailio Relay Replies Issue

me.projects at yahoo.com me.projects at yahoo.com
Thu Oct 15 10:38:21 CEST 2020


I have DID provider which is sending INVITES to Kamailio and kamailio has UAC module with asterisk to forward Calls to Asterisk with uac_auth()

1-DID Provider ----> (TLS)2-Kamailio (UDP) -----> (UDP) 3-Asterisk 

Call from Kamailio to Asterisk is forwarded and answered but NON of the reply received in "MANAGE_REPLY" route is not relayed back to DID provider call get disconnected.

=================SIP DUMP 
INVITE FROM DID
INVITE sip:+1700 at KAMAILIOSERER.com:5061;user=phone;transport=tls SIP/2.0FROM: Alga Tech<sip:+17900000002 at DIDPROVIDER.com:5061;user=phone>;tag=28989e96e28d47d891b4d8d21d85fa92TO: <sip:+1700 at KAMAILIOSERER.com:5061;user=phone>CSEQ: 1 INVITECALL-ID: 936ba28f302f5a5d9b09f32e2e7c41f2MAX-FORWARDS: 70VIA: SIP/2.0/TLS DID-IP:5061;TH=div;branch=z9hG4bK77976715RECORD-ROUTE: <sip:DIDPROVIDER-ROUTE.com:5061;transport=tls;lr>CONTACT: <sip:DIDPROVIDER-CONTACT.com:443;x-i=b9483d0b-e3aa-4487-8dec-68de62d93a35;x-c=936ba28f302f5a5d9b09f32e2e7c41f2/d/8/26d69f6b729942a799552629a315d5d1>CONTENT-LENGTH: 1103MIN-SE: 300SUPPORTED: timerUSER-AGENT: Microsoft.PSTNHub.SIPProxy v.2020.10.12.5 i.USEA.0CONTENT-TYPE: application/sdpALLOW: INVITE,ACK,OPTIONS,CANCEL,BYE,NOTIFYSESSION-EXPIRES: 3600TH: dih
-----------------------Invite to Asterisk with AUTH
INVITE sip:+1700 at KAMAILIOSERER.com:5061;user=phone;transport=tls SIP/2.0FROM: Alga Tech<sip:+17900000002 at DIDPROVIDER.com:5061;user=phone>;tag=28989e96e28d47d891b4d8d21d85fa92TO: <sip:+1700 at KAMAILIOSERER.com:5061;user=phone>CSEQ: 1 INVITECALL-ID: 936ba28f302f5a5d9b09f32e2e7c41f2MAX-FORWARDS: 69VIA: SIP/2.0/TLS DID-IP:5061;TH=div;branch=z9hG4bK77976715RECORD-ROUTE: <sip:DIDPROVIDER-ROUTE.com:5061;transport=tls;lr>CONTACT: <sip:DIDPROVIDER-CONTACT.com:443;x-i=b9483d0b-e3aa-4487-8dec-68de62d93a35;x-c=936ba28f302f5a5d9b09f32e2e7c41f2/d/8/26d69f6b729942a799552629a315d5d1>CONTENT-LENGTH: 1103MIN-SE: 300SUPPORTED: timerUSER-AGENT: Microsoft.PSTNHub.SIPProxy v.2020.10.12.5 i.USEA.0CONTENT-TYPE: application/sdpALLOW: INVITE,ACK,OPTIONS,CANCEL,BYE,NOTIFYSESSION-EXPIRES: 3600TH: dih
------------------
>From Asterisk to Kamailio
SIP/2.0 100 TryingVia: SIP/2.0/UDP KAMAILIO-IP:7790;TH=ucv;rport=7790;received=KAMAILIO-IP;branch=z9hG4bK7317.fe3491996f35f580f2efa1c50081a62c.1;i=7Via: SIP/2.0/TLS DID-IP:5061;rport=8256;TH=div;branch=z9hG4bK77976715Record-Route: <sip:KAMAILIO-IP:7790;lr;r2=on;ftag=28989e96e28d47d891b4d8d21d85fa92;vsf=AAAAABoEBwFwQUMeU1FcXjMDGx9bBF0XAQV1Yi5taWNyb3NvZnQuY29tOjUwNjE7dXNlcj1waG9uZQ--;nat=yes>Record-Route: <sip:KAMAILIO-IP:5061;transport=tls;r2=on;lr;ftag=28989e96e28d47d891b4d8d21d85fa92;vsf=AAAAABoEBwFwQUMeU1FcXjMDGx9bBF0XAQV1Yi5taWNyb3NvZnQuY29tOjUwNjE7dXNlcj1waG9uZQ--;nat=yes>Record-Route: <sip:DIDPROVIDER-ROUTE.com:5061;transport=tls;lr>Call-ID: 936ba28f302f5a5d9b09f32e2e7c41f2From: "Alga Tech" <sip:1508 at qs.callsprout.com>;tag=28989e96e28d47d891b4d8d21d85fa92To: <sip:+1700 at KAMAILIOSERER.com;user=phone>CSeq: 1 INVITEServer: AsteriskContent-Length:  0TH: uch
----------------------
>From Asterisk to Kamailio

SIP/2.0 180 RingingVia: SIP/2.0/UDP KAMAILIO-IP:7790;TH=ucv;rport=7790;received=KAMAILIO-IP;branch=z9hG4bK7317.fe3491996f35f580f2efa1c50081a62c.1;i=7Via: SIP/2.0/TLS DID-IP:5061;rport=8256;TH=div;branch=z9hG4bK77976715Record-Route: <sip:KAMAILIO-IP:7790;lr;r2=on;ftag=28989e96e28d47d891b4d8d21d85fa92;vsf=AAAAABoEBwFwQUMeU1FcXjMDGx9bBF0XAQV1Yi5taWNyb3NvZnQuY29tOjUwNjE7dXNlcj1waG9uZQ--;nat=yes>Record-Route: <sip:KAMAILIO-IP:5061;transport=tls;r2=on;lr;ftag=28989e96e28d47d891b4d8d21d85fa92;vsf=AAAAABoEBwFwQUMeU1FcXjMDGx9bBF0XAQV1Yi5taWNyb3NvZnQuY29tOjUwNjE7dXNlcj1waG9uZQ--;nat=yes>Record-Route: <sip:DIDPROVIDER-ROUTE.com:5061;transport=tls;lr>Call-ID: 936ba28f302f5a5d9b09f32e2e7c41f2From: "Alga Tech" <sip:1508 at qs.callsprout.com>;tag=28989e96e28d47d891b4d8d21d85fa92To: <sip:+1700 at KAMAILIOSERER.com;user=phone>;tag=17f0e0ba-c1c0-457a-b0dd-9a9729d312e7CSeq: 1 INVITEServer: AsteriskContact: <sip:66.232.107.106:7790>Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFERContent-Length:  0
----------------------
>From Asterisk to Kamailio

SIP/2.0 180 RingingVia: SIP/2.0/UDP KAMAILIO-IP:7790;TH=ucv;rport=7790;received=KAMAILIO-IP;branch=z9hG4bK7317.fe3491996f35f580f2efa1c50081a62c.1;i=7Via: SIP/2.0/TLS DID-IP:5061;rport=8256;TH=div;branch=z9hG4bK77976715Record-Route: <sip:KAMAILIO-IP:7790;lr;r2=on;ftag=28989e96e28d47d891b4d8d21d85fa92;vsf=AAAAABoEBwFwQUMeU1FcXjMDGx9bBF0XAQV1Yi5taWNyb3NvZnQuY29tOjUwNjE7dXNlcj1waG9uZQ--;nat=yes>Record-Route: <sip:KAMAILIO-IP:5061;transport=tls;r2=on;lr;ftag=28989e96e28d47d891b4d8d21d85fa92;vsf=AAAAABoEBwFwQUMeU1FcXjMDGx9bBF0XAQV1Yi5taWNyb3NvZnQuY29tOjUwNjE7dXNlcj1waG9uZQ--;nat=yes>Record-Route: <sip:DIDPROVIDER-ROUTE.com:5061;transport=tls;lr>Call-ID: 936ba28f302f5a5d9b09f32e2e7c41f2From: "Alga Tech" <sip:1508 at qs.callsprout.com>;tag=28989e96e28d47d891b4d8d21d85fa92To: <sip:+1700 at KAMAILIOSERER.com;user=phone>;tag=17f0e0ba-c1c0-457a-b0dd-9a9729d312e7CSeq: 1 INVITEServer: AsteriskAllow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFERContact: <sip:66.232.107.106:7790>Content-Length:  0TH: uch
----------------------
>From Asterisk to Kamailio
SIP/2.0 200 OKVia: SIP/2.0/UDP KAMAILIO-IP:7790;TH=ucv;rport=7790;received=KAMAILIO-IP;branch=z9hG4bK7317.fe3491996f35f580f2efa1c50081a62c.1;i=7Via: SIP/2.0/TLS DID-IP:5061;rport=8256;TH=div;branch=z9hG4bK77976715Record-Route: <sip:KAMAILIO-IP:7790;lr;r2=on;ftag=28989e96e28d47d891b4d8d21d85fa92;vsf=AAAAABoEBwFwQUMeU1FcXjMDGx9bBF0XAQV1Yi5taWNyb3NvZnQuY29tOjUwNjE7dXNlcj1waG9uZQ--;nat=yes>Record-Route: <sip:KAMAILIO-IP:5061;transport=tls;r2=on;lr;ftag=28989e96e28d47d891b4d8d21d85fa92;vsf=AAAAABoEBwFwQUMeU1FcXjMDGx9bBF0XAQV1Yi5taWNyb3NvZnQuY29tOjUwNjE7dXNlcj1waG9uZQ--;nat=yes>Record-Route: <sip:DIDPROVIDER-ROUTE.com:5061;transport=tls;lr>Call-ID: 936ba28f302f5a5d9b09f32e2e7c41f2From: "Alga Tech" <sip:1508 at qs.callsprout.com>;tag=28989e96e28d47d891b4d8d21d85fa92To: <sip:+1700 at KAMAILIOSERER.com;user=phone>;tag=17f0e0ba-c1c0-457a-b0dd-9a9729d312e7CSeq: 1 INVITEServer: AsteriskAllow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFERContact: <sip:66.232.107.106:7790>Supported: 100rel, timer, replaces, norefersubSession-Expires: 3600;refresher=uacRequire: timerContent-Type: application/sdpContent-Length:   299TH: uch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20201015/773ddbe2/attachment.htm>


More information about the sr-users mailing list