[OpenSIPS-Users] Inbound PSTN connection failure

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Dec 6 11:18:52 UTC 2022


Hi Barry,

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

https://opensips.org/html/docs/modules/3.2.x/drouting.html#idp5947120

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
OpenSIPS Bootcamp 5-16 Dec 2022, online
   https://www.opensips.org/training/OpenSIPS_eBootcamp_2022/

On 11/27/22 6:03 PM, Barry O. Williams wrote:
> Hi,
>
> 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.
>
>
>  if ( !(is_method("REGISTER")  || is_from_gw() ) ) {
>
>                 if (is_from_local()) {
>                         # authenticate if from local subscriber
>                         # authenticate all initial non-REGISTER 
> request that pretend to be
>                         # generated by local subscriber (domain from 
> FROM URI is local)
>                         if (!proxy_authorize("", "subscriber")) {
>                                 proxy_challenge("", "auth");
>                                 exit;
>                         }
>                         if ($au!=$fU) {
>                                 send_reply(403,"Forbidden auth ID");
>                                 exit;
>                         }
>
>                         consume_credentials();
>                         # caller authenticated
>
>                 } else {
>                         # if caller is not local, then called number 
> must be local
>
>                         if (!is_uri_host_local()) {
>                                 send_reply(403,"Relay Forbidden");
>                                 exit;
>
> Regards,
> Barry
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20221206/ccde55bc/attachment-0001.html>


More information about the Users mailing list