<p>IIRC, add_contact_alias() doesn't add alias if the address is contact is the same as the address to be added as alias.</p>

<p>You description about the behavior of set_contact_alias() is not clear for me. Maybe you can paste here the incoming and outgoing requests when using set contact alias.</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-165020172">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZaWGXRb5J0ZZawqi-sXOWN61-X7Rks5pQQdHgaJpZM4G1vXa.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-165020172"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>