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:[EMAIL PROTECTED]:5060;transport=UDP"); // main route
> append_branch("sip:[EMAIL PROTECTED]:5060"); // branch
> route
>
> if ( uri=~"sip:[EMAIL PROTECTED]" )
> {
> uac_replace_from("..."); // make changes on main route, works
> }
>
> if ( uri=~"sip:[EMAIL PROTECTED]" )
> {
> 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
> [email protected]
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users