question

Paul Kornetsky avatar image
Paul Kornetsky asked Phong Vu answered

I'm getting error message "MSG-252" FeatureNotAvailable

{

"errorCode" : "FeatureNotAvailable",

"message" : "The requested feature is not available",

"errors" : [ {

"errorCode" : "MSG-242",

"message" : "The requested feature is not available"

} ]

}
works well in sandbox mode, but when I changed the mode to production, this error began to appear

api sms
1 |1000

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

Phong Vu avatar image
Phong Vu answered Paul Kornetsky commented

What API did you call?

1 comment
1 |1000

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

Phong Vu avatar image
Phong Vu answered

Use this piece of code to check if the number you use to send SMS has SMS feature. If the number has the SmsSender then something is wrong with the account/extension setting => open a ticket to devsupport@ringcentral.com with your account/extension info. Otherwise, choose a number which has the SMS feature

function check_extensions_phone_number() {
  platform.get('/account/~/extension/~/phone-number')
    .then(function(resp){
      var jsonObj = resp.json()
      for (var record of jsonObj.records){
        if (record.usageType == "DirectNumber"){
          console.log("DirectNumber Found. Check feature")
          console.log(record.features)
          console.log(record.phoneNumber)
          for (var feature of record.features){
            if (feature == "SmsSender"){
              console.log("This number supports SMS: " + record.phoneNumber)
            }
          }
        }
      }
    })
    .catch(function(resp){
      console.log("Something went wrong.")
    })
}
1 |1000

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.