summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-01-23 13:12:07 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2008-01-23 13:12:07 +0000
commit1cacae6dd9f44d0e403aa29e45eb3d20e7127f68 (patch)
tree043651049f1e7d8f3aa233ad5cb6e5d3adba2406
parent9ae63b37bb909c66a931ee3934af1ad87047f326 (diff)
Fix HFP notification when ringing is canceled
-rw-r--r--audio/headset.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/audio/headset.c b/audio/headset.c
index e655672c..a02f4fef 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -1289,6 +1289,16 @@ static DBusHandlerResult hs_cancel_ringing(DBusConnection *conn,
hs->ring_timer = 0;
done:
+ if (hs->hfp_active) {
+ int err;
+ /*+CIEV: (callsetup = 0)*/
+ err = headset_send(hs, "\r\n+CIEV:3, 0\r\n");
+ if (err < 0) {
+ dbus_message_unref(reply);
+ return error_failed_errno(conn, msg, -err);
+ }
+ }
+
send_message_and_unref(conn, reply);
return DBUS_HANDLER_RESULT_HANDLED;