diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index f150ca344..ef145c2fd 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -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;