<p>Hi <a href="https://github.com/doome" class="user-mention">@doome</a> <br>
In your case Asterisk acts as strict router (next hop in RURI - opensips - and following hops in Route hdrs - the telco). The bogus routing happened because (for whatever reasons) opensips failed to recognize its own ip in RURI.<br>
If the server IP is in RURI -&gt; after_strict() and next Route hdr  will simply be uploaded in the RURI (which is what you want)..</p>

<p>So the key question is why opensips does not recognize its IP in RURI - do you have in RURI and IP or FQDN ? it is and "advertised" address or a real listener of opensips ?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/pull/642#issuecomment-173974259">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciZRTMTG9arUE1wdgthjLoRvokTuEks5pclTTgaJpZM4F_2xj.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/OpenSIPS/opensips/pull/642#issuecomment-173974259"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>