Fix: Handle callsetup=0 when no waiting or dialing call

When call=1 and callsetup=0, if no waiting or dialing call, the call
is active and no need to notify status change.
This commit is contained in:
Zhenhua Zhang 2009-11-16 22:10:54 +08:00 committed by Denis Kenzior
parent f6d1397753
commit 5e1067b8a2
1 changed files with 5 additions and 0 deletions

View File

@ -776,6 +776,11 @@ static void ciev_callsetup_notify(struct ofono_voicecall *vc,
goto out;
}
/* If call=1 and no call is waiting or dialing, the call
* is active. */
if (waiting == NULL && dialing == NULL)
goto out;
/*
* If call=1, in the waiting case we have to poll, since we
* have no idea whether a waiting call gave up or we accepted