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
Post a Comment