<div dir="ltr"><div>
<p style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 0pt" class="MsoNormal"><span style="FONT-FAMILY:&#39;Times New Roman&#39;,&#39;serif&#39;;FONT-SIZE:12pt">In my case i need to change the header and then send it. </span></p>
<p style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 0pt" class="MsoNormal"><span style="FONT-FAMILY:&#39;Times New Roman&#39;,&#39;serif&#39;;FONT-SIZE:12pt">Here the case works if i make the changes after i sent the invite and got the reply. As i know the t_on_branch will work after the invite is sent... am i wrong?</span></p>

<p style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 6pt" class="MsoNormal"><span style="FONT-FAMILY:&#39;Times New Roman&#39;,&#39;serif&#39;;FONT-SIZE:12pt">There are many questions to ask about the branches... when do they work in a serial manner, when parallel... where can i find it documented best?</span></p>
</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div>Hi,<br><br>try the following:<br><br>route {<br>  # Whatever you do in your main-route....<br>   t_on_branch(&quot;modify_contact&quot;);<br># Whatever you do in your main-route, the branch route is<br>automatically triggered for each branch.<br>
  t_relay();<br>}<br><br>branch_route[modify_contact] {<br>  remove_hf(&quot;Contact&quot;);<br>  append_hf(&quot;Contact: sip:<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">whatever at something</a>\r\n&quot;);<br>
}<br><br>failure_route[failure_from_np] {<br>  # You need to modify the triggered branch_route again, otherwise the<br>same branch_route will triggered again...<br>}<br><br>Just calling &quot;append_branch&quot; does not help.<br>
<br>Carsten<br><br><br><br></div>
<div class="gmail_quote">On Tue, Mar 27, 2012 at 3:14 PM, Uri Shacked <span dir="ltr">&lt;<a href="mailto:ushacked@gmail.com">ushacked@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div class="HOEnZb">
<div class="h5">
<div dir="ltr"><br><br>
<div class="gmail_quote">On Tue, Mar 27, 2012 at 3:13 PM, Uri Shacked <span dir="ltr">&lt;<a href="mailto:uri.shacked@gmail.com" target="_blank">uri.shacked@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div dir="ltr">
<p style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 0pt" class="MsoNormal"><span style="FONT-FAMILY:&#39;Times New Roman&#39;,&#39;serif&#39;;FONT-SIZE:12pt">Hi,</span></p>
<p style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 0pt" class="MsoNormal"><span style="FONT-FAMILY:&#39;Times New Roman&#39;,&#39;serif&#39;;FONT-SIZE:12pt"> </span></p>
<p style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 6pt" class="MsoNormal"><span style="FONT-FAMILY:&#39;Times New Roman&#39;,&#39;serif&#39;;FONT-SIZE:12pt">Following the advice I got on the subject “</span><span><span style="COLOR:windowtext;TEXT-DECORATION:none"><font size="3"><font face="Calibri">remove_hf&quot; and &quot;append_hf&quot; one after the other , twice, issue”, I tried to work with the “append_branch()” function.</font></font></span></span></p>

<p style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 6pt" class="MsoNormal"><span><span style="COLOR:windowtext;TEXT-DECORATION:none"><font size="3"><font face="Calibri">What I need to do is, after I received the invite from the original user, I use SIP methods to work with the NP server. I subst() the user part, send the call to the NP server, get the reply, parse it and then subst() back to the destination and send the call out.</font></font></span></span></p>

<p style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 6pt" class="MsoNormal"><span><span style="COLOR:windowtext;TEXT-DECORATION:none"><font size="3"><font face="Calibri">Doing it with “append_branch” seems logical. </font></font></span></span></p>

<p style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 6pt" class="MsoNormal"><span><span style="COLOR:windowtext;TEXT-DECORATION:none"><font size="3"><font face="Calibri">I do “append_branch()” before changing the user, <span> </span>get the reply (301), goes on to failure route after the branch route was called, and from there I have a problem.</font></font></span></span></p>

<p style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 6pt" class="MsoNormal"><span><span style="COLOR:windowtext;TEXT-DECORATION:none"><font size="3"><font face="Calibri">I need to continue my flow without the branch I added. How do I return to the original on?</font></font></span></span></p>

<p style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 6pt" class="MsoNormal"><span><span style="COLOR:windowtext;TEXT-DECORATION:none"><font size="3"><font face="Calibri">I read about the t_drop_replies but didn’t quit understand…..</font></font></span></span></p>

<p style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 6pt" class="MsoNormal"><span><span style="COLOR:windowtext;TEXT-DECORATION:none"><font size="3" face="Calibri"> </font></span></span></p>
<p style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 6pt" class="MsoNormal"><span><span style="COLOR:windowtext;TEXT-DECORATION:none"><font size="3"><font face="Calibri">BR,</font></font></span></span></p>
<p style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 6pt" class="MsoNormal"><span><span style="COLOR:windowtext;TEXT-DECORATION:none"><font size="3" face="Calibri">Uri </font></span></span><span style="FONT-FAMILY:&#39;Times New Roman&#39;,&#39;serif&#39;;FONT-SIZE:12pt"></span></p>
</div></blockquote></div><br></div></div></div></blockquote></div><br></div>