Skip to main content
The First Step
March 17, 2016
Question

Send SMS - Error MSG-304

I have my app working fine in Sandbox, but in production when trying to send a text, i recieve the following response:


body=>"{

"errorCode" : "FeatureNotAvailable",

"message" : "Phone number doesn't belong to extension",

"errors" : [ {

"errorCode" : "MSG-304",

"message" : "Phone number doesn't belong to extension"

} ] }", :url=>#<URI::HTTPS:0x007ffb5c0b65d0 URL:https://platform.ringcentral.com/restapi/v1.0/account/~/extension/~/sms>;,


I am trying to text a users cell phone number. We receive txts on our cells fine in sandbox mode

28 replies

Found Your Voice
March 23, 2016
Sorry about that, thought you had things working the way you needed.

In production:
  1. Has your app/integration been graduated to production?
  2. Are you using the production API Base URL: https://platform.ringcentral.com/ ?
  3. Are you using production API keys (if you have production access)?
  4. Do I need to re-review this in the context of your production account?
Thanks for helping to isolate the answers.
The First Step
March 23, 2016
No problem, i think i just got you confused by saying that it was working in staging.  To answer you questions
  1. The app has been graduated
  2. we are using production url
  3. correct keys
  4. I am not sure what you mean by review in conext of production account, but if that means that you can take a look at my account specifically, I am beginning to think that the problem may lie in an account specific spot.  It's just weird that we are perfectly fine in staging.
Thanks again for getting back!
Found Your Voice
March 23, 2016
And the "from" number is a number associated with the respective production RingCentral account?
The First Step
March 23, 2016
That is correct
Found Your Voice
March 23, 2016
Could you send me the request headers and body you're using privately to: benjamin.dean@ringcentral.com please?

I'd like to run some tests myself please.
Employee
March 31, 2016
If you indicate a company number (not direct extension number) as your "from" number, you must be logged in as a company operator to be allowed to send SMS from this number. By default, main system administrator extension is defined as a company operator, but it can be changed in RingCentral Service Web UI .  
New Participant
February 7, 2019
HI, I am having a similar issue,

This is my header and request string.

curl --request POST --url 'https://platform.ringcentral.com/restapi/v1.0/account/~/extension/~/sms' --header 'accept: application/json' --header 'authorization: Bearer SUFEMDFQMDdQQVMwMHxBQUMxaXFvRnNqRjRQSE5yc1pCSTdacldhNjJLZl9wbHRHd3c3Z3R6eHZUZXRmNzFRMmJZOTlRRFdyTnU4a0dDb2N0NF9QWWRPMEVYNENYQjd4dmJsWHJobm5GOTQ4Zi1PTFRIczcycTVONm13em0xVDVFbTd3YkZXRGtIalZ1Qzk1R3Z5cnhkdTRFLVdQLVVtcVBsbzNtTmpTbG43LVpsM3BSb0dZR19MVlo5bGhoU1ZXNEYwVG9taHY3cjI0RVA3UnBoOXpZR1RqSDlLWDJuSFFHSlJjMnF8SHVZRXVRfEEwcDA1RzQ4S3JsaG5CcFViUEJ4SkF8QUE' --header 'content-type: application/json' --data '{"from":{"phoneNumber":"+18035096800"},"to":[{"phoneNumber":"(378) 400-1234"}],"text":"testing"}'


This is the response i recieve.
The error code is 304
{ "errorCode": "FeatureNotAvailable", "message": "Phone number doesn't belong to extension", "errors": [ { "errorCode": "MSG-304", "message": "Phone number doesn't belong to extension" } ] }
Employee
February 7, 2019
Dave,

The phone number you use to send a message from (+18035096800) must belong to authenticated user.
New Participant
May 2, 2019
Hi, Anton Nikitin
I working on app: Should I define as "from number" the number from here: https://prnt.sc/njgern ?