Hi, Satish!

Do you have any rules provisioned in the DB that use the gateway?
Is the gateway pinging turned on? Can you trace the SIP messages between OpenSIPS and gateway to check if the GW replies with a positive code (or replies at all)?

Best regards,

Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com

On 09/05/2014 05:48 PM, Satish Patel wrote:
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;
    }
}



_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to