The whole thing is I'm making routing decisions adding prefixes to usernames, for example, suppose I have two boxes: box01 and box02. If I want to dial to an extension in box02 from and extension registered in box01 I was prefixing the box02 to the username. When the call hits kamailio I check if the username has the box02 prefix and if it has I send it to the ip address of that box stripping the prefix before. Something like this:
Did you verify what is actually sent on the wire?On 03/07/2012 07:37 PM, Lucas Alvarez wrote:
> I want rewrite $tU but I'm not being able, I'm doing the following:
>
> remove_hf("To");
> insert_hf("To: sip:$rU@$rd\r\n", "From");
>
> Then I'm printing $tU and it is still having the previous value, any
> help will be appreciated.
> Thanks in advance.
If it's just a logging issue you need to do msg_apply_changes().
_______________________________________________
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