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
<[email protected]<mailto:[email protected]>>
Reply-To: OpenSIPS users mailling list
<[email protected]<mailto:[email protected]>>
Date: Tue, 12 Apr 2011 03:42:44 -0400
To: "[email protected]<mailto:[email protected]>"
<[email protected]<mailto:[email protected]>>
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
[email protected]<mailto:[email protected]>http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users