[OpenSIPS-Users] uac_replace_from auto mode with to_tag ignores display name

Jeff Pyle jpyle at fidelityvoice.com
Tue Apr 12 16:57:36 CEST 2011


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 <razvancrainea at opensips.org<mailto:razvancrainea at opensips.org>>
Reply-To: OpenSIPS users mailling list <users at lists.opensips.org<mailto:users at lists.opensips.org>>
Date: Tue, 12 Apr 2011 03:42:44 -0400
To: "users at lists.opensips.org<mailto:users at lists.opensips.org>" <users at lists.opensips.org<mailto:users at 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 at lists.opensips.org<mailto:Users at lists.opensips.org>http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110412/2594490e/attachment.htm>


More information about the Users mailing list