question

comiere-healthcare avatar image
comiere-healthcare asked ·

status 403, [OutboundSMS] permission required

it works in sandbox for sms:
Receipt(status=200, response={  "uri" : " https://platform.devtest.ringcentral.com/restapi/v1.0/account/665152005/extension/665152005/message-...;,  "id" : 2682755004,  "to" : [ {    "phoneNumber" : "+16304235327",    "location" : "Aurora, IL"  } ],  "from" : {    "phoneNumber" : "+13234308604",    "location" : "Montebello, CA"  },  "type" : "SMS",  "creationTime" : "2017-02-13T15:01:47.000Z",  "readStatus" : "Read",  "priority" : "Normal",  "attachments" : [ {    "id" : 2682755004,    "uri" : " https://platform.devtest.ringcentral.com/restapi/v1.0/account/665152005/extension/665152005/message-...;,    "type" : "Text",    "contentType" : "text/plain"  } ],  "direction" : "Outbound",  "availability" : "Alive",  "subject" : "Test SMS using a RingCentral Developer account - test sms content",  "messageStatus" : "Sent",  "smsSendingAttemptsCount" : 1,  "conversationId" : 6361148894337915435,  "conversation" : {    "id" : "6361148894337915435",    "uri" : " https://platform.devtest.ringcentral.com/restapi/v1.0/conversation/6361148894337915435";  },  "lastModifiedTime" : "2017-02-13T15:01:48.059Z"}, key=null)

however it doesn't work in production:

Receipt(status=403, response={  "errorCode" : "FeatureNotAvailable",  "message" : "[OutboundSMS] permission required",  "errors" : [ {    "errorCode" : "CMN-408",    "message" : "[OutboundSMS] permission required",    "permissionName" : "OutboundSMS"  } ],  "permissionName" : "OutboundSMS"}, key=null)



topic-default
1 |1000 characters needed characters left characters exceeded

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

benjamin-dean avatar image
benjamin-dean answered ·
I am conducting some experiments right now to see if I am able to recreate this issue and if I do I will report this issue to our engineering team.

In the meantime, developers should keep in mind that unless the effort to match development (sandbox) accounts to closely match that of live (production) accounts, there are specific steps which should be taken to prevent these types of issues:


When a user first authenticates with your application you should get the account phone number list, and ensure the "features" for any company number you plan on sending an SMS with have "SmsSender" in the list:
https://developers.ringcentral.com/api-docs/latest/index.html#!#RefGetAccountInfo


Before attempting to send an SMS message, you should first verify the following:

1. The Extension has a phone number with the SMS feature enabled https://developers.ringcentral.com/api-docs/latest/index.html#!#RefGetExtensionPhoneNumbers

2. Check the User Permissions to be certain the user has SMS enabled:  https://developers.ringcentral.com/api-docs/latest/index.html#!#RefGetUserPermissions (I WOULD RECOMMEND THIS FOR EVERY DEVELOPER AT ALL TIMES)
Share
1 |1000 characters needed characters left characters exceeded

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

benjamin-dean avatar image
benjamin-dean answered ·
I have tested this using my personal sandbox and production account (and the same application), and was unable to recreate the issue you reported.

I would recommend using the links I have provided above to be certain that the account/extension/phone number have SMS enabled as a feature prior to sending the SMS (and if they do not, and your app has a UI component, displaying the appropriate UI to the user for the unhappy path).
Share
1 |1000 characters needed characters left characters exceeded

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

comiere-healthcare avatar image
comiere-healthcare answered ·
faxes works for production, but sms doesn't work, most likely SMS is disabled for the production phone number

settings is not editable after applied for production. I don't have ReadAccounts permission, I cannot invoke the get APIs to check if SMS enabled?

may I have the admin or any contact who can solve the issue for me?
1 comment Share
1 |1000 characters needed characters left characters exceeded

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

travis-carona avatar image
travis-carona answered ·
Before my SMS was working in production. now I am getting 403 responses, sandbox seems to be ok.
I already have SMS permission enabled.
Share
1 |1000 characters needed characters left characters exceeded

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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