<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi,<br><br>I am trying to make some changes in the header of the
branch.&nbsp; The first "if condition" made the change. But, the second "if
condition" does not.<br>It seems the uri value is not being changed by append_branch function. <br><br>&nbsp;if (is_method("INVITE"))<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp; ....<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; seturi("sip:1111111111@x.x.x.x:5060;transport=UDP");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ( uri=~"sip:.+@x.x.x.x*" )<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // make some changes<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; append_branch("sip:2222222222@y.y.y.y:5060");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ( uri=~"sip:.+@y.y.y.y.*" )<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  // make some changes to the branch<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ....<br><br>What's the best way to make changes on diff branches? <br><br>Thanks,<br>Alex<br /><hr />Get 5 GB of storage with Windows Live Hotmail. <a href='http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_5gb_112008' target='_new'>Sign up today.</a></body>
</html>