[SR-Users] can't assign values to $fU

Karthik Srinivasan ksriniva2002 at gmail.com
Wed Jun 13 20:26:07 CEST 2018


Alex,

You are correct.  msg_apply_changes works.

I am a bit confused on why this is so.   I have manipulated $rU for example
without having to call msg_apply_changes.

Could you explain why we need to call this function when manipulating $fU ?

Thanks,

Karthik



On Wed, Jun 13, 2018 at 12:44 PM, Alex Balashov <abalashov at evaristesys.com>
wrote:

> You may need to run msg_apply_changes() before this change is
> immediately visible in route script.
>
> On Wed, Jun 13, 2018 at 12:45:19PM -0500, Karthik Srinivasan wrote:
>
> >  From the online documentation:$fU - From URI username
> >
> > *$fU* - reference to username in URI of 'From' header
> >
> > It is R/W variable (you can assign values to it directly in configuration
> > file)
> > But i am no able to assign values to $fU.  Has anyone experienced this?
> >
> > Snippet of code in the configuration file of mine and its respective logs
> > showing that $fU is not getting overwritten.  I have tried to hard code
> > values to it assign variables to it, all to no avail.
> >
> > configuration file code snippet:
> >
> >   xlog("L_INFO", "[$ci]   from header username pre mod: $fU");
> >   $fU = "5555555555";
> >   xlog("L_INFO", "[$ci]   from header username post mod: $fU");
> >
> > Logfile snippet:
> >
> > INFO: (s) [7EAB8FECD723E8444E36C659F331068B41EC6BB0]   from header
> username
> > pre mod: 3224567880
> > INFO: (s) [7EAB8FECD723E8444E36C659F331068B41EC6BB0]   from header
> username
> > post mod: 3224567880
> >
> > Thanks,
> >
> > Karthik
>
> > _______________________________________________
> > Kamailio (SER) - Users Mailing List
> > sr-users at lists.kamailio.org
> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Alex Balashov | Principal | Evariste Systems LLC
>
> Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
> Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180613/1a96f9b1/attachment.html>


More information about the sr-users mailing list