[OpenSIPS-Users] Inbound PSTN connection failure
Bogdan-Andrei Iancu
bogdan at opensips.org
Tue Dec 13 08:04:16 UTC 2022
Hi,
And for the call you are trying to accepts, what is the source IP of the
INVITE ?
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 12/7/22 9:20 PM, Barry O. Williams wrote:
> Hi Bogdan,
>
> I have reloaded Drouting, and verified the gateways below.
>
> (opensips-cli): mi dr_gw_status
> {
> "Gateways": [
> {
> "ID": "skyetel-NE",
> "IP": "52.60.138.31",
> "State": "Active"
> },
> {
> "ID": "skyetel-NW",
> "IP": "52.41.52.34",
> "State": "Active"
> },
> {
> "ID": "skyetel-SE",
> "IP": "50.17.48.216",
> "State": "Active"
> },
> {
> "ID": "skyetel-SW",
> "IP": "52.8.201.128",
> "State": "Active"
> }
> ]
> }
>
> On Tue, Dec 6, 2022 at 6:18 AM Bogdan-Andrei Iancu
> <bogdan at opensips.org <mailto:bogdan at opensips.org>> wrote:
>
> 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
> <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 <https://www.opensips-solutions.com>
> OpenSIPS Bootcamp 5-16 Dec 2022, online
> https://www.opensips.org/training/OpenSIPS_eBootcamp_2022/ <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 <mailto:Users at lists.opensips.org>
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users <http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20221213/3aee313f/attachment.html>
More information about the Users
mailing list