<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix"><tt>Hi, Satish!<br>
        <br>
        Do you have any rules provisioned in the DB that use the gateway?<br>
        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)?<br>
        <br>
        Best regards,<br>
      </tt>
      <pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
      On 09/05/2014 05:48 PM, Satish Patel wrote:<br>
    </div>
    <blockquote
cite="mid:CAPgF-fr8TzcGk7ot9Q9wekXs2cyKThO8YiEOY-u6FLaNG+7pHg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>I have setup DR on opensips and just added only single
          gateway to test my routing but i am getting following error. <br>
          <br>
          /opt/opensips/sbin/opensipsctl fifo dr_gw_status<br>
          ID:: 1 IP=65.xxx.xxx.xxx:5065 State=Inactive<br>
          <br>
          <br>
          <a class="moz-txt-link-freetext" href="INFO:drouting:do_routing">INFO:drouting:do_routing</a>: All the gateways are disabled<br>
          do_routing: No rules matching the URI<br>
          <br>
        </div>
        following is my config<br>
        <br>
        # Dynamic Routing<br>
        route[4] {<br>
                #---- PSTN route ----#<br>
                xlog("do_routing: call is inside Dynamic route[4]\n");<br>
                if(!do_routing("0", "F")){<br>
                        xlog("do_routing: No rules matching the URI\n");<br>
                        send_reply("503", "No rules found matching the
        URI prefix");<br>
                        exit;<br>
                        }<br>
                if (is_method("INVITE")) {<br>
                        t_on_failure("10");<br>
                }<br>
                route(relay);<br>
        }<br>
        <br>
        failure_route[10] {<br>
            xlog("DEBUG: DROUTING failure route active\n");<br>
            if (t_was_cancelled()) {<br>
                exit;<br>
            }<br>
            if (t_check_status("[34][0-9][0-9]")) {<br>
                exit;<br>
            }<br>
        <br>
            if (use_next_gw()) {<br>
                t_relay();<br>
                exit;<br>
            } else {<br>
            t_reply ("503", "Service not available");<br>
                exit;<br>
            }<br>
        }<br>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>