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@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to