question

Anna Brock avatar image
Anna Brock asked Anna Brock commented

Quick Start SMS -- SendingFailed

I followed the instructions for the Quick Start App to send SMS in Python. Using the Sandbox credentials, the sms queues, but isn't delivered. I have confirmed that number has the 'SmsSender' feature. I have tried sending an sms to two personal mobile numbers as well as another RingCentral number that I know is able to send/receive sms. The status printed back is 'Queued'; when I check the messageStatus, they all show 'SendingFailed.' I'm not sure what I'm missing! Any help would be appreciated.

After the phone number info, the typical message info is as below:

{
   "type":"SMS",
   "creationTime":"2021-07-01T17:38:30.000Z",
   "readStatus":"Read",
   "priority":"Normal",
   "attachments":[
      {
         "id":9819398004,
         "uri":"https://platform.devtest.ringcentral.com/restapi/v1.0/account/299110004/extension/299110004/message-store/9819398004/content/9819398004",
         "type":"Text",
         "contentType":"text/plain"
      }
   ],
   "direction":"Outbound",
   "availability":"Alive",
   "subject":"Test SMS using a RingCentral Developer account - Hallo World.",
   "messageStatus":"SendingFailed",
   "smsSendingAttemptsCount":1,
   "conversationId":3060223407456103798,
   "conversation":{
      "id":"3060223407456103798",
      "uri":"https://platform.devtest.ringcentral.com/restapi/v1.0/conversation/3060223407456103798"
   }
}
sandbox
1 |1500 characters needed characters left characters exceeded

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

Can you send a text message from your mobile number to the recipient number to make sure the recipient number is valid. If that works, can you login your sandbox account, add a direct number to your extension, and send a text message from the direct number (instead of the main company number).

Let me know

1 |1500 characters needed characters left characters exceeded

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

Anna Brock avatar image
Anna Brock answered Anna Brock commented

Thanks for your reply, @Phong Vu. I added a direct number to the sandbox account extension, and that seems to have done it! Do you happen to know if sending a text from a main company number is also an issue in production environments?

2 comments
1 |1500 characters needed characters left characters exceeded

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

It should not be a problem at all even for sandbox account. If the main company number is SMS enabled, the assigned extension (via IVR settings) should be able to send text messages from the main company number. I am not sure yet what could be wrong with your main company number/settings. Can you do a quick test now to send text message from that number?

0 Likes 0 ·
Anna Brock avatar image Anna Brock Phong Vu ♦♦ ·

Hello @Phong Vu. I just got the chance to test sending from the sandbox main number. It seems to be working now. Thanks for your help!

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