<p>It is only about the returned value of the variable $dp. The port is not set in the outbound proxy uri.</p>

<p>The logic is, if the $du has no port value, then return 5060 -- probably some old code relying on default value for port -- relevant piece of code inside the pv module:</p>

<pre><code>    } else if(param->pvn.u.isname.name.n==2) /* port */ {
        if(uri.port.s==NULL)
            return pv_get_5060(msg, param, res);
        return pv_get_strintval(msg, param, res, &uri.port, (int)uri.port_no);
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/700#issuecomment-231299002">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AF36ZUFVEGEoIx9shi8mTjeOw0MphKeAks5qTgN4gaJpZM4JHbJu">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZbZaRkcKnR1l0cXsltt4ZVRIKIIzks5qTgN4gaJpZM4JHbJu.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/kamailio/kamailio/issues/700#issuecomment-231299002"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>