<p>I send in a contact that is a 10.10.x.x address - clearly not the same as $si that is in 192.168.40.x (also tested on public IP for server) - and both functions return true, indicating no failure. The outbound message keeps the same contact as the inbound message.</p>

<p>If I run msg_apply_changes() the alias is added to the contact for the outbound message as it should be.</p>

<p>Very simple configuration, receiving message, running set_contact_alias() and then issuing t_relay().</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/445#issuecomment-165052699">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZXmAaA4ngrjRMLS1HkSWbcH-bs2iks5pQS0dgaJpZM4G1vXa.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/445#issuecomment-165052699"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>