summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-10-23 18:17:03 +0300
committerJohan Hedberg <johan.hedberg@nokia.com>2008-12-08 16:10:57 +0200
commit647553cd3484eb5b7e0e7225e4bc91b9e441630e (patch)
treeea7139881487ca016c06fbf1d7724b2a779ed56f /audio
parent28ebefc71b70611380323749d995ff0b4ab7aa8a (diff)
Fix call hold/unhold behavior
Diffstat (limited to 'audio')
-rw-r--r--audio/telephony-maemo.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/audio/telephony-maemo.c b/audio/telephony-maemo.c
index 971f5a59..2a4b6502 100644
--- a/audio/telephony-maemo.c
+++ b/audio/telephony-maemo.c
@@ -640,9 +640,8 @@ void telephony_call_hold_req(void *telephony_device, const char *cmd)
err = split_call(call);
break;
}
- call = find_call_with_status(CSD_CALL_STATUS_ACTIVE);
- if (call)
- err = hold_call(call);
+ foreach_call_with_status(CSD_CALL_STATUS_ACTIVE, hold_call);
+ foreach_call_with_status(CSD_CALL_STATUS_HOLD, unhold_call);
break;
case '3':
call = find_call_with_status(CSD_CALL_STATUS_HOLD);