<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="monospace">Hi Barry,<br>
      <br>
      It looks like the is_from_gw() does not match for the OPTIONS.
      Have you reloaded the Drouting data after adding the GW ? run
      "opensips-cli -x mi dr_gw_status" to see what opensips knows as
      GWs and if they match the source IP of that OPTIONS<br>
      <br>
<a class="moz-txt-link-freetext" href="https://opensips.org/html/docs/modules/3.2.x/drouting.html#idp5947120">https://opensips.org/html/docs/modules/3.2.x/drouting.html#idp5947120</a><br>
      <br>
      Regards,<br>
    </font>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
OpenSIPS Bootcamp 5-16 Dec 2022, online
  <a class="moz-txt-link-freetext" href="https://www.opensips.org/training/OpenSIPS_eBootcamp_2022/">https://www.opensips.org/training/OpenSIPS_eBootcamp_2022/</a></pre>
    <div class="moz-cite-prefix">On 11/27/22 6:03 PM, Barry O. Williams
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAE6S4Ad8XTw6a5ogNRrV0K0=US4Q+VEdwX28=perpQcW76mjPQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>I have installed Opensips successfully, have registered SIP
          stations and I am able to make station to station calls. I
          have setup IP authentication connection with provider Sketel
          and unable to connect from Opensips side. Skyetel is sending
          OPTIONS request and Opensips is replying with 403 Relay
          Forbidden/. Gateways have been added in Opensips CP.</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div> if ( !(is_method("REGISTER")  || is_from_gw() ) ) {<br>
          <br>
                          if (is_from_local()) {<br>
                                  # authenticate if from local
          subscriber<br>
                                  # authenticate all initial
          non-REGISTER request that pretend to be<br>
                                  # generated by local subscriber
          (domain from FROM URI is local)<br>
                                  if (!proxy_authorize("",
          "subscriber")) {<br>
                                          proxy_challenge("", "auth");<br>
                                          exit;<br>
                                  }<br>
                                  if ($au!=$fU) {<br>
                                          send_reply(403,"Forbidden auth
          ID");<br>
                                          exit;<br>
                                  }<br>
          <br>
                                  consume_credentials();<br>
                                  # caller authenticated<br>
          <br>
                          } else {<br>
                                  # if caller is not local, then called
          number must be local<br>
          <br>
                                  if (!is_uri_host_local()) {<br>
                                          send_reply(403,"Relay
          Forbidden");<br>
                                          exit;<br>
        </div>
        <div><br>
        </div>
        <div>Regards,</div>
        <div>Barry</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-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>