繁体   English   中英

Vonage语音API

[英]Vonage voice API

我们使用 Vonage 语音 API 构建了一个应用程序,其中在网页上接收呼入电话。 但是,我们没有找到从后端获取和显示来电显示/来电号码到 web 页面的方法。 任何人对上述问题的任何帮助将不胜感激提前谢谢您

为了让我们(在 Vonage)为您提供帮助,您能否让我们知道您正在使用什么堆栈以便在这里找到合适的专家? 即你使用nodejs,Ruby,Python,PHP ZF20E3C5E54C3AB3D376DAZF666

此链接可能对您有用: https://developer.vonage.com/voice/voice-api/webhook-reference

basically you need to configure the answer web hook specifing the url of your server and the http verb (POST or GET), so evey time you are gonna received a call, your back end is gonna be notified (asking you from the ncco).

从该文档中, from参数将是调用者的号码(如果您使用的是post,则在正文中,如果您使用get,则在url的查询参数中)。

您可以将其保存在数据库中并在需要时检索它。

但如果您只需要在浏览器上显示来电号码,则可能不需要。

可能您的代码如下所示: https://github.com/nexmo-community/client-sdk-tutorials/blob/main/phone-to-app-js/client_js.html#L25

member:call监听器的第二个参数是nxmCall 这应该有一个from属性,其中包含您感兴趣的信息

(更多信息: https://developer.vonage.com/sdk/stitch/javascript/Application.html#event:member:call

暂无
暂无

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

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