]> sjero.net Git - linphone/commitdiff
fix function linphone_core_inc_invite_pending
authorJehan Monnier <jehan.monnier@linphone.org>
Mon, 24 Jan 2011 09:55:52 +0000 (10:55 +0100)
committerJehan Monnier <jehan.monnier@linphone.org>
Mon, 24 Jan 2011 09:55:52 +0000 (10:55 +0100)
coreapi/linphonecore.c

index f150ca344502e7b6c67e18c868ee403272212956..ef145c2fd35af1d304afcc5129104ed87b810f73 100644 (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;