Fix: Ignore repeated CCWA notify if have

Some phone like iPhone repeats CCWA notify. So we need to ignore
it when we already have waiting call.
This commit is contained in:
Zhenhua Zhang 2009-11-16 22:12:43 +08:00 committed by Denis Kenzior
parent ea29ea9bd5
commit 2cbb307013
1 changed files with 6 additions and 0 deletions

View File

@ -465,6 +465,12 @@ static void ccwa_notify(GAtResult *result, gpointer user_data)
dump_response("ccwa_notify", TRUE, result);
/* CCWA can repeat, ignore if we already have an waiting call */
if (g_slist_find_custom(vd->calls,
GINT_TO_POINTER(CALL_STATUS_WAITING),
at_util_call_compare_by_status))
return;
g_at_result_iter_init(&iter, result);
if (!g_at_result_iter_next(&iter, "+CCWA:"))