From 9a4a6fad122a92880291b0e90c6aed2255b79f30 Mon Sep 17 00:00:00 2001 From: Dmitriy Paliy Date: Thu, 13 Oct 2011 13:25:51 +0300 Subject: [PATCH] Fix +CLCC in maemo6 during CSD_CALL_STATUS_COMING This fixes the same issue as in 8a6119ea1c685fc61419ee444a5967596f524c1c but for CSD_CALL_STATUS_COMING. Call status change sequence in csd is IDLE to COMING, COMING to PROCEEDING, and PROCEEDING to WAITING. Returned 'state of the call' value after CSD_CALL_STATUS_COMING, as well as after CSD_CALL_STATUS_PROCEEDING, in +CLCC shall be 5 (waiting, MT call) instead of 4 (incoming, MT call) in maemo6 telephony driver for the second incoming call. --- audio/telephony-maemo6.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/audio/telephony-maemo6.c b/audio/telephony-maemo6.c index 191041088..fb5901301 100644 --- a/audio/telephony-maemo6.c +++ b/audio/telephony-maemo6.c @@ -943,6 +943,9 @@ static int csd_status_to_hfp(struct csd_call *call) return CALL_STATUS_INCOMING; case CSD_CALL_STATUS_COMING: + if (g_slist_length(active_calls) > 0) + return CALL_STATUS_WAITING; + return CALL_STATUS_INCOMING; case CSD_CALL_STATUS_MO_ALERTING: return CALL_STATUS_ALERTING; -- 2.47.3