summaryrefslogtreecommitdiffstats
path: root/audio/telephony-dummy.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-09-05 12:49:39 +0300
committerJohan Hedberg <johan.hedberg@nokia.com>2008-09-05 12:49:39 +0300
commit624760ab4e7eb0480aea751ceb1876e7a846f67a (patch)
tree1d5ecb42d3ca1a9fb582ca2740ca3b82c507731f /audio/telephony-dummy.c
parent1b971b060ba37714d970089e978fa720a2c9326c (diff)
Implement telephony plugin support for terminate call (AT+CHUP)
Diffstat (limited to 'audio/telephony-dummy.c')
-rw-r--r--audio/telephony-dummy.c10
1 files changed, 10 insertions, 0 deletions
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;