[OpenSIPS-Users] uac_raplace_to twice in the branch

Thomas Gelf thomas at gelf.net
Sun Apr 18 19:09:18 CEST 2010


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/




More information about the Users mailing list