[OpenSIPS-Devel] [ opensips-Bugs-3604147 ] load_balance in failure_route

SourceForge.net noreply at sourceforge.net
Mon Feb 11 20:12:13 CET 2013


Bugs item #3604147, was opened at 2013-02-11 11:12
Message generated for change (Tracker Item Submitted) 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;
}
}
...
}

----------------------------------------------------------------------

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