Twilio - Pass custom parameters to JS client, so my client knows who's calling

北城以北 提交于 2019-12-11 05:29:15

问题


I have a web app that accepts incoming phone calls at a twilio number. The calls are routed through the webserver, where details on the incoming caller can be retrieved. I'm trying to pass the caller name and additional details to the agent client in javascript, BEFORE the incoming call is accepted.

After 2 days of trying, I haven't found any way to do this. I know I can pass the info back to the client through a websocket in the same server method that creates the TWiML, but that seems like a poor implementation.

Can I simply add custom parameters to the connection object the client sees.

来源:https://stackoverflow.com/questions/51162862/twilio-pass-custom-parameters-to-js-client-so-my-client-knows-whos-calling

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