<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 modify the header of both main and the
branch routes, more specifically trying to modify FROM field on both routes to different values. <br>The change on main route is fine but couldn't make the change on the branch side. <br><br> if (is_method("INVITE"))<br>{<br> ....<br> seturi("sip:1111111111@x.x.x.x:5060;transport=UDP"); // main route<br> append_branch("sip:2222222222@y.y.y.y:5060"); // branch route<br><br> if ( uri=~"sip:.+@x.x.x.x.*" )<br> {<br> uac_replace_from("..."); // make changes on main route, works<br> }<br><br> if ( uri=~"sip:.+@y.y.y.y.*" )<br> {<br> uac_replace_from("..."); // make changes on the branch, not working<br> }<br> ....<br><br>When I move the logic for the branch into "branch_route" it would created two FROM fields. Is this a bug?<br><br><br><br>Thanks,<br>Alex<br /><hr />Stay up to date on your PC, the Web, and your mobile phone with Windows Live <a href='http://clk.atdmt.com/MRT/go/119462413/direct/01/' target='_new'>Click here</a></body>
</html>