question

Matt Kakuk avatar image
Matt Kakuk asked Byrne Reese edited

How do we filter a list of phone numbers by which can send an SMS?

We have integrated SMS API with Zoho CRM and have an approved app in the app store: https://www.ringcentral.com/apps/zoho-crm-ringcentral-sms-texting-extension

It works great, but we are seeing issues with certain accounts. We need to be able to filter out numbers that cannot send SMS. We used to filter for SMS Enabled type, but we were told other number can text also that have different types. This makes it very confusing as now we list all numbers even the ones can not text. As a result, customers are getting a number of error messages. We also not sure why some users can not text, they get the error:

In order to call this API endpoint for another extension, user needs to have [OutboundSMS] permission granted with extended scope

Can you point me in the right direction? Our app is getting more popular, but we need to perfect it.

rest apisms and text messagingpermissions
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Phong Vu avatar image
Phong Vu answered

Hi Matt,

First of all, you make a call to the phone-number endpoint to read all phone numbers of an extension then check if they have SMS cap.

"features":[

"SmsSender",

"InternationalSmsSender"

],

Some time ago I identified that the permission error was misleading and the cause was because of a user tries to send SMS using a number which does not belong to that user. However, with my new test, I always get the correct error message "

Parameter [from] value [+1650XXXXXXX] is invalid [Cannot find the phone number which belongs to user]"

Could you please double check the numbers which failed to send SMS to see if it has one of the features mentioned above?

1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys