[OpenSIPS-Users] Replace $tU value

Bogdan-Andrei Iancu bogdan at opensips.org
Mon Nov 26 15:50:18 EST 2018


Hi,

uac_replace_to("sip:9876543210@$td");

should do it - you need to call it only for the initial INVITE.

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   http://www.opensips-solutions.com
OpenSIPS Bootcamp 2018
   http://opensips.org/training/OpenSIPS_Bootcamp_2018/

On 11/26/2018 09:01 PM, Vishal Pai wrote:
> Hi Bogdan,
>
> Thank you for your quick response.
>
> I have tried both the way still unable to overwrite the value.
>
> uac_replace_to("$tU","9876543210");
> uac_replace_to("9876543210","$tU");
>
> Can you please let me know the right way to achieve this.
>
> Thanks
>
>
> On Mon, Nov 26, 2018 at 10:59 PM Bogdan-Andrei Iancu 
> <bogdan at opensips.org <mailto:bogdan at opensips.org>> wrote:
>
>     Hi Vishal,
>
>     use uac_replace_to() function:
>     http://www.opensips.org/html/docs/modules/2.4.x/uac.html#func_uac_replace_from
>
>     Regards,
>
>     Bogdan-Andrei Iancu
>
>     OpenSIPS Founder and Developer
>        http://www.opensips-solutions.com
>     OpenSIPS Bootcamp 2018
>        http://opensips.org/training/OpenSIPS_Bootcamp_2018/
>
>     On 11/26/2018 06:42 PM, Vishal Pai wrote:
>>     Hello Everyone
>>
>>     Is it possible to update the $tU value to new one. Let say $tU =
>>     1234567890 need to overwrite to $tU = 9876543210 how i can
>>     achieve that.
>>
>>
>>     _______________________________________________
>>     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/20181126/fde353c2/attachment-0001.html>


More information about the Users mailing list