[OpenSIPS-Users] modify branch

Alex R.S.M alex_rsm at hotmail.com
Fri Nov 7 16:54:58 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.opensips.org/pipermail/users/attachments/20081107/a5de5090/attachment.htm 


More information about the Users mailing list