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

Jeff Pyle jpyle at fidelityvoice.com
Wed Apr 13 16:42:16 CEST 2011


Bogdan,

That's what I wanted to know.  Thanks.


- Jeff


From: Bogdan-Andrei Iancu <bogdan at opensips.org<mailto:bogdan at opensips.org>>
Date: Wed, 13 Apr 2011 09:28:35 -0400
To: OpenSIPS users mailling list <users at lists.opensips.org<mailto:users at lists.opensips.org>>
Cc: Jeff Pyle <jpyle at fidelityvoice.com<mailto:jpyle at fidelityvoice.com>>
Subject: Re: [OpenSIPS-Users] uac_replace_from auto mode with to_tag ignores display name

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"<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


_______________________________________________
Users mailing list
Users at lists.opensips.org<mailto:Users at 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"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110413/5b2cddfc/attachment.htm>


More information about the Users mailing list