[OpenSIPS-Users] Ref: how can we replace URI Header more than once per call?

Bogdan-Andrei Iancu bogdan at opensips.org
Mon Dec 9 19:51:33 CET 2013


Using a proper script logic you can get to replacing the TO/FROM hdr 
only once per branch - keep the new value into a variable (like AVP) so 
you can change it as many times you need -> before seding the call out, 
do the actual replace.

If you need to do the change per branch, you need to put the 
uac_replace_xxx in the branch route !


Bogdan-Andrei Iancu
OpenSIPS Founder and Developer

On 09.12.2013 13:57, AMPTEL PTY LTD | RuvixTel wrote:
> Hi all
> Just wondering, if anyone able to assist us with below:
> We are using Opensips 1.6 and we like to know: how can we replace URI 
> Header more than once per call?
> uac_replace_to function is there but when we try this second time: 
> instead of replacing it. It just appended two headers.
> What we are trying to achieve here is call Fail Over function? When 
> one IP is unable to terminate a call it will try next IP from the 
> priority list.
> Your assistance will be highly appreciated.
> If this issue has been discussed earlier please direct me to the 
> thread please.
> --
> Best Regards +
> Anup
> ________________________
> Ph: +61 413 777 075 (Anup)
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20131209/c0230cbe/attachment.htm>

More information about the Users mailing list