RingCentral Main Company Number SMS `Phone number doesn't belong to extension`错误

RingCentral Main Company Number SMS `Phone number doesn't belong to extension` error

我尝试发送短信并将 from 列为我们的主要公司号码,但发不出去。根据下面的错误说 Phone number doesn't belong to extension。我用于 运行 我的 API 通话的 RC 帐户没有分配 phone line/number。

我是否必须使用与 from phone 号码匹配的帐户登录?

{
  "errorCode": "FeatureNotAvailable",
  "message":  "Phone number doesn't belong to extension",
  "errors": [
    {
      "errorCode": "MSG-304",
      "message": "Phone number doesn't belong to extension"
    }
  ]
}

您可以使用以下方法从主要公司号码为单个用户或多个用户发送短信:

场景 1:使用单个用户发送和响应

In-order to send SMS from the main company number:

  1. Set the Operator Extension
  2. Authorize using the Operator Extension
  3. Send SMS using the Main Company Number

Operator Extension: When a caller presses 0 (zero) or does not enter an extension number, the system connects the call to the designated operator extension by default. An Administrator can configure the operator extension to have different call handling rules.

场景 2:使用多个用户发送和响应

In-order to send and SMS from Main Company Number and respond to it using multiple users, set up a call-queue and configure the operator extension to point to the Call Queue.

  1. Create a Call-Queue and assign a password to it.
  2. Set the Operator Extension to point to Call Queue.
  3. Authorize using the Operator Extension ( Call Queue )
  4. Send SMS using the Main Company Number

此处提供更多信息:

https://devcommunity.ringcentral.com/ringcentraldev/topics/how-to-send-sms-from-the-main-company-number

要验证您的用户分机可以从哪些号码发送短信,请调用以下端点:

GET /restapi/v1.0/account/{accountId}/extension/{extensionId}/phone-number

这将 return 一个 phone 数字的数组。检查 features 属性。可以使用的将具有SMSSender and/or MMSSender 功能。有关这方面的更多信息,请参阅开发人员指南:

http://ringcentral-api-docs.readthedocs.io/en/latest/messages_sms-and-pager/#listing-valid-sms-sending-numbers