From 3a208ed9a418f02b4938f447af04666593cda410 Mon Sep 17 00:00:00 2001 From: Matt Porter Date: Fri, 19 May 2017 14:55:36 -0400 Subject: Add support for answering calls to the telephony binding and UI Adds an answer verb and associated incoming call lifecycle management to the telephony binding. Leverages the binding answer support to activate the call answer button when the binding reports that we are in an incoming call state. Once the incoming call is answered, the ring tone is deactivated. AGL-Bug: SPEC-600 Change-Id: I4f2db2d248cfd0f4945fc17d450e9b691061cc9e Signed-off-by: Matt Porter --- telephony-binding/gdbus/ofono_voicecall.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'telephony-binding/gdbus/ofono_voicecall.c') diff --git a/telephony-binding/gdbus/ofono_voicecall.c b/telephony-binding/gdbus/ofono_voicecall.c index b602c89..de6db2f 100644 --- a/telephony-binding/gdbus/ofono_voicecall.c +++ b/telephony-binding/gdbus/ofono_voicecall.c @@ -34,3 +34,10 @@ void ofono_voicecall_hangup(OrgOfonoVoiceCall *voice_call) org_ofono_voice_call_call_hangup_sync(voice_call, NULL, &error); } + +void ofono_voicecall_answer(OrgOfonoVoiceCall *voice_call) +{ + GError *error = NULL; + + org_ofono_voice_call_call_answer_sync(voice_call, NULL, &error); +} -- cgit 1.2.3-korg