fix function linphone_core_inc_invite_pending

This commit is contained in:
Jehan Monnier 2011-01-24 10:55:52 +01:00
parent 744739d6f6
commit 0a4d1c9248

View file

@ -2155,7 +2155,8 @@ bool_t linphone_core_inc_invite_pending(LinphoneCore*lc){
LinphoneCall *call = linphone_core_get_current_call(lc);
if(call != NULL)
{
if(call->dir==LinphoneCallIncoming)
if(call->dir==LinphoneCallIncoming
&& (call->state == LinphoneCallIncomingReceived || call->state == LinphoneCallIncomingEarlyMedia))
return TRUE;
}
return FALSE;