prevent receiving an incoming call when another is in the IncomingEarlyMedia state.

This commit is contained in:
Simon Morlat 2014-07-01 22:49:51 +02:00
parent a21d7d863d
commit b214e21ffe

View file

@ -220,6 +220,7 @@ static bool_t already_a_call_pending(LinphoneCore *lc){
for(elem=lc->calls;elem!=NULL;elem=elem->next){
LinphoneCall *call=(LinphoneCall*)elem->data;
if (call->state==LinphoneCallIncomingReceived
|| call->state==LinphoneCallIncomingEarlyMedia
|| call->state==LinphoneCallOutgoingInit
|| call->state==LinphoneCallOutgoingProgress
|| call->state==LinphoneCallOutgoingEarlyMedia