[OpenSIPS-Users] Next branches error

Brett Nemeroff brett at nemeroff.com
Wed Mar 9 15:58:43 CET 2011


On Wed, Feb 2, 2011 at 3:51 PM, Bogdan-Andrei Iancu <bogdan at opensips.org>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 left
>   - internal error
>
> 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.
>
> Regards,
> Bogdan
>
> 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()) {
>>                t_reply("503","Service Unavailable ");
>>                exit;
>>        }
>>
>>

Bogdan,
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?

Thanks,
Brett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110309/723b323c/attachment.htm>


More information about the Users mailing list