src/net/java/sip/communicator/service/protocol/media/MediaAwareCall.java
/**
     * Verifies whether the call peer has entered a state.
     *
     * @param evt The <tt>CallPeerChangeEvent</tt> instance containing
     * the source event as well as its previous and its new status.
     */
Verifies whether the call peer has entered a state.
@param evt The CallPeerChangeEvent instance containing
the source event as well as its previous and its new status.
Verifies whether the call peer has entered a state . @param evt The CallPeerChangeEvent instance containing the source event as well as its previous and its new status .
public void peerStateChanged(CallPeerChangeEvent evt)
    {
        Object newState = evt.getNewValue();
        if (CallPeerState.DISCONNECTED.equals(newState)
                || CallPeerState.FAILED.equals(newState))
        {
            removeCallPeer(evt);
        }
        else if (CallPeerState.CONNECTED.equals(newState)
                || CallPeerState.CONNECTING_WITH_EARLY_MEDIA.equals(newState))
        {
            setCallState(CallState.CALL_IN_PROGRESS);
        }
        else if (CallPeerState.REFERRED.equals(newState))
        {
            setCallState(CallState.CALL_REFERRED);
        }
    }
public void peerStateChanged ( CallPeerChangeEvent evt ) { Object newState = evt . getNewValue ( ) ; if ( CallPeerState . DISCONNECTED . equals ( newState ) || CallPeerState . FAILED . equals ( newState ) ) { removeCallPeer ( evt ) ; } else if ( CallPeerState . CONNECTED . equals ( newState ) || CallPeerState . CONNECTING_WITH_EARLY_MEDIA . equals ( newState ) ) { setCallState ( CallState . CALL_IN_PROGRESS ) ; } else if ( CallPeerState . REFERRED . equals ( newState ) ) { setCallState ( CallState . CALL_REFERRED ) ; } }
Verifies whether the call peer has entered a state.
Verifies whether the call peer has entered a state .