<p>Hi<br>
I'm using with Opensips 2.2dev uac_registrant module to register to an SIP Provider. They said the registration fails because the top most request Via hasn't the rport parameter.</p>

<p>I've tried to add that parameters using a local_route as follows:</p>

<p>local_route {<br>
        xlog("L_INFO", "local_route");<br>
        if (is_method("REGISTER")) {<br>
                xlog("L_INFO", "Sending a REGISTER to $ru");<br>
                add_local_rport();<br>
        }<br>
}</p>

<p>But it seems to have no effects:</p>

<p>Feb 17 16:45:46 newopensips-cti1 /sbin/opensips[15391]: local_route<br>
Feb 17 16:45:46 newopensips-cti1 /sbin/opensips[15391]: Sending a REGISTER to sip:sip.vohippo.com<br>
Feb 17 16:45:46 newopensips-cti1 /sbin/opensips[15391]: DBG<img class="emoji" title=":tm:" alt=":tm:" src="https://assets-cdn.github.com/images/icons/emoji/unicode/2122.png" height="20" width="20" align="absmiddle">t_uac: Change in local route -&gt; rebuilding buffer</p>

<p>Is it a bug?<br>
Is there another way to add it?</p>

<p>Thank you </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/issues/797">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciU5mmj1CjRMIMSQBzFqOhJaDMJkGks5plI4OgaJpZM4HcODW.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/issues/797"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>