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

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

2018-06-13 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:   - h

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 t

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

2018-06-13 Thread Karthik Srinivasan
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 that fall under the non special case? (a list for those psedo vars where msg_apply_changes needs to be called for the update to be reflected while in routing file processi

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 > Kamailio"

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 PM

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 R/W