[OpenSIPS-Users] Drouting error All the gateways are disabled
Satish Patel
satish.txt at gmail.com
Fri Sep 5 16:48:26 CEST 2014
I have setup DR on opensips and just added only single gateway to test my
routing but i am getting following error.
/opt/opensips/sbin/opensipsctl fifo dr_gw_status
ID:: 1 IP=65.xxx.xxx.xxx:5065 State=Inactive
INFO:drouting:do_routing: All the gateways are disabled
do_routing: No rules matching the URI
following is my config
# Dynamic Routing
route[4] {
#---- PSTN route ----#
xlog("do_routing: call is inside Dynamic route[4]\n");
if(!do_routing("0", "F")){
xlog("do_routing: No rules matching the URI\n");
send_reply("503", "No rules found matching the URI prefix");
exit;
}
if (is_method("INVITE")) {
t_on_failure("10");
}
route(relay);
}
failure_route[10] {
xlog("DEBUG: DROUTING failure route active\n");
if (t_was_cancelled()) {
exit;
}
if (t_check_status("[34][0-9][0-9]")) {
exit;
}
if (use_next_gw()) {
t_relay();
exit;
} else {
t_reply ("503", "Service not available");
exit;
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140905/8fb7bc3e/attachment.htm>
More information about the Users
mailing list