[Kamailio-Users] uac_replace_from unexpected behavior
Daniel-Constantin Mierla
miconda at gmail.com
Tue Mar 16 12:44:33 CET 2010
Hello,
On 03/16/2010 02:30 AM, Brandon Armstead wrote:
> Hello,
>
> As always thank you ahead of time for your help and input!
>
> I am currently calling uac_replace_from("", "") in effort to "leave
> uri" and "toss away display name"
>
> Which does seem to work....... for the initial INVITE
>
> However upon receiving an ACK with an empty display, however "" <-
> quotations, it does not clear the display "" which is causing issues
> with one of my upstream vendors.
>
> Example / Scenario:
>
> From: "" <sip:uri at host>
>
> Expected Result upon uac_replace_from("",""): From: <sip:uri at host>
>
> Current Result: From: "" <sip:uri at host>
>
> As you can see it is not stripping the "" empty display quotes.
>
> Any thoughts / ideas / suggestions to get my desired affect?
>
could be that display name is set to empty string (what is between
double quotes) and in this case is nothing to replace -- I have to
doublecheck the sources. Is it 1.5 or 3.0?
Are you using From auto-replacing mode? If not, a solution for now is to
do From update using header manipulation functions:
remove_hf("From");
append_hf("From: <$fu>;tag=$ft\r\n", "From");
Cheers,
Daniel
--
Daniel-Constantin Mierla
Kamailio SIP Router Masterclass, Berlin, March 22-26, 2010
* http://www.asipto.com/index.php/sip-router-masterclass/
More information about the Users
mailing list