From 1f5cd7758161271e7e7c38e5a7dc78396f5c56b8 Mon Sep 17 00:00:00 2001 From: Matt Porter Date: Sat, 20 May 2017 09:43:18 -0400 Subject: Add support for UI display of phone call duration Adds support to the telephony binding for generating events when a call's state changes to active or disconnected states (when a remote/local party answers or disconnects the call). These events are used to drive a call duration display in the phone app UI. AGL-Bug: SPEC-599 Change-Id: Ib4b0b115ca1d0573a7ae046082627f561f0d8d8a Signed-off-by: Matt Porter --- app/api/Telephony.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/api') diff --git a/app/api/Telephony.qml b/app/api/Telephony.qml index b42af4f..c7d9218 100644 --- a/app/api/Telephony.qml +++ b/app/api/Telephony.qml @@ -65,7 +65,9 @@ WebSocket { callClipColp = data.colp callStatus = "dialing" } else if (event == "telephony/terminatedCall") { - callStatus = "idle" + callStatus = "disconnected" + } else if (event == "telephony/callStateChanged") { + callStatus = data.state } break } -- cgit 1.2.3-korg