summaryrefslogtreecommitdiffstats
path: root/audio/headset.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/headset.c')
-rw-r--r--audio/headset.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/audio/headset.c b/audio/headset.c
index 1a884b65..cef32250 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -252,15 +252,17 @@ static int terminate_call(struct device *device, const char *buf)
AUDIO_HEADSET_INTERFACE, "CallTerminated",
DBUS_TYPE_INVALID);
+ err = headset_send(hs, "\r\nOK\r\n");
+ if (err < 0)
+ return err;
+
if (hs->ring_timer) {
g_source_remove(hs->ring_timer);
hs->ring_timer = 0;
+ /*+CIEV: (callsetup = 0)*/
+ return headset_send(hs, "\r\n+CIEV:3, 0\r\n");
}
- err = headset_send(hs, "\r\nOK\r\n");
- if (err < 0)
- return err;
-
/*+CIEV: (call = 0)*/
return headset_send(hs, "\r\n+CIEV:2, 0\r\n");
}