[OpenSIPS-Users] Inbound PSTN connection failure

Barry O. Williams barryo.williams at gmail.com
Sun Nov 27 16:03:47 UTC 2022


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20221127/ae92becd/attachment.html>


More information about the Users mailing list