[SR-Users] modifying $fu / $fU (R-URI From)

Daniel-Constantin Mierla miconda at gmail.com
Thu Oct 1 08:28:57 CEST 2015



On 30/09/15 16:31, Sven Neuhaus wrote:
> Hi Carsten,
>
> Am 30.09.2015 um 16:26 schrieb Carsten Bock:
>> $fU is read-only. You will have to use
>> uac_replace_from("$(fU{s.substr,2,0})", "");
> the documentation is wrong then, it states that both $fu and $fU
> are R/W.
> Will adding the uac module (to get these functions) have any adverse
> effects?
>
>
These variables are no longer read-only like it used to be long time
ago, but updating them is not immediately visible in the incoming sip
message, being operations over headers, see:

  -
http://www.kamailio.org/wiki/tutorials/faq/main#why_changes_made_to_headers_or

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com




More information about the sr-users mailing list