<div dir="ltr"><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Oct 27, 2013 at 4:08 PM, Juha Heinanen <span dir="ltr"><<a href="mailto:jh@tutpro.com" target="_blank">jh@tutpro.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im">mayamatakeshi writes:<br>
<br>
> failure_route[1] {<br>
>         $ru = "<a href="mailto:sip%3A0313241342@192.168.2.2">sip:0313241342@192.168.2.2</a>"<br>
>         append_branch();<br>
>         t_relay();<br>
> }<br>
><br>
> However, the INVITE is sent to both the subscriber location and the new<br>
> branch.<br>
> So, is it now necessary to somehow to "drop" the original branch?<br>
> If so, how do I do that?<br>
<br>
</div>try leaving append_branch() out.<br></blockquote><div><br><br></div><div>Thanks. That didn't work: the INVITE was sent only to the original branch (subscriber location).<br></div><div>But it helps with this:<br>
<br>failure_route[1] {<br>        $ru = "<a href="mailto:sip%3A0313241342@192.168.2.2" target="_blank">sip:0313241342@192.168.2.2</a>:5060"<br>        $du = "sip:" + $rd + ":" + $rp;<br>        t_relay();<br>

}<br><br></div><div>So, use the same branch that failed and just change the destination uri.<br></div><div>That worked.<br><br></div><div>Regards,<br></div><div>Takeshi</div></div><br></div></div>