<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p>Hello Sergui,</p>
<p>which version of Kamailio do you use? I did some enhancements in newer versions, also related to display names.</p>
<p>Cheers,</p>
<p>Henning<br>
</p>
<div class="moz-cite-prefix">Am 10.11.19 um 17:19 schrieb Sergiu Pojoga:<br>
</div>
<blockquote type="cite" cite="mid:CAJZsGCnwMDJa=+dWkNPvbvEBp7mG6wpcrXecTt6WyXaM2B+g5A@mail.gmail.com">
<div dir="ltr">Hi ppl,<br>
<div><br>
</div>
<div>Need to replace origination carrier's domain with my own, so I do:</div>
<div><br>
</div>
<div>branch_route[MANAGE_PSTN_IN_BRANCH] {</div>
<div>   uac_replace_from("sip:$<a href="mailto:fU@mydomain.net" moz-do-not-send="true">fU@mydomain.net</a>");<br>
</div>
<div>}</div>
<div><br>
</div>
<div>The dialog-forming INVITE is relayed properly with ONLY the domain part being replaced.</div>
<div><br>
</div>
<div>However, subsequent messages such as ACK and BYE have the From DISPLAY NAME (_uac_fdp) stripped off.</div>
<div><br>
</div>
<div>Not that it affects real functionality in any known way (CLID is still good for callee), but curious if this is intentional or not, as
<i>uac_replace_from(uri)</i> clearly states that: "<i>Replace in FROM header the <span class="emphasis">
URI</span> part <b>without altering the display name</b></i>" </div>
<div><br>
</div>
<div># kamcmd dlg.list</div>
<div>        variables: {<br>
                {<br>
                        <font color="#ff0000">_uac_fdpnew: </font><br>
                }<br>
                {<br>
                        _uac_fdp: "JOHN DOE"<br>
                }<br>
                {<br>
                        _uac_funew: <a href="mailto:sip%3A18661112222@mydomain.net" moz-do-not-send="true">
sip:18661112222@mydomain.net</a><br>
                }<br>
                {<br>
                        _uac_fu: <a href="mailto:sip%3A18661112222@carrierdomain.net" moz-do-not-send="true">
sip:18661112222@carrierdomain.net</a><br>
</div>
<div>         }</div>
<div><br>
</div>
<div>Thanks!</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">-- 
Kamailio Merchandising - <a class="moz-txt-link-freetext" href="https://skalatan.de/merchandising/">https://skalatan.de/merchandising/</a>
Kamailio services - <a class="moz-txt-link-freetext" href="https://skalatan.de/services">https://skalatan.de/services</a>
Henning Westerholt - <a class="moz-txt-link-freetext" href="https://skalatan.de/blog/">https://skalatan.de/blog/</a></pre>
</body>
</html>