简体   繁体   English

在RingCentral中获取来电者信息

[英]Get caller information in RingCentral

I would like to get caller name and other details for incoming call in RingCentral. 我想在RingCentral中获得来电者的姓名和其他详细信息。 Till now, I am able to get incoming call details using DetailedTelephonyState event but this does not provide the caller name it only gives the calling number. 到现在为止,我可以使用DetailedTelephonyState事件获取来电详细信息,但是它不提供呼叫者姓名,仅提供呼叫号码。

Thanks in advance... 提前致谢...

This information isn't in the event at the moment. 此信息目前不在活动中。 You can see the definition in the OpenAPI 2.0 spec here in the ActiveCallInfo definition which is included in the DetailedExtensionPresenceWithSIPEvent definitio. 你可以在这里看到的定义中的OpenAPI 2.0规范在ActiveCallInfo其中包括在定义DetailedExtensionPresenceWithSIPEvent definitio。 I've included the relevant excerpt below. 我在下面列出了相关摘录。

If you want this information in real-time, you may need to do a lookup via (a) user's RingCentral personal address book, (b) account's RingCentral company address book, (c) your CRM/helpdesk app, or (d) a third-party Caller-Id (CNAM) API. 如果您想实时获取此信息,则可能需要通过(a)用户的RingCentral个人通讯录,(b)帐户的RingCentral公司通讯录,(c)您的CRM /帮助台应用程序或(d)进行查找第三方呼叫者ID(CNAM)API。

To see if we can add this to the event as an enhancement, please contact me at my email address on my profile page. 要查看是否可以将其作为增强功能添加到活动中,请通过我的个人资料页面上的电子邮件地址与我联系。

ActiveCallInfo Definition 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"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM