My Twilio js client application allows agents to call each other in a browser. The call works, and after accepting the call, both agents can then end the call through Twilio.Device.disconnectAll() . This causes a disconnect callback on both sides, allowing the user interface to be updated.
Canceling a call by the caller correctly triggers the canceled event on the dialed side, again allowing the user interface to be updated.
However, I cannot update the user interface on the caller side if the dialed agent does not want to receive the call. I tried the Device.disconnectAll() and Connection.reject() , ignore() and disconnect() methods, but it does not raise any events / callbacks on both sides, and the call continues to ring.
I guess Iβm missing a step somewhere. Any advice would be much appreciated.
source share