[Kamailio-Devel] modify branch

Alex R.S.M alex_rsm at hotmail.com
Fri Nov 7 15:38:27 CET 2008



Hi,

I am trying to make some changes in the header of the branch.  The first "if condition" made the change. But, the second "if condition" does not.
It seems the uri value is not being changed by append_branch function. 

 if (is_method("INVITE"))
{
     ....
      seturi("sip:1111111111 at x.x.x.x:5060;transport=UDP");
      if ( uri=~"sip:.+ at x.x.x.x*" )
      {
           // make some changes
      }

      append_branch("sip:2222222222 at y.y.y.y:5060");
      if ( uri=~"sip:.+ at y.y.y.y.*" )
      {
          // make some changes to the branch
      }
      ....

What's the best way to make changes on diff branches? 

Thanks,
Alex

_________________________________________________________________
Get 5 GB of storage with Windows Live Hotmail.
http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_5gb_112008
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/devel/attachments/20081107/8149d311/attachment.htm 


More information about the Devel mailing list