From 624760ab4e7eb0480aea751ceb1876e7a846f67a Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 5 Sep 2008 12:49:39 +0300 Subject: Implement telephony plugin support for terminate call (AT+CHUP) --- audio/telephony-dummy.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'audio/telephony-dummy.c') diff --git a/audio/telephony-dummy.c b/audio/telephony-dummy.c index 46637b95..f71f65f6 100644 --- a/audio/telephony-dummy.c +++ b/audio/telephony-dummy.c @@ -79,6 +79,16 @@ int telephony_last_dialed_number(void) return 0; } +int telephony_terminate_call(void) +{ + if (telephony_get_indicator(dummy_indicators, "callsetup" > 0)) + telephony_update_indicator(dummy_indicators, "callsetup", 0); + else + telephony_update_indicator(dummy_indicators, "call", 0); + + return 0; +} + int telephony_init(void) { uint32_t features = 0; -- cgit