How to use Plivo's machine detection when calling from a browser using Browser SDK?

时间:2018-01-23 19:19:15

标签: javascript plivo

I found this document that describes how to use the Machine Detection feature:

https://www.plivo.com/docs/getting-started/machine-detection/

but from what I understand it's for calls made using the Call API.

What about the JavaScript (Browser) SDK? I haven't found how to do it from the browser. There is no parameters related to machine detection in the documentation for <Dial>.

I'm using the Browser SDK to make outbound calls. When Plivo calls my Answer URL I provide an XML with a <Dial> inside to make the actual call. I would like to detect if this call is answered by a machine.

Is it possible? Does somebody have an example?

1 个答案:

答案 0 :(得分:0)

Plivo销售工程师。

您可以使用拨号XML中的ConfirmKey和ConfirmSound来检测呼叫是由人或机器应答的。 ConfirmSound URL可以使用Speak或Play动词。 Here就是一个例子。

请向我们提出support ticket以获得进一步的帮助。