question

will-jensen11557 avatar image
will-jensen11557 asked Phong Vu commented

Choose caller id (phone number) for SMS text

Is it possible to use any of the company numbers as the caller id for any of the extensions? Essentially having a many-to-many relationship between extensions and company numbers? I have a requirement to choose an extensions from number on an SMS text based on the recipient (basically making it look like the message is coming from a local area code).


When I choose a company number (not the main number) for an SMS I get the following error:

{


"errorCode" : "FeatureNotAvailable",

"message" : "Phone number doesn't belong to extension",

"errors" : [ {


"errorCode" : "MSG-304",

"message" : "Phone number doesn't belong to extension"

} ]


How can I set things up such that any company number can belong to any extension?

phonerest apierrorscaller id
1 |3000

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

will-jensen11557 avatar image
will-jensen11557 answered
Code snippet for example:

await userExtension.Sms().Post(new

                    {

                        to = new[] {new CallerInfo {phoneNumber = textMessage.ToPhoneNumber}},

                        from = new CallerInfo {phoneNumber = "any_company_number_here"},

                        text = textMessage.Body

                    });

(the userExtension is authenticated as the user extension number and their password)
1 |3000

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

anton-nikitin avatar image
anton-nikitin answered
Will,

the system allows user to send SMS only from a number where this user can receive a reply back. This is the reason why you can only send from a number which is assigned to your extension. The only exception is Company Operator extension whose mailbox can receive messages sent to company numbers. So, if a user is logged in as a company operator it is possible to send SMS from company numbers on his/her behalf.
1 |3000

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

will-jensen11557 avatar image
will-jensen11557 answered
Thanks for the response. If the user sends from the company operator do any responses from the recipient get routed back to user's extension?
1 |3000

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

anton-nikitin avatar image
anton-nikitin answered
The user does not send from company operator. The user IS company operator. It is just an assignment. By default, extension 101 user is designated as an operator. And this user can send from company numbers and receive replies. But you can choose any other user extension and configure the system so that this user would act as an operator. But don't forget that all message types (voicemails, faxes, SMS, MMS) which are sent to company numbers will get to this extension's mailbox.
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
Hi Will,

When using the caller Id, we refer to phone calls or ring out calls only. For SMS we don't call it caller ID. So in your case for sending SMS, the answer is no, you cannot send SMS from any number which does not belong to that extension.
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
You can find useful information about the SMS API from this blog:
https://medium.com/ringcentral-developers/sms-apis-tips-tricks-and-quirks-982d2f705ae9
1 |3000

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

Patrick Daughtrey avatar image
Patrick Daughtrey answered Phong Vu commented

We really need to be able to put our main company number on outbound test messages so the recipient knows who we are and when they respond it goes to the operator ext. In my case several of us get the text as an email so it reaches the right person. I'm missing responses with the current set-up. Also customers start calling my extension phone number instead of the main number. This is a real issue.

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 ·

In this case, the only way to achieve is to assign the number to the receptionist. And implement a password flow app. Then you can create your own rules/logics to allow user extensions to run the app and send SMS from that number.

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