<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="monospace">Hi,<br>
      <br>
      And for the call you are trying to accepts, what is the source IP
      of the INVITE ?<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 12/7/22 9:20 PM, Barry O. Williams
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAE6S4AcTV1hEhrJrQ6niLWsBXDfJkdAF6hQE5KzCUcPoJN0aSA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">Hi Bogdan,
          <div><br>
          </div>
          <div>I have reloaded Drouting, and verified the gateways
            below.</div>
          <div><br>
          </div>
          <div>(opensips-cli): mi dr_gw_status<br>
            {<br>
                "Gateways": [<br>
                    {<br>
                        "ID": "skyetel-NE",<br>
                        "IP": "52.60.138.31",<br>
                        "State": "Active"<br>
                    },<br>
                    {<br>
                        "ID": "skyetel-NW",<br>
                        "IP": "52.41.52.34",<br>
                        "State": "Active"<br>
                    },<br>
                    {<br>
                        "ID": "skyetel-SE",<br>
                        "IP": "50.17.48.216",<br>
                        "State": "Active"<br>
                    },<br>
                    {<br>
                        "ID": "skyetel-SW",<br>
                        "IP": "52.8.201.128",<br>
                        "State": "Active"<br>
                    }<br>
                ]<br>
            }<br>
          </div>
        </div>
        <br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Tue, Dec 6, 2022 at 6:18
            AM Bogdan-Andrei Iancu <<a
              href="mailto:bogdan@opensips.org" moz-do-not-send="true">bogdan@opensips.org</a>>
            wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">
            <div> <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
href="https://opensips.org/html/docs/modules/3.2.x/drouting.html#idp5947120"
                  target="_blank" moz-do-not-send="true">https://opensips.org/html/docs/modules/3.2.x/drouting.html#idp5947120</a><br>
                <br>
                Regards,<br>
              </font>
              <pre cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a href="https://www.opensips-solutions.com" target="_blank" moz-do-not-send="true">https://www.opensips-solutions.com</a>
OpenSIPS Bootcamp 5-16 Dec 2022, online
  <a href="https://www.opensips.org/training/OpenSIPS_eBootcamp_2022/" target="_blank" moz-do-not-send="true">https://www.opensips.org/training/OpenSIPS_eBootcamp_2022/</a></pre>
              <div>On 11/27/22 6:03 PM, Barry O. Williams wrote:<br>
              </div>
              <blockquote type="cite">
                <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></fieldset>
                <pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank" moz-do-not-send="true">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
              </blockquote>
              <br>
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>