Skip to main content
Solved

MSG-242 Requested feature is not available

  • January 11, 2021
  • 8 replies
  • 1381 views

Hello, I'm trying to send an SMS on our sandbox account and I'm receiving the following error code MSG-242. From the other posts it looks like you are manually giving sandbox accounts the ability to send SMS. I didn't see any automated way to enable that.

Best answer by PhongVu

did you use this code to detect if the number has the SmsSender feature?

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"){
          // use the record.phoneNumber to send SMS
        }
    }
}


8 replies

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • Answer
  • January 12, 2021

did you use this code to detect if the number has the SmsSender feature?

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"){
          // use the record.phoneNumber to send SMS
        }
    }
}



When I hit that endpoint I only get one record and the only feature it has is "CallerId"


HI @Phong Vu


I am also facing same problem with sandbox number 14242555859.


Please enable. We are already a premuim customer


@Phong Vu

I am also facing same problem with sandbox number 14242555859.

Please enable it.


PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • January 25, 2021

Request created. Please stay tuned


  • New Participant
  • October 20, 2022

HI @Phong Vu


I am also facing same problem with production number .

I am using php curl and postman also.

Please enable. We are already a premuim customer


PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • October 20, 2022

No, you don't face the same problem. All your numbers on the production are shown SMS enabled and the main company number is A2P SMS enabled.

Open a dev support ticket for help. And treat your production phone numbers as private information and don't post them in public forum.


  • New Participant
  • February 13, 2023

Dear @Phong Vu, I am also facing same problem. My sandbox number is +15856234124. Could you please enable Sms service?