<div><br><div class="gmail_quote">On Wed, Feb 2, 2011 at 3:51 PM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Brett,<br>
<br>
The error log you get is triggered when the internal function "next_branches" returns false (a negative code). This is when:<br>
- function called from wrong route type (like for a reply)<br>
- there are no more branches left<br>
- internal error<br>
<br>
I guess in your case, the second case (when there are no more branches) is the trigger. And indeed, in this case, the error message is bogus - we need to fix that.<br>
<br>
Regards,<br>
Bogdan<br>
<br>
Brett Nemeroff wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
All,<br>
<br>
I'm routing calls using 3XX redirects. I serialize the branches. I immediately call a next_branches() and arm a failure_route. In the failure route I do something like:<br>
<br>
<br>
if (!next_branches()) {<br>
t_reply("503","Service Unavailable ");<br>
exit;<br>
}<br><br></div></div></blockquote></blockquote><div><br></div><div><br></div><meta charset="utf-8">Bogdan,<div>Was just wondering if any work had been done on this yet. Can I manually check the return value for a specific value so this code block gets executed when there are no more branches to attempt?</div>
<div><br>Thanks,</div><div>Brett</div><div><br></div><div><br></div><div> </div></div></div>