From 00856f9353acc8780d1eff32a00336d3db0c7973 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 13 Jul 2019 15:16:41 +0200 Subject: [PATCH] React on cancelled incoming call Signed-off-by: Knut Ahlers --- src/app.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app.vue b/src/app.vue index 6e13540..f287902 100644 --- a/src/app.vue +++ b/src/app.vue @@ -131,6 +131,12 @@ export default { this.announceStatus(`Incoming call from ${conn.parameters.From}...`, false) this.phone.conn = conn this.ringing = true + this.phone.conn.on('disconnect', () => { + this.phone.conn = null + this.ongoingCall = false + this.announceStatus('Call disconnected') + this.ringing = true + }) }) this.phone.device.on('offline', () => { this.announceStatus('Phone disconnected, reconnecting...')