<div dir="ltr">Thanks for everyones input on this. Removal of the domain name routing resolved the issue.<div><br></div><div>Mark.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 26 Apr 2019 at 14:28, Mark Farmer <<a href="mailto:farmorg@gmail.com">farmorg@gmail.com</a>> wrote:<br></div><blockquote class="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">Thanks Ben, that seems to be the case. I will update the list with the results.<div><br></div><div>Mark.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 26 Apr 2019 at 14:09, Ben Newlin <<a href="mailto:Ben.Newlin@genesys.com" target="_blank">Ben.Newlin@genesys.com</a>> wrote:<br></div><blockquote class="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 lang="EN-US">
<div class="gmail-m_5411594017983558230gmail-m_4705619554725030961WordSection1">
<p class="MsoNormal">It would cause the issue if they are sending all requests to that domain, including sequential requests like re-invite, and ignoring the Contact provided in the 200 OK. That is not correct according to RFC 3261, but I have seen many carriers
do this.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="color:black">Ben Newlin </span><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="border-style:solid none none;border-top-width:1pt;border-top-color:rgb(181,196,223);padding:3pt 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12pt;color:black">From: </span></b><span style="font-size:12pt;color:black">Users <<a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a>> on behalf of Mark Farmer <<a href="mailto:farmorg@gmail.com" target="_blank">farmorg@gmail.com</a>><br>
<b>Reply-To: </b>OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>><br>
<b>Date: </b>Friday, April 26, 2019 at 8:59 AM<br>
<b>To: </b>OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>><br>
<b>Subject: </b>Re: [OpenSIPS-Users] check_source_address()<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Thank you, that makes sense now. I will keep that in mind for the future.
<u></u><u></u></p>
<div>
<p class="MsoNormal">In the meantime I have raised a query with our provider.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Additionally, I realised this morning that at our request, our provider is sending calls to us via a domain name instead of an IP. Would that likely cause the issue even if they are using RFC 3261? I have asked for it to be removed.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Best regards<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Mark.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Thu, 25 Apr 2019 at 16:50, Liviu Chircu <<a href="mailto:liviu@opensips.org" target="_blank">liviu@opensips.org</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-style:none none none solid;border-left-width:1pt;border-left-color:rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal">On 25.04.2019 17:11, Mark Farmer wrote:<u></u><u></u></p>
</div>
<blockquote style="margin-top:5pt;margin-bottom:5pt">
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal">Thanks so much for helping with this. <u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I have applied the suggested config but the result is the same. OpenSIPS routes the RE-INVITE to itself and it never gets routed back to the Asterisk box.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">If the 2nd Route header in the RE-INVITE is the IP of the other interface - will that not always be the case? It's as though the 2nd Route header needs to be changed to have the IP of the Asterisk server.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Sanitized RE-INVITE from provider:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<p class="MsoNormal">INVITE <a href="http://sip:asterisk@my.host.name:5060" target="_blank">
sip:asterisk@my.host.name:5060</a> SIP/2.0<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<p><tt><span style="font-size:10pt">If OpenSIPS identifies "<a href="http://my.host.name:5060" target="_blank">my.host.name:5060</a>" as a local domain, this will screw up the routing,</span></tt><span style="font-size:10pt;font-family:"Courier New""><br>
<tt>as it will go from loose (RFC 3261) to strict (old, deprecated RFC 2543 mechanism). Notice how</tt><br>
<tt>its not preserving the R-URI when it routes to itself as should happen with RFC 3261 routing,</tt><br>
<tt>because it has fallen back to RFC 2543 routing.</tt></span><u></u><u></u></p>
<p><tt><span style="font-size:10pt">Your provider needs to follow RFC 3261 and use as Re-INVITE Request-URI the exact Contact</span></tt><span style="font-size:10pt;font-family:"Courier New""><br>
<tt>advertised by the caller: <a href="mailto:sip:asterisk@10.98.0.102:5060" target="_blank">
<sip:asterisk@10.98.0.102:5060></a>, and not confuse your routing engine</tt><br>
<tt>with a random target such as: INVITE <a href="mailto:sip:asterisk@my.host.name:5060" target="_blank">
sip:asterisk@my.host.name:5060</a>.</tt></span><u></u><u></u></p>
<pre>-- <u></u><u></u></pre>
<pre>Liviu Chircu<u></u><u></u></pre>
<pre>OpenSIPS Developer<u></u><u></u></pre>
<pre><a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a><u></u><u></u></pre>
</div>
<p class="MsoNormal">_______________________________________________<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" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">-- <u></u><u></u></p>
<div>
<p class="MsoNormal">Mark Farmer<br>
<a href="mailto:farmorg@gmail.com" target="_blank">farmorg@gmail.com</a><u></u><u></u></p>
</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 clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_5411594017983558230gmail_signature">Mark Farmer<br><a href="mailto:farmorg@gmail.com" target="_blank">farmorg@gmail.com</a></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Mark Farmer<br><a href="mailto:farmorg@gmail.com" target="_blank">farmorg@gmail.com</a></div>