在RingCentral中获取呼叫者信息

时间:2018-06-06 07:42:34

标签: events ringcentral caller-id

我想获得来电的来电者姓名和其他详细信息 RingCentral。到目前为止,我可以使用DetailedTelephonyState事件获取来电详细信息,但这不提供它只给出主叫号码的来电者姓名。

提前致谢...

1 个答案:

答案 0 :(得分:0)

此信息目前尚无此信息。您可以在ActiveCallInfo定义中查看OpenAPI 2.0规范中的定义,该定义包含在DetailedExtensionPresenceWithSIPEvent definitio中。我已经在下面列出了相关的摘录。

如果您想要实时获取此信息,可能需要通过(a)用户的RingCentral个人通讯录,(b)帐户的RingCentral公司地址簿进行查询,(c)您的CRM /帮助台应用程序,或(d)第三方Caller-Id(CNAM)API。

要查看我们是否可以将此作为增强功能添加到活动中,请通过我的个人资料页面上的电子邮件地址与我联系。

ActiveCallInfo定义

ActiveCallInfo:
  type: "object"
  properties:
    id:
      type: "string"
      description: "Internal identifier of a call"
    direction:
      type: "string"
      description: "Call direction"
      enum:
        - "Inbound"
        - "Outbound"
    from:
      type: "string"
      description: "Phone number or extension number of a caller"
    to:
      type: "string"
      description: "Phone number or extension number of a callee"
    telephonyStatus:
      type: "string"
      description: "Telephony call status"
      enum:
        - "NoCall"
        - "CallConnected"
        - "Ringing"
        - "OnHold"
        - "ParkedCall"
    sipData:
      $ref: "#/definitions/DetailedCallInfo"
    sessionId:
      type: "string"
      description: "Internal identifier of a call session"
    terminationType:
      type: "string"
      description: "Type of call termination. Supported for calls in 'NoCall' status. If the returned termination type is 'intermediate' it means the call is not actually ended, the connection is established on one of the devices"
      enum:
        - "final"