Im trying to find a way to return information when placing an outgoing call through the twilio softphone in the browser.
When I place an outgoing call my application invites the remote party to a conference room throught the rest api, and the agent is invited to that same conference room through the returned twiml, so its not really a direct call.
I need a way to let the person in the soft phone know the reason why the call got disconnected like because the remote was busy, his number was disconnected, its a non US number, etc.
I dont want to save temp messages and retrieve them from the server to the softphone through a heartbeat or similar, so I want to know if there is a way to pass this information trough twilio itself or what other option I could use.
I'm using php and https://static.twilio.com/libs/twiliojs/1.2/twilio.min.js