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:
parent
6b70bbb829
commit
00856f9353
1 changed files with 6 additions and 0 deletions
|
@ -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 a new issue