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@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@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to