From 647553cd3484eb5b7e0e7225e4bc91b9e441630e Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 23 Oct 2008 18:17:03 +0300 Subject: Fix call hold/unhold behavior --- audio/telephony-maemo.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'audio/telephony-maemo.c') 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); -- cgit