mirror of
https://github.com/Luzifer/browserphone.git
synced 2024-09-18 22:52:57 +00:00
React on cancelled incoming call
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
6b70bbb829
commit
00856f9353
@ -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...')
|
||||
|
Loading…
Reference in New Issue
Block a user