From 5ad6d2a9459da4a659fe5e88c5899bd17606caeb Mon Sep 17 00:00:00 2001 From: Stepan Salenikovich <stepan.salenikovich@savoirfairelinux.com> Date: Wed, 7 Oct 2015 13:05:13 -0400 Subject: [PATCH] call state: detect when call is hungup during hold If the connection state changes to disconnected while a call is on hold, it should still emit a stateChanged signal with HUNGUP as the new state. Issue: #81544 Change-Id: I866bbb9f9cf666bc5d8b2113ab69b01a9ec40fbd --- src/call.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/call.cpp b/src/call.cpp index 48d6015e99..1b4433c779 100644 --- a/src/call.cpp +++ b/src/call.cpp @@ -196,6 +196,8 @@ Call::getStateStr() const } case CallState::HOLD: + if(getConnectionState() == ConnectionState::DISCONNECTED) + return StateEvent::HUNGUP; return StateEvent::HOLD; case CallState::BUSY: -- GitLab