问题
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