[SR-Users] Replacing the From header user part.
Alex Balashov
abalashov at evaristesys.com
Thu Sep 14 16:39:00 CEST 2017
This is a job for uac_replace_from() in the uac module.
On September 14, 2017 10:37:56 AM EDT, "vivek at advaitamtech.com" <vivek at advaitamtech.com> wrote:
>
>Hi All,
>
>Am trying to replace the user part of From header with own user name in
>kamailio.cfg
>
>I tried to assign directly,
>
>Eg: $fU = "abcd"
>
>Sometime when I receive From header as ' "12345"
><12345 at 1.1.1.1>;tag=xxxx '. In this case it works as ' "12345"
><abcd at 1.1.1.1>;tag=xxxx ' .
>
>So i tried using replace_all() function. But this ended up adding extra
>characters(in my case "abcd") infront of content_type header. I dont
>know why.
>Can someone please help me out in replacing the from header in this
>case?
>
>
>Thanks,
>Vivek
-- Alex
--
Sent via mobile, please forgive typos and brevity.
More information about the sr-users
mailing list