[Users] lcr load_gws()
Ovidiu Sas
sip.nslu at gmail.com
Fri Aug 11 19:58:09 CEST 2006
Here's an example:
route[2] {
if (!load_gws()) {
xlog("L_ERR", "ERR: unable to load gateways\n");
sl_send_reply("503", "Service not available - unable
to load gateways");
}
else {
if (!next_gw()) {
xlog("L_INFO", "no available gateways\n");
sl_send_reply("503", "Service not available -
no available gateways");
}
else {
t_on_failure("2");
route(1);
}
}
exit;
}
on failure_route[2] call for next_gw())
-ovi
On 8/11/06, Sharon <asteriskgirl at gmail.com> wrote:
> Hey all,
> Can anyone post any example config with successful use of load_gws()
> and next_gw() .
> I am trying to set it up for my system here but don't know what I am
> missing.Also if possible how do you log the loaded load_gws() and
> next_gw() in your logs.
>
>
>
> Thanks,
> -Sharon
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
More information about the sr-users
mailing list