javascript - Phone hangups and client realises -


i'm using twilio api make calls browser phones , have 1 question? can client realize when user hangups his/her phone, raising event , changing in view js?

i'm trying implement single user-friendly call/hangup modal make calls using twilio js library.

you can register event listener on twilio connection object achieve that:

var connection = twilio.device.connect();  connection.disconnect(function(conn) {   console.log("the call has ended"); }); 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -