Hello,

you have to use remove_hf(...) and insert_hf(...) in this case -- see the readme of textops module for details about these two functions.

Cheers,
Daniel

On 05/08/14 12:41, Stefan Kohlhauser wrote:
Hello,
 
I have a subnet with a Kamailio and some phones. Unfortunately these phones are the only ones in the network that are unaware of the prefixes for the sip usernames. These prefixes should be added by Kamailio. For INVITEs its no problem as $ru/$rU are writeable.
Problem: If I send a REFER message to an other phone I want to add a prefix to the username in the Refer-To header. However, the $rt pseudo variable is read only.
Question: How can Kamailio modify the username of the URI in the Refer-To header?
 
Best regards and thanks in advance,
Stefan
 


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda