<p>Sending socket isn't the issue here, it's the destination address/port. The destination can be forced by setting the outbound_proxy setting of PUA - <a href="http://www.kamailio.org/docs/modules/4.3.x/modules/pua.html#idp15445640">http://www.kamailio.org/docs/modules/4.3.x/modules/pua.html#idp15445640</a>. This works in my usecase but probably not in others.</p>

<p>The client isn't using TLS in this instance but this is the next step to implement. Appending to the pseudo variables may work but it seems like a hack rather than a bug fix.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/issues/509#issuecomment-184654700">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZX0RttLW5R_W3yb8ywD17DCm9Sh7ks5pkwZEgaJpZM4HaJWW.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/509#issuecomment-184654700"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>