question

Paul Kornetsky avatar image
Paul Kornetsky asked Phong Vu commented

Why am I getting the 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

rest api
1 |3000

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 |3000

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 support ticket with your account/extension info. Otherwise, choose a number that 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 |3000

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

Khaled Ben hassine avatar image
Khaled Ben hassine answered Phong Vu commented

Still can't understand the logic behind all your answers, sometimes you point the user to the dev team and sometimes you provide them with a piece of code to check is they have access to some specific options ....

It will make sense if you put this function in your GUI interface right ?

1 comment
1 |3000

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 ♦♦ commented ·

Within this forum, I would help as much as I can w/o looking into your RingCentral production account details; The task that requires more investigating time and revealing some sensitive information about your account that I can't ask you in this public forum.

0 Likes 0 ·

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys