Avoid a race condition in SIP conference calls

cusax-fix
Ingo Bauersachs 15 years ago
parent 5049c1eb30
commit f848fd9364

@ -1287,10 +1287,14 @@ public synchronized void answer()
fireRequestProcessed(invite, ok);
if(sdpOffer != null && sdpOffer.length() > 0)
setState(CallPeerState.CONNECTING_INCOMING_CALL_WITH_MEDIA);
else
setState(CallPeerState.CONNECTING_INCOMING_CALL);
// the ACK to our answer might already be processed before we get here
if(CallPeerState.INCOMING_CALL.equals(getState()))
{
if(sdpOffer != null && sdpOffer.length() > 0)
setState(CallPeerState.CONNECTING_INCOMING_CALL_WITH_MEDIA);
else
setState(CallPeerState.CONNECTING_INCOMING_CALL);
}
}
/**

Loading…
Cancel
Save