[OpenSIPS-Users] question about drouting and uac_replace_from

Vlad Paiu vladpaiu at opensips.org
Wed Apr 18 13:30:32 CEST 2012


Hello,

Do uac_replace_from() on a per-branch basis, so arm a branch route via 
t_on_branch() and use the branch route to modify your from/to .

Regards,

Vlad Paiu
OpenSIPS Developer
http://www.opensips-solutions.com


On 04/18/2012 02:12 PM, pavel at eremina.net wrote:
> Hi, i have some trouble with drouting and uac_replace_from.
>
> I need to change FROM per each Gateway.
>
> I do it like this:
>
> route (1) {
> ...
> uac_replace_from($var(new_from));
> t_relay();
>
> }
>
> failure_route (1) {
>
> if (use_next_gw()) route(1)
>
> }
>
>
> and if first gw fails then call was routed to next, when sip message
> send to next GW header FROM has twice headers ("sip:...sip:....");
>
> I know that i must use uac_replace_from once, but how cat solve my
> problem in another way?
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users



More information about the Users mailing list