[Kamailio-Users] branch route
Klaus Darilion
klaus.mailinglists at pernau.at
Mon Nov 10 15:22:01 CET 2008
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 at x.x.x.x:5060;transport=UDP"); // main route
> append_branch("sip:2222222222 at y.y.y.y:5060"); // branch
> route
>
> if ( uri=~"sip:.+ at x.x.x.x.*" )
> {
> uac_replace_from("..."); // make changes on main route, works
> }
>
> if ( uri=~"sip:.+ at 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 at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
More information about the Users
mailing list