<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><base href="https://e.mail.ru/" target="_self"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.msonormalmailrucssattributepostfix, li.msonormalmailrucssattributepostfix, div.msonormalmailrucssattributepostfix
        {mso-style-name:msonormal_mailru_css_attribute_postfix;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.js-phone-number
        {mso-style-name:js-phone-number;}
p.msonormalmailrucssattributepostfixmailrucssattributepostfix, li.msonormalmailrucssattributepostfixmailrucssattributepostfix, div.msonormalmailrucssattributepostfixmailrucssattributepostfix
        {mso-style-name:msonormalmailrucssattributepostfix_mailru_css_attribute_postfix;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle23
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Thank you Konstantin,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>What I can’t understand is why media packets are sent correctly to the public IP , while early media (RBT) are sent on private.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Regards,<o:p></o:p></p><p class=MsoNormal>Ali<o:p></o:p></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b>From:</b> Konstantin Polyakov <piligrim_pk@mail.ru> <br><b>Sent:</b> Monday, July 23, 2018 1:38 PM<br><b>To:</b> Ali Taher <ataher@vanrise.com><br><b>Subject:</b> Re[4]: [SR-Users] NATHELPER issue<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>Original INVITE  contains private IP in c= parameter, so you need to use STUN or TURN or ICE, something which is supported in your system or in your softphone.<br>See my comments in the previous mail.<br><br>Best regrads<br><br><o:p></o:p></p><blockquote style='border:none;border-left:solid #0857A6 1.0pt;padding:0in 0in 0in 8.0pt;margin-left:7.5pt;margin-top:7.5pt;margin-right:7.5pt;margin-bottom:7.5pt'><p class=MsoNormal style='margin-bottom:12.0pt'>Понедельник, 23 июля 2018, 12:25 +03:00 от Ali Taher <<a href="mailto:ataher@vanrise.com">ataher@vanrise.com</a>>:<o:p></o:p></p><div id=""><div><div><div id="style_15323379000000000523_BODY"><div><div><p class=msonormalmailrucssattributepostfix>Hi Konstantin,<o:p></o:p></p><p class=msonormalmailrucssattributepostfix> <o:p></o:p></p><p class=msonormalmailrucssattributepostfix>INVITE:<o:p></o:p></p><p class=msonormalmailrucssattributepostfix> <o:p></o:p></p><p class=msonormalmailrucssattributepostfix>INVITE <a href="sip:9613159370@X.X.X.X:5065">sip:9613159370@X.X.X.X:5065</a> SIP/2.0<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>Record-Route: <<a href="sip:X.X.X.X:5065;lr;ftag=5269152d">sip:X.X.X.X:5065;lr;ftag=5269152d</a>><o:p></o:p></p><p class=msonormalmailrucssattributepostfix>X-AUTH-IP: Y.Y.Y.Y<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>Via: SIP/2.0/UDP X.X.X.X:5065;branch=z9hG4bK0f8e.68a6417bb4b72bec0eb7c44427dc8731.0<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>Via: SIP/2.0/UDP 192.168.26.3:31556;received=Y.Y.Y.Y;branch=z9hG4bK-d87543-6a165215a2441724-1--d87543-;rport=31556<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>Max-Forwards: 69<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>Contact: <<a href="sip:967123456@192.168.26.3:31556;alias=Y.Y.Y.Y~31556~1">sip:967123456@192.168.26.3:31556;alias=Y.Y.Y.Y~31556~1</a>><o:p></o:p></p><p class=msonormalmailrucssattributepostfix>To: "9613159370"<<a href="sip:9613159370@X.X.X.X:5065">sip:9613159370@X.X.X.X:5065</a>><o:p></o:p></p><p class=msonormalmailrucssattributepostfix>From: "+967123456"<<a href="sip:967123456@X.X.X.X:5065">sip:967123456@X.X.X.X:5065</a>>;tag=5269152d<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>Call-ID: c10f30782b42be0fNjNiNTdjNGM1MWIzNDlhNTM4MzAwYWI0NWY2NGRmOTM.<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>CSeq: 1 INVITE<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>Content-Type: application/sdp<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>User-Agent: eyeBeam release 1003s stamp 31159<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>Content-Length: 434<o:p></o:p></p><p class=msonormalmailrucssattributepostfix> <o:p></o:p></p><p class=msonormalmailrucssattributepostfix>v=0<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>o=- 5 2 IN IP4 192.168.26.3<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>s=CounterPath eyeBeam 1.5<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>c=IN IP4 192.168.26.3<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>t=0 0<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>m=audio 8602 RTP/AVP 0 8 101<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>a=alt:1 4 : F4Vpy7HX BRVjd5rl 192.168.26.3 8602<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>a=alt:2 3 : ZTQ/VQpO 5uDGgHMJ 192.168.164.1 8602<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>a=alt:3 2 : ZZPaUsAW LVjbM9qy 192.168.74.1 8602<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>a=alt:4 1 : 5lOKe54U yTwyWfpC 11.11.0.122 8602<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>a=fmtp:101 0-15<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>a=rtpmap:101 telephone-event/8000<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>a=sendrecv<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>a=x-rtp-session-id:0CDBBC1F22564B72BDA5AD0B07C2AECF<o:p></o:p></p><p class=msonormalmailrucssattributepostfix> <o:p></o:p></p><p class=msonormalmailrucssattributepostfix> <o:p></o:p></p><p class=msonormalmailrucssattributepostfix>200 OK<o:p></o:p></p><p class=msonormalmailrucssattributepostfix> <o:p></o:p></p><p class=msonormalmailrucssattributepostfix>200 OK<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>Via: SIP/2.0/UDP 192.168.26.3:31556;received=Y.Y.Y.Y;branch=z9hG4bK-d87543-6a165215a2441724-1--d87543-;rport=31556<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>Record-Route: <<a href="sip:X.X.X.X:5065;lr;ftag=5269152d">sip:X.X.X.X:5065;lr;ftag=5269152d</a>><o:p></o:p></p><p class=msonormalmailrucssattributepostfix>From: "<span class=js-phone-number>+967123456</span>" <<a href="sip:967123456@X.X.X.X:5065">sip:967123456@X.X.X.X:5065</a>>;tag=5269152d<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>To: "9613159370" <<a href="sip:9613159370@X.X.X.X:5065">sip:9613159370@X.X.X.X:5065</a>>;tag=agtHmrp3Dccrg<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>Call-ID: c10f30782b42be0fNjNiNTdjNGM1MWIzNDlhNTM4MzAwYWI0NWY2NGRmOTM.<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>CSeq: 1 INVITE<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>Contact: <<a href="sip:9613159370@X.X.X.X:5060;transport=udp">sip:9613159370@X.X.X.X:5060;transport=udp</a>><o:p></o:p></p><p class=msonormalmailrucssattributepostfix>User-Agent: FIKAR<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>Supported: timer, path, replaces<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>Content-Type: application/sdp<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>Content-Disposition: session<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>Content-Length: 200<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>Remote-Party-ID: "Outbound Call" <sip:<a href="mailto:506251539613159370@X.X.X.X">506251539613159370@X.X.X.X</a>>;party=calling;privacy=off;screen=no<o:p></o:p></p><p class=msonormalmailrucssattributepostfix> <o:p></o:p></p><p class=msonormalmailrucssattributepostfix>v=0<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>o=FIKAR 4050780586 4050780588 IN IP4 X.X.X.X<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>s=FIKAR<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>c=IN IP4 X.X.X.X<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>t=0 0<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>m=audio 24496 RTP/AVP 8 101<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>a=rtpmap:8 PCMA/8000<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>a=rtpmap:101 telephone-event/8000<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>a=fmtp:101 0-15<o:p></o:p></p><p class=msonormalmailrucssattributepostfix> <o:p></o:p></p><p class=msonormalmailrucssattributepostfix>where:<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>X.X.X.X is Kamailio IP<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>Y.Y.Y.Y is origination public IP<o:p></o:p></p><p class=msonormalmailrucssattributepostfix> <o:p></o:p></p><p class=msonormalmailrucssattributepostfix> <o:p></o:p></p><p class=msonormalmailrucssattributepostfix>Regards,<o:p></o:p></p><p class=msonormalmailrucssattributepostfix>Ali<o:p></o:p></p><p class=msonormalmailrucssattributepostfix> <o:p></o:p></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=msonormalmailrucssattributepostfix><b>From:</b> Konstantin Polyakov <<a href="mailto:piligrim_pk@mail.ru">piligrim_pk@mail.ru</a>> <br><b>Sent:</b> Monday, July 23, 2018 12:08 PM<br><b>To:</b> Ali Taher <<a href="mailto:ataher@vanrise.com">ataher@vanrise.com</a>><br><b>Subject:</b> Re[2]: [SR-Users] NATHELPER issue<o:p></o:p></p></div></div><p class=msonormalmailrucssattributepostfix> <o:p></o:p></p><p class=msonormalmailrucssattributepostfix style='margin-bottom:12.0pt'>Hello Ali,<br><br>Could you show your latest INVITE and OK?<br><br>Check you SDP bodies in those messages, if you still have there private IPs then you need to solve usual NAT traversal task in your media software (not proxy).<br>Kamailio doesn't process media as you know. <br>Of course you can try <span style='font-size:13.0pt'>fix_nated_sdp  </span>function from nathelper module but it will not work for symmetric NAT because you fix SDP with public IP toward proxy but not toward UA.<br>Your media software or hardware should support STUN or ICE protocols to work correctly via NAT.<br><br>Best regards.<o:p></o:p></p><blockquote style='border:none;border-left:solid #0857A6 1.0pt;padding:0in 0in 0in 8.0pt;margin-left:7.5pt;margin-top:7.5pt;margin-right:7.5pt;margin-bottom:7.5pt'><p class=msonormalmailrucssattributepostfix style='margin-bottom:12.0pt'>Понедельник, 23 июля 2018, 11:41 +03:00 от Ali Taher <<a href="file://e.mail.ru/compose/%3fmailto=mailto%253aataher@vanrise.com" target="_blank">ataher@vanrise.com</a>>:<o:p></o:p></p><div id=""><div><div><div id="style_15323352750000000198_BODY_mailru_css_attribute_postfix"><div><div><p class=msonormalmailrucssattributepostfixmailrucssattributepostfix>Thank you for your reply.<o:p></o:p></p><p class=msonormalmailrucssattributepostfixmailrucssattributepostfix> <o:p></o:p></p><p class=msonormalmailrucssattributepostfixmailrucssattributepostfix>ACK is now sent correctly to public IP , yet I have another issue with RBT  where it’s still sent to private IP .Yet the call media is sent correctly to the public IP.<o:p></o:p></p><p class=msonormalmailrucssattributepostfixmailrucssattributepostfix> <o:p></o:p></p><p class=msonormalmailrucssattributepostfixmailrucssattributepostfix>There is something strange , as I hear two short different ringing tones then complete silence till the called party answer the call and RTP flow normally.<o:p></o:p></p><p class=msonormalmailrucssattributepostfixmailrucssattributepostfix> <o:p></o:p></p><p class=msonormalmailrucssattributepostfixmailrucssattributepostfix>How can I handle this case?<o:p></o:p></p><p class=msonormalmailrucssattributepostfixmailrucssattributepostfix> <o:p></o:p></p><p class=msonormalmailrucssattributepostfixmailrucssattributepostfix>Thanks,<o:p></o:p></p><p class=msonormalmailrucssattributepostfixmailrucssattributepostfix>Ali<o:p></o:p></p><p class=msonormalmailrucssattributepostfixmailrucssattributepostfix> <o:p></o:p></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=msonormalmailrucssattributepostfixmailrucssattributepostfix><b>From:</b> Konstantin Polyakov <<a href="file://e.mail.ru/compose/%3fmailto=mailto%253apiligrim_pk@mail.ru" target="_blank">piligrim_pk@mail.ru</a>> <br><b>Sent:</b> Friday, July 20, 2018 3:01 PM<br><b>To:</b> <a href="file://e.mail.ru/compose/%3fmailto=mailto%253asr%252dusers@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>; Ali Taher <<a href="file://e.mail.ru/compose/%3fmailto=mailto%253aataher@vanrise.com" target="_blank">ataher@vanrise.com</a>><br><b>Subject:</b> Re: [SR-Users] NATHELPER issue<o:p></o:p></p></div></div><p class=msonormalmailrucssattributepostfixmailrucssattributepostfix> <o:p></o:p></p><p class=msonormalmailrucssattributepostfixmailrucssattributepostfix style='margin-bottom:12.0pt'>Hello Ali,<br><br>ACK is sent by UAC to the Contact which is received in OK from UAS.<br>So from my point of view you need to fix that Contact in OK on your proxy.<br><br>My NATDETECT looks like:<o:p></o:p></p><div><p class=msonormalmailrucssattributepostfixmailrucssattributepostfix>    if (nat_uac_test("19")) {<o:p></o:p></p></div><div><p class=msonormalmailrucssattributepostfixmailrucssattributepostfix>       fix_nated_contact();<o:p></o:p></p></div><div><p class=msonormalmailrucssattributepostfixmailrucssattributepostfix>    }<o:p></o:p></p></div><div><p class=msonormalmailrucssattributepostfixmailrucssattributepostfix><br>I call it for requests and responses.<br><br>Best regards.<br>Konstantin<o:p></o:p></p></div><p class=msonormalmailrucssattributepostfixmailrucssattributepostfix style='margin-bottom:12.0pt'> <o:p></o:p></p><blockquote style='border:none;border-left:solid #0857A6 1.0pt;padding:0in 0in 0in 8.0pt;margin-left:7.5pt;margin-top:7.5pt;margin-right:7.5pt;margin-bottom:7.5pt'><div id=""><div><div><div id="style_15320810450000000770_BODY_mailru_css_attribute_postfix_mailru_css_attribute_postfix"><p class=msonormalmailrucssattributepostfixmailrucssattributepostfix style='margin-bottom:12.0pt'>Message: 23<br>Date: Fri, 20 Jul 2018 11:13:42 +0300<br>From: "Ali Taher" <<a href="mailto:ataher@vanrise.com">ataher@vanrise.com</a>><br>To: <<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>Subject: [SR-Users] NATHELPER issue<br>Message-ID: <<a href="mailto:070901d42001$939be2b0$bad3a810$@vanrise.com">070901d42001$939be2b0$bad3a810$@vanrise.com</a>><br>Content-Type: text/plain; charset="utf-8"<br><br>Hello,<br><br> <br><br>I'm using Kamailio 4.2 as proxy with nathelper enabled.<br><br> <br><br>Yet , the ACK packet sent from the proxy to the origination's private IP.<br><br> <br><br>The ACK is sent as reply on the following 200 OK sent from the origination :<br><br><br> <br><br>8m2EJN41BN/6WSIP/2.0 200 OK<br><br>From: <<a href="sip:+4444331234567@X.X.X.X;user=phone">sip:+4444331234567@X.X.X.X;user=phone</a>>;tag=XQBQNjvjgp4Ze<br><br>To: <<a href="sip:+905362695933@172.16.45.65;user=phone">sip:+905362695933@172.16.45.65;user=phone</a>>;tag=12033368836000<br><br>Via: SIP/2.0/UDP<br>X.X.X.X:5065;branch=z9hG4bK2959.233ecbc5eff949f946d8763ce25e5e6d.0;received=<br>X.X.X.X,SIP/2.0/UDP<br>X.X.X.X;received=X.X.X.X;rport=5060;branch=z9hG4bKN93cXvv26vDDN<br><br>Record-Route: <<a href="sip:X.X.X.X:5065;lr;ftag=XQBQNjvjgp4Ze">sip:X.X.X.X:5065;lr;ftag=XQBQNjvjgp4Ze</a>><br><br>Call-ID: <a href="mailto:CbeX8453909200habfGhEfElPce@BC00.XXXXXXXXXXXXXX">CbeX8453909200habfGhEfElPce@BC00.XXXXXXXXXXXXXX</a><br><br>CSeq: 125698370 INVITE<br><br>Accept: application/sdp<br><br>Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,UPDATE<br><br>P-Charging-Vector:<br>icid-value=B0912C3D70-0720-09394507;icid-generated-at=BC00.XXXXXXXXXXXXXX.XX<br>;orig-ioi=MXXXXXXXXXXXXXX<br><br>Content-Type: application/sdp<br><br>Contact: <<a href="sip:172.16.45.65:5060;transport=UDP">sip:172.16.45.65:5060;transport=UDP</a>><br><br>Content-Length: 268<br><br> <br><br>v=0<br><br>o=- 5838243 5838244 IN IP4 BC00.XXXXXXXXXXXXXX<br><br>s=-<br><br>c=IN IP4 172.16.45.144<br><br>t=0 0<br><br>a=sendrecv<br><br>m=audio 47588 RTP/AVP 18 96<br><br>c=IN IP4 172.16.45.144<br><br>a=rtpmap:18 G729/8000<br><br>a=fmtp:18 annexb=yes<br><br>a=rtpmap:96 telephone-event/8000<br><br>a=fmtp:96 0-15<br><br>a=maxptime:20<br><br> <br><br>Following is the header of the sent ACK packet:<br><br> <br><br>Request-Line: ACK <a href="sip:172.16.45.65:5060;transport=UDP">sip:172.16.45.65:5060;transport=UDP</a> SIP/2.0<br><br>Record-Route: <<a href="sip:X.X.X.X:5065;lr;ftag=XQBQNjvjgp4Ze">sip:X.X.X.X:5065;lr;ftag=XQBQNjvjgp4Ze</a>><br><br>Via: SIP/2.0/UDP<br>X.X.X.X:5065;branch=z9hG4bK2959.871535fd341bbe3099d0bf60d6460e18.0<br><br>Via: SIP/2.0/UDP<br>X.X.X.X;received=X.X.X.X;rport=5060;branch=z9hG4bKQUpy0jy90etjc<br><br>Max-Forwards: 69<br><br>From: <<a href="sip:+4444331234567@X.X.X.X;user=phone">sip:+4444331234567@X.X.X.X;user=phone</a>>;tag=XQBQNjvjgp4Ze<br><br>To: <<a href="sip:+905362695933@172.16.45.65;user=phone">sip:+905362695933@172.16.45.65;user=phone</a>>;tag=12033368836000<br><br>Call-ID: <a href="mailto:CbeX8453909200habfGhEfElPce@BC00.XXXXXXXXXXXXXX">CbeX8453909200habfGhEfElPce@BC00.XXXXXXXXXXXXXX</a><br><br>CSeq: 125698370 ACK<br><br>Content-Length: 0<br><br> <br><br>Where X.X.X.X is Kamailio server public IP.<br><br> <br><br>Following is part of my config file :<br><br> <br><br>route {<br><br>route(NATDETECT);<br><br>record_route();<br><br> <br><br>        if(!mf_process_maxfwd_header("10")) {<br><br>                sl_send_reply("483", "Too Many Hops");<br><br>                exit;<br><br>        }<br><br> <br><br>        # Maybe some sanity_check() here.<br><br> <br><br>        if(has_totag()) {<br><br>       <br><br>                if(loose_route()) {<br><br>                route(DLGURI);<br><br>                        if(!t_relay())<br><br>                                sl_reply_error();<br><br> <br><br>                        exit;<br><br>                } else {<br><br>                        if(is_method("ACK")) {<br><br>                        route(DLGURI);<br><br>                                if(t_check_trans()) {<br><br>                                        t_relay();<br><br>                                }<br><br>                        } else<br><br>                                sl_send_reply("403", "Forbidden");<br><br>                }<br><br>                exit;<br><br>        }<br><br>                                <br><br>.....<br><br>}<br><br>                                <br><br> <br><br>route[NATDETECT] {<br><br>#!ifdef WITH_NAT<br><br>        force_rport();<br><br>        if (nat_uac_test("19")) {<br><br>                if (is_method("REGISTER")) {<br><br>                        fix_nated_register();<br><br>                } else {<br><br>                        add_contact_alias();<br><br>                }<br><br>                setflag(FLT_NATS);<br><br>        }<br><br>#!endif<br><br>        return;<br><br>}<br><br> <br><br>route[DLGURI] {<br><br>#!ifdef WITH_NAT<br><br>        if(!isdsturiset()) {<br><br>         handle_ruri_alias();<br><br>        }<br><br>#!endif<br><br>        return;<br><br>} <br><br> <br><br>Can you please check why the ACK is still sent on private IP ?<br><br> <br><br>Thanks<br><br>Ali Taher<o:p></o:p></p></div></div></div></div></blockquote><p class=msonormalmailrucssattributepostfixmailrucssattributepostfix> <o:p></o:p></p><div id="_mcePaste_mailru_css_attribute_postfix_mailru_css_attribute_postfix"><p class=msonormalmailrucssattributepostfixmailrucssattributepostfix>"Ali Taher" <<a href="https://e.mail.ru/compose?To=ataher@vanrise.com" target="_blank">ataher@vanrise.com</a>><o:p></o:p></p></div></div></div></div></div></div></div></blockquote><p class=msonormalmailrucssattributepostfix><br><br>С уважением,<br>Константин Поляков.<o:p></o:p></p></div></div></div></div></div></div></blockquote><p class=MsoNormal><br><br>С уважением,<br>Константин Поляков.<o:p></o:p></p></div></body></html>