<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div dir="ltr">
<div></div>
<div>
<div dir="ltr">Call record route on initial invite. </div>
<div><br>
</div>
<div class="ms-outlook-ios-signature" id="ms-outlook-mobile-signature"><a href="https://aka.ms/o0ukef">Outlook voor iOS</a> downloaden</div>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Van:</b> Users <users-bounces@lists.opensips.org> namens Mark Farmer <farmorg@gmail.com><br>
<b>Verzonden:</b> Friday, June 5, 2020 3:05:42 PM<br>
<b>Aan:</b> OpenSIPS users mailling list <users@lists.opensips.org><br>
<b>Onderwerp:</b> Re: [OpenSIPS-Users] ACK Routing Issue</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">Thanks Diptesh<br>
<div><br>
</div>
<div>I'm using topology hiding, so now I have this:</div>
<div><br>
</div>
<div>
<div>if (has_totag()) {</div>
<div>                xlog("CUSTOM_LOG: in-dialog $rm has message flags: $mf and branch flags: $bf");</div>
<div><br>
</div>
<div>                #Set correct SIP User-Agent Header</div>
<div>                if (remove_hf("User-Agent")) {</div>
<div>                xlog("CUSTOM_LOG: Setting SIP User-Agent on In-Dialog Request");</div>
<div>                insert_hf("User-Agent: OpenSIPS\r\n");</div>
<div>                }</div>
<div><br>
</div>
<div>                if (!topology_hiding_match() ) {</div>
<div>                        xlog("CUSTOM_LOG: cannot match request to a dialog \n");</div>
<div>                        send_reply(404,"Not found");</div>
<div>                }</div>
<div><br>
</div>
<div>                # handle hop-by-hop ACK (no routing required)</div>
<div>                if ( is_method("ACK") && t_check_trans() ) {</div>
<div>                        xlog("CUSTOM_LOG: ACK detected with valid transaction - t_relay");<br>
</div>
<div>                        t_relay();</div>
<div>                        exit;</div>
<div>                }</div>
</div>
<div><br>
</div>
<div>I don't see a 404 going out so I think <span style="color:rgb(0,0,0); font-size:medium">topology_hiding_match is working.</span></div>
<div>But it tries to send the ACK to itself on it's private interface (I have mhomed=1).</div>
<div><br>
</div>
<div>ACK <a href="mailto:sip%3A%2B44XXXXXXXXXX@10.150.50.72">sip:+44XXXXXXXXXX@10.150.50.72</a>;did=e07.595f3776 SIP/2.0</div>
<div>Via: SIP/2.0/UDP PUB.LIC.IP.ADDR:5060;branch=z9hG4bKc219.d1f5b08.2</div>
<div>From: <sip:+441204860410@<span style="color:rgb(0,0,0); font-size:medium">PUB.LIC.IP.ADDR</span>;user=phone>;tag=gK0c801c8d</div>
<div>To: <<a href="mailto:sip%3A%2B44XXXXXXXXXX@147.152.17.42">sip:+44XXXXXXXXXX@147.152.17.42</a>>;tag=3800350621-1224267434</div>
<div>Call-ID: <a href="mailto:543691539-3800350621-1514620980@sbc-uk-bs13b.uk.sdin.bt.net">
543691539-3800350621-1514620980@sbc-uk-bs13b.uk.sdin.bt.net</a></div>
<div>CSeq: 202841 ACK</div>
<div>Max-Forwards: 69</div>
<div>Content-Length: 0</div>
<div> </div>
<div>Best regards</div>
<div>Mark.</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Fri, 5 Jun 2020 at 13:03, Diptesh Patel <<a href="mailto:diptesh.patel@ecosmob.com">diptesh.patel@ecosmob.com</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left-width:1px; border-left-style:solid; border-left-color:rgb(204,204,204); padding-left:1ex">
<div dir="ltr">Hello Mark,
<div><br>
</div>
<div>Are you using Topology Hiding or Loose Routing?</div>
<div><br>
</div>
<div>If you are using Topology Hiding then you need to match the topology using <font color="#444444"><span style="background-color:rgb(254,254,238)"><b>topology_hiding_match()</b> </span>first.</font></div>
<div><br>
</div>
<div>It is great if you can share SIP packets.</div>
<div><br>
</div>
<div>
<div>
<div>
<div dir="ltr">
<div dir="ltr">
<div>
<div>Thanks & Regards</div>
<div dir="ltr"><b>Diptesh Patel</b>
<div>Software Developer </div>
<div>Ecosmob Technologies Ltd, </div>
<div>Ahmedabad</div>
<div>Mo:<b>+919898962659</b></div>
</div>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Fri, Jun 5, 2020 at 5:00 PM Mark Farmer <<a href="mailto:farmorg@gmail.com" target="_blank">farmorg@gmail.com</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left-width:1px; border-left-style:solid; border-left-color:rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div dir="ltr">Hi everyone
<div><br>
</div>
<div>I've upgraded an OpenSIPS box to 3.1 and am now seeing an issue with ACK's trying to route to an incorrect IP - in this case our own advertised IP.
<div dir="ltr"></div>
</div>
<div><br>
</div>
<div>I think I'm right in saying that PRACK's & ACK's are treated equally and should route in the same manner? However, PRACK's are routing correctly.</div>
<div><br>
</div>
<div>I have this:</div>
<div><br>
</div>
<div>
<div>if (has_totag()) {</div>
<div>                ---</div>
<div><br>
</div>
<div>                # handle hop-by-hop ACK (no routing required)<br>
</div>
<div>                #if ( is_method("ACK") && t_check_trans() ) {</div>
<div>                if (is_method("ACK")) {</div>
<div>                        t_relay();<br>
</div>
<div>                        exit;</div>
<div>                }</div>
</div>
<div>---</div>
<div><br>
</div>
<div>Thanks for any ideas!</div>
<div>Mark.</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote>
</div>
<br>
<div><font face="Arial" size="2" color="#808080" style="background-color:white"><b>Disclaimer</b></font></div>
<div>
<div><span style="background-color:white; color:rgb(128,128,128); font-family:Arial; font-size:small">In addition to generic Disclaimer which you have agreed on our website, any views or opinions presented in this email are solely those of the originator and
 do not necessarily represent those of the Company or its sister concerns. Any liability (in negligence, contract or otherwise) arising from any third party taking any action, or refraining from taking any action on the basis of any of the information contained
 in this email is hereby excluded.</span></div>
</div>
<div><span style="background-color:white; color:rgb(128,128,128); font-family:Arial; font-size:small"><br>
</span></div>
<div><font face="Arial" size="2" color="#808080" style="background-color:white"><b>Confidentiality</b></font></div>
<div><font face="Arial" size="2" color="#808080" style="background-color:white">This communication (including any attachment/s) is intended only for the use of the addressee(s) and contains information that is PRIVILEGED AND CONFIDENTIAL. Unauthorized reading,
 dissemination, distribution, or copying of this communication is prohibited. Please inform originator if you have received it in error.</font></div>
<div><font face="Arial" size="2" color="#808080" style="background-color:white"><br>
</font></div>
<div><span style="background-color:white; color:rgb(128,128,128); font-family:Arial; font-size:small"><b>Caution for viruses, malware etc.</b></span></div>
<div><font face="Arial" size="2" color="#808080" style="background-color:white">This communication, including any attachments, may not be free of viruses, trojans, similar or new contaminants/malware, interceptions or interference, and may not be compatible
 with your systems. You shall carry out virus/malware scanning on your own before opening any attachment to this e-mail. The sender of this e-mail and Company including its sister concerns shall not be liable for any damage that may incur to you as a result
 of viruses, incompleteness of this message, a delay in receipt of this message or any other computer problems. </font></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="x_gmail_signature">Mark Farmer<br>
<a href="mailto:farmorg@gmail.com" target="_blank">farmorg@gmail.com</a></div>
</div>
</body>
</html>