[OpenSIPS-Users] uac_raplace_to twice in the branch

Adelson O. Junior jroliv at gmail.com
Mon Apr 19 19:45:58 CEST 2010


Hi Thomas,

I could make it as you suggested.
Thank you very much for your response.

Adelson.

On Sun, Apr 18, 2010 at 2:09 PM, Thomas Gelf <thomas at gelf.net> wrote:
> Just add another AVP, for example $avp(s:new_user). Set it to
> $var(pre_to_user) in your pre-routing code, to $var(post_to_user)
> in your post-routing code - change it as many times as you want.
>
> An then, at the end of your branch_route, call uac_replace_to with the
> new_user value (if such value is set) - that's all.
>
> Cheers,
> Thomas
>
> Adelson O. Junior wrote:
>> We are implementing a solution using opensips which I have to replace
>> the To header in a "Pre_routing" scenario and, depending of the
>> routing, I have to replace the To header again, "Post routing"
>> scenario.
>
> --
>  mail: thomas at gelf.net
>  web: http://thomas.gelf.net/
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>



-- 
Adelson



More information about the Users mailing list