Re: [OpenSIPS-Users] Next branches error

2011-03-09 Thread Brett Nemeroff
On Wed, Feb 2, 2011 at 3:51 PM, Bogdan-Andrei Iancu wrote: > Hi Brett, > > The error log you get is triggered when the internal function > "next_branches" returns false (a negative code). This is when: > - function called from wrong route type (like for a reply) > - there are no more branches

Re: [OpenSIPS-Users] Next branches error

2011-02-03 Thread Andrew Mortensen
On Feb 2, 2011, at 4:51 PM, Bogdan-Andrei Iancu wrote: > Hi Brett, > > The error log you get is triggered when the internal function "next_branches" > returns false (a negative code). This is when: > - function called from wrong route type (like for a reply) > - there are no more branches l

Re: [OpenSIPS-Users] Next branches error

2011-02-03 Thread Andrew Mortensen
On Feb 2, 2011, at 4:54 PM, Bogdan-Andrei Iancu wrote: >> next_branches actually never returns false (0) as a result of SVN trunk >> commit 7248, so you'll never hit your t_reply call. >> > > Actually next_branches() do return false (which is -1, not 0) - see my > previous email. So it does

Re: [OpenSIPS-Users] Next branches error

2011-02-03 Thread Bogdan-Andrei Iancu
Hi Andrew, Andrew Mortensen wrote: On Jan 29, 2011, at 11:53 AM, Brett Nemeroff wrote: All, 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: if (!next_branche

Re: [OpenSIPS-Users] Next branches error

2011-02-03 Thread Bogdan-Andrei Iancu
Hi Brett, The error log you get is triggered when the internal function "next_branches" returns false (a negative code). This is when: - function called from wrong route type (like for a reply) - there are no more branches left - internal error I guess in your case, the second case (w

Re: [OpenSIPS-Users] Next branches error

2011-02-01 Thread Andrew Mortensen
On Jan 29, 2011, at 11:53 AM, Brett Nemeroff wrote: > All, > > 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: > > > if (!next_branches()) { >

[OpenSIPS-Users] Next branches error

2011-01-29 Thread Brett Nemeroff
All, 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: if (!next_branches()) { t_reply("503","Service Unavailable "); exit; } To