[Kamailio-Users] branch route

Alex R.S.M alex_rsm at hotmail.com
Mon Nov 10 14:19:44 CET 2008


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
http://clk.atdmt.com/MRT/go/119462413/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20081110/3c657a31/attachment.htm 


More information about the Users mailing list