<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div>Bogdan,</div><div><br></div><div>That's what I wanted to know. Thanks.</div><div><br></div><div><br></div><div>- Jeff</div><div><br></div><div><br></div><span id="OLK_SRC_BODY_SECTION"><div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><span style="font-weight:bold">From: </span> Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>><br><span style="font-weight:bold">Date: </span> Wed, 13 Apr 2011 09:28:35 -0400<br><span style="font-weight:bold">To: </span> OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>><br><span style="font-weight:bold">Cc: </span> Jeff Pyle <<a href="mailto:jpyle@fidelityvoice.com">jpyle@fidelityvoice.com</a>><br><span style="font-weight:bold">Subject: </span> Re: [OpenSIPS-Users] uac_replace_from auto mode with to_tag ignores display name<br></div><div><br></div><div>
<div bgcolor="#ffffff" text="#000000">
Hi Guys,<br>
<br>
actually it is not a configuration problem at all - the UAC module
does not restore the DISPLAY part of FROM/TO, but only the URI part
(in sequential requests).<br>
<br>
Regards,<br>
Bogdan<br>
<br>
On 04/12/2011 05:57 PM, Jeff Pyle wrote:
<blockquote cite="mid:C9C9DF62.1D9CA%25jpyle@fidelityvoice.com" type="cite">
<div>Razvan,</div>
<div><br>
</div>
<div>On the initial INVITE the first parameter is not set to "".
I run the function as follows:</div>
<div><br>
</div>
<div>
uac_replace_from("$var(id_namereplace)",
<a class="moz-txt-link-rfc2396E" href="sip:$avp(s:id_num)@$Ri">"sip:$avp(s:id_num)@$Ri"</a>);</div>
<div><br>
</div>
<div>On the initial INVITE, both the display name and the URI are
updated correctly, that is, with the values put into the
function. The problem happens in loose_route when the URI is
updated but the display name is not.</div>
<div><br>
</div>
<div>To get around the problem of the original display name
leaking through loose route, I have added the following
functions to neutralize it completely. No display name on
subsequent requests is better than the wrong name:</div>
<div><br>
</div>
<div>
<div> if (is_direction("downstream"))
uac_replace_from("","");</div>
<div> if (is_direction("upstream"))
uac_replace_to("","");</div>
</div>
<div><br>
</div>
<div>This does effectively remove the display name without
touching the URI. But shouldn't the display name be updated
automatically (in auto mode) just as the URI is?</div>
<div><br>
</div>
<div><br>
</div>
<div>- Jeff</div>
<div><br>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family: Calibri; font-size: 11pt; text-align:
left; color: black; border-width: 1pt medium medium;
border-style: solid none none; border-color: rgb(181, 196,
223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0in
0in;"><span style="font-weight: bold;">From: </span> Razvan
Crainea <<a moz-do-not-send="true" href="mailto:razvancrainea@opensips.org">razvancrainea@opensips.org</a>><br>
<span style="font-weight: bold;">Reply-To: </span> OpenSIPS
users mailling list <<a moz-do-not-send="true" href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>><br>
<span style="font-weight: bold;">Date: </span> Tue, 12 Apr
2011 03:42:44 -0400<br>
<span style="font-weight: bold;">To: </span> "<a moz-do-not-send="true" href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>"
<<a moz-do-not-send="true" href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>><br>
<span style="font-weight: bold;">Subject: </span> Re:
[OpenSIPS-Users] uac_replace_from auto mode with to_tag
ignores display name<br>
</div>
<div><br>
</div>
<div>
<div bgcolor="#ffffff" text="#000000"> Hello, Jeff,<br>
<br>
Please make sure that the first parameter is not set to "".
As you can see here[1], if the first parameter of
uac_replace_from method is "", it removes the Display name.<br> <br>
Regards,<br>
Razvan<br>
<br>
[1] <a moz-do-not-send="true" href="http://www.opensips.org/html/docs/modules/devel/uac.html#id292701">http://www.opensips.org/html/docs/modules/devel/uac.html#id292701</a><br>
<br>
On 04/11/2011 07:03 PM, Jeff Pyle wrote:
<blockquote cite="mid:C9C89E81.1D8A4%25jpyle@fidelityvoice.com" type="cite">
<div>Hello,</div>
<div><br>
</div>
<div>I run uac_replace_from (auto mode) in a branch_route.
Subsequents requests for the same dialog (with to_tag,
through loose_route) have the From URI updated
correctly, but the display name isn't. Is this a
misconfiguration on my part, by design, or a bug?</div>
<div><br>
</div>
<div><br>
</div>
<div>- Jeff</div>
<div><br>
</div>
<pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></pre>
</blockquote>
</div>
</div>
</span>
<pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Bogdan-Andrei Iancu
OpenSIPS eBootcamp - 2nd of May 2011
OpenSIPS solutions and "know-how"</pre>
</div></div></span></body></html>