1
0
Fork 0
mirror of https://github.com/Luzifer/browserphone.git synced 2024-11-08 13:50:05 +00:00

React on cancelled incoming call

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-07-13 15:16:41 +02:00
parent 6b70bbb829
commit 00856f9353
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -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...')