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

2018-06-14 Thread Karthik Srinivasan
Daniel, I appreciate the information. Than you very much. Karthik On Thu, Jun 14, 2018 at 1:18 AM, Daniel-Constantin Mierla wrote: > Hello, > > you have to put this from the perspective of: changes to the SIP message > (headers and body) are not immediately reflected. So even if you do a >

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

2018-06-14 Thread Daniel-Constantin Mierla
Hello, you have to put this from the perspective of: changes to the SIP message (headers and body) are not immediately reflected. So even if you do a replace or subst operation, changes are not visible. If you do remove_hf() or append_hf(), it happens the same. The FAQ has an entry for it:   -

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

2018-06-13 Thread Karthik Srinivasan
or rather a list of the pseudo vars that fall under the special case; assuming this list is smaller. On Wed, Jun 13, 2018 at 4:05 PM, Karthik Srinivasan wrote: > Henning, > > Thanks for the explanation. This does clear it up for me. > > Do you happen to know if there is a list of pseudo vars

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

2018-06-13 Thread Henning Westerholt
Am Mittwoch, 13. Juni 2018, 20:28:13 CEST schrieb Alex Balashov: > On Wed, Jun 13, 2018 at 01:26:07PM -0500, Karthik Srinivasan wrote: > > Could you explain why we need to call this function when manipulating $fU > > ? > > Some PV manipulations work that way, others don't. :-) "Because >

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

2018-06-13 Thread Alex Balashov
On Wed, Jun 13, 2018 at 01:26:07PM -0500, Karthik Srinivasan wrote: > Could you explain why we need to call this function when manipulating $fU ? Some PV manipulations work that way, others don't. :-) "Because Kamailio". -- Alex Balashov | Principal | Evariste Systems LLC Tel: +1-706-510-6800

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

2018-06-13 Thread Karthik Srinivasan
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

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

2018-06-13 Thread Alex Balashov
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

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

2018-06-13 Thread Karthik Srinivasan
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