<div dir="ltr"><div>Alex,</div><div><br></div>You are correct.  msg_apply_changes works.<div><br></div><div>I am a bit confused on why this is so.   I have manipulated $rU for example without having to call msg_apply_changes.</div><div><br></div><div>Could you explain why we need to call this function when manipulating $fU ?</div><div><br></div><div>Thanks,</div><div><br></div><div>Karthik</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 13, 2018 at 12:44 PM, Alex Balashov <span dir="ltr"><<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You may need to run msg_apply_changes() before this change is<br>
immediately visible in route script.<br>
<br>
On Wed, Jun 13, 2018 at 12:45:19PM -0500, Karthik Srinivasan wrote:<br>
<br>
>  From the online documentation:$fU - From URI username<br>
> <br>
> *$fU* - reference to username in URI of 'From' header<br>
> <br>
> It is R/W variable (you can assign values to it directly in configuration<br>
> file)<br>
> But i am no able to assign values to $fU.  Has anyone experienced this?<br>
> <br>
> Snippet of code in the configuration file of mine and its respective logs<br>
> showing that $fU is not getting overwritten.  I have tried to hard code<br>
> values to it assign variables to it, all to no avail.<br>
> <br>
> configuration file code snippet:<br>
> <br>
>   xlog("L_INFO", "[$ci]   from header username pre mod: $fU");<br>
>   $fU = "5555555555";<br>
>   xlog("L_INFO", "[$ci]   from header username post mod: $fU");<br>
> <br>
> Logfile snippet:<br>
> <br>
> INFO: (s) [<wbr>7EAB8FECD723E8444E36C659F33106<wbr>8B41EC6BB0]   from header username<br>
> pre mod: 3224567880<br>
> INFO: (s) [<wbr>7EAB8FECD723E8444E36C659F33106<wbr>8B41EC6BB0]   from header username<br>
> post mod: 3224567880<br>
> <br>
> Thanks,<br>
> <br>
> Karthik<br>
<br>
> ______________________________<wbr>_________________<br>
> Kamailio (SER) - Users Mailing List<br>
> <a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
> <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Alex Balashov | Principal | Evariste Systems LLC<br>
<br>
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) <br>
Web: <a href="http://www.evaristesys.com/" rel="noreferrer" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.csrpswitch.com/" rel="noreferrer" target="_blank">http://www.csrpswitch.com/</a><br>
<br>
______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
</font></span></blockquote></div><br></div>