[OpenSIPS-Devel] [ opensips-Bugs-3604147 ] load_balance in failure_route
SourceForge.net
noreply at sourceforge.net
Mon Feb 11 20:35:04 CET 2013
Bugs item #3604147, was opened at 2013-02-11 11:12
Message generated for change (Comment added) made by sethschultz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3604147&group_id=232389
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Seth Schultz (sethschultz)
Assigned to: Nobody/Anonymous (nobody)
Summary: load_balance in failure_route
Initial Comment:
Hello,
I call load_balance in my failure_route for sip_codes "(408)|[56][0-9]{2}". This works, however, once all of the destinations have been exhausted, it continually tries to load balance the call to the last address, instead of returning false. Please see the snippet below.
failure_route[1]
{
...
if (t_was_cancelled())
{
exit;
}
if (is_method("INVITE") && $tt == NULL && t_check_status("(403)|(404)|(408)|([56][0-9]{2})"))
{
if(load_balance("1", "pstn", "1"))
{
... #this code gets continually called with the last address in the pool instead of hitting the else condition below
}
else
{
send_reply("$rs","$rr");
exit;
}
}
...
}
----------------------------------------------------------------------
>Comment By: Seth Schultz (sethschultz)
Date: 2013-02-11 11:35
Message:
I should note that I have tried it with both the 0 and the 1 algorithm.
Both of them fail in the same way.
Thanks,
Seth
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3604147&group_id=232389
More information about the Devel
mailing list