Either put it into maon or branch. Calling the function twice will lead
to undefined results.
Actually I would place it completly into branch route.
klaus
Alex R.S.M schrieb:
Hi,
I am trying to modify the header of both main and the branch routes,
more specifically trying to modify FROM field on both routes to
different values.
The change on main route is fine but couldn't make the change on the
branch side.
if (is_method("INVITE"))
{
....
seturi("sip:1111111111@x.x.x.x:5060;transport=UDP"); // main route
append_branch("sip:2222222222@y.y.y.y:5060"); // branch
route
if ( uri=~"sip:.+@x.x.x.x.*" )
{
uac_replace_from("..."); // make changes on main route, works
}
if ( uri=~"sip:.+@y.y.y.y.*" )
{
uac_replace_from("..."); // make changes on the branch, not
working
}
....
When I move the logic for the branch into "branch_route" it would
created two FROM fields. Is this a bug?
Thanks,
Alex
------------------------------------------------------------------------
Stay up to date on your PC, the Web, and your mobile phone with Windows
Live Click here <http://clk.atdmt.com/MRT/go/119462413/direct/01/>
------------------------------------------------------------------------
_______________________________________________
Users mailing list
Users(a)lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users