Hi Guys,

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).

Regards,
Bogdan

On 04/12/2011 05:57 PM, Jeff Pyle wrote:
Razvan,

On the initial INVITE the first parameter is not set to "". I run the function as follows:

uac_replace_from("$var(id_namereplace)", "sip:$avp(s:id_num)@$Ri");

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.

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:

if (is_direction("downstream")) uac_replace_from("",""); if (is_direction("upstream")) uac_replace_to("","");

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?


- Jeff


From: Razvan Crainea <razvancrai...@opensips.org <mailto:razvancrai...@opensips.org>> Reply-To: OpenSIPS users mailling list <users@lists.opensips.org <mailto:users@lists.opensips.org>>
Date: Tue, 12 Apr 2011 03:42:44 -0400
To: "users@lists.opensips.org <mailto:users@lists.opensips.org>" <users@lists.opensips.org <mailto:users@lists.opensips.org>> Subject: Re: [OpenSIPS-Users] uac_replace_from auto mode with to_tag ignores display name

Hello, Jeff,

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.

Regards,
Razvan

[1] http://www.opensips.org/html/docs/modules/devel/uac.html#id292701

On 04/11/2011 07:03 PM, Jeff Pyle wrote:
Hello,

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?


- Jeff


_______________________________________________
Users mailing list
Users@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


--
Bogdan-Andrei Iancu
OpenSIPS eBootcamp - 2nd of May 2011
OpenSIPS solutions and "know-how"

_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to