Browser to browser calls with free account press any key to continue?

落爺英雄遲暮 提交于 2020-01-14 20:06:48

问题


I am trying out twilio using the quick start tutorial. I am doing browser to browser calls. I have followed the tutorial. When I try to make a call it rings and connects. It then plays the "free account" message and asks me to press any key to continue. When I press a key it does nothing for a few seconds and then hangs up without going through to the other browser.

Is this happening because I am on a free account or is there something else I need to do in order for it to register the key press from the browser?


回答1:


Twilio evangelist here.

I can see where this might be confusing and its good feedback. The prompt to press any key is apparently making the assumption that you are calling from an actual phone, which would include a keypad that lets you press any key. Obviously with a simple Twilio Client app there isn't by default a number pad to press, but the JavaScript SDK does include the sendDigits function, which makes it pretty trivial to wire up a button (or some other UI) in your app to send the equivalent of a key press (aka a DTMF tone) to Twilio.

Hope that helps.



来源:https://stackoverflow.com/questions/24274923/browser-to-browser-calls-with-free-account-press-any-key-to-continue

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!