0perationPrivacy / VoIP

Web Base Telnyx/Twilio VoIP Interface enabling SMS, MMS and Voice calls using the providers API Keys and self-hosting the application.
https://VoIP.OperationPrivacy.com
GNU General Public License v3.0
247 stars 421 forks source link

(Status 400) Missing whitelisted destinations #214

Closed sh0ckwavevr6 closed 5 months ago

sh0ckwavevr6 commented 6 months ago

HI, I'm not sure if this project is till maintained but I tried to setup the Voip-suite with Telnyx but I'm facing an issue when connecting with the API-Key. Telnyx return the following error (Status 400) Missing whitelisted destinations

Ater contacting Telnyx it they replied to me

In order to improve the security of Telnyx’s Messaging platform for end users, we will be implementing two changes effective March 1st, 2024:

Editing / Creating a Messaging or Verify Profile via the Portal and API will require users to configure whitelisted destination countries for outbound termination.

It seems that an update is required on this project to accommodate the new requirement.

0perationPrivacy commented 6 months ago

Will look into this. Seems like a setting in Telnyx to specifically allow calls to certain countries, rather than a code change. I checked my telnyx accounts and I had already put in a few countries in the allow-list. Don't remember if this was enforced when I created the profile or I just set it by myself.

sh0ckwavevr6 commented 6 months ago

Thank you for your reply. It seems like this is something new on their end. I found a release note explaining the changes. https://telnyx.com/release-notes/security-updates-to-messaging-api-and-portal

sh0ckwavevr6 commented 6 months ago

Ok I play with it and now I can send SMS throug onerender. But When I goes to the setting menu I got this message The call setting is already available. Do you want to override the call setting? image

If I click Yes I got the following error Cannot read properties of undefined (reading 'id') image

Hope it's help! because on my call settings I do have country whitelisted...

ajayyy commented 5 months ago

Pushed a fix for this.

Without the fix, you can resolve the issue yourself by manually adding <your-domain>/api/setting/receive-sms/telnyx to the webhook in your messaging profile.