News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
SMS Issue in Sandbox errorCode MSG-242
Tags: sms and text messaging
Apr 5, 2023 at 2:31pm   •   4 replies  •  0 likes
Bot Bot

I am recieving the below error when testing in the API explorer. Any idea what the issue is?


Request: curl --request POST \ --url 'https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/sms' \ 
--header 'accept: application/json' \ 
--header 'authorization: Bearer xxxUFIRQ' \ 
--header 'content-type: application/json' \ 
--data '{"from":{"phoneNumber":"+13236483519"},"text":"hello world","to":[{"phoneNumber":"+15514042223"}]}'
Response:{ 
"errorCode": "FeatureNotAvailable", 
"message": "The requested feature is not available", 
"errors": [ { "errorCode": "MSG-242", "message": "The requested feature is not available" } ]
 }
on Dec 28, 2023 at 7:02am   •  0 likes

Same problem, @Phong Vu could you help me to enable SMS?

Sandbox: +13132462899

3 Answers
answered on Dec 28, 2023 at 7:52am  

Dear @Phong Vu

I am also facing the same problem. I work with the sandbox +13132462899. Could you please enable SMS service?


 0
answered on Apr 6, 2023 at 6:56am  

Dear @Phong Vu, I am also facing same problem. I work with the sandbox +16506950410. Could you please enable Sms service?


 0
on Apr 6, 2023 at 7:34am   •  0 likes

SMS enabled for your number. Please retest.

Next time, please post a new question to avoid bothering other with thread updated notification. Thanks

answered on Apr 5, 2023 at 3:42pm  

SMS enabled for your number. Please retest.

BTW, next time please clean the post by breaking into lines to make it readable. I fixed it this time.


 1
on Dec 28, 2023 at 7:02am   •  0 likes

Same problem, @Phong Vu could you help me to enable SMS?

Sandbox: +13132462899

on Apr 25, 2023 at 12:01pm   •  0 likes

Hello @Phong Vu / @Dmitriy Ivanov

I have now graduated to production and seeing the same error. Do you need to enable something again? thanks.

Request:

{ "from": { "phoneNumber": "+16466502260" }, "to": [ { "phoneNumber": "+15514042223" } ], "text": "Helo World" }


Response:

{ "errorCode": "FeatureNotAvailable", "message": "The requested feature is not available", "errors": [ { "errorCode": "MSG-242", "message": "The requested feature is not available" } ] }

on Apr 25, 2023 at 1:02pm   •  0 likes

Did you read the extension phone number and check if the number has the SmsSender feature?

async function read_extension_phone_number(){
    try {
        var resp = await platform.get("/restapi/v1.0/account/~/extension/~/phone-number")
        var jsonObj = await resp.json()
        for (var record of jsonObj.records){
            for (feature of record.features){
                if (feature == "SmsSender"){
                    console.log(`This phone number ${record.phoneNumber} is SMS enabled`)
                }
            }
        }
    } catch(e) {
        console.log(e.message)
        process.exit(1)
    }
}

If the number does have the SmsSender feature and you still get that error message. Please contact RingCentral customer support.

on Apr 6, 2023 at 9:47am   •  0 likes

thank you!



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us