src/net/java/sip/communicator/service/protocol/media/MediaAwareCall.java
/**
     * Adds <tt>callPeer</tt> to the list of peers in this call.
     * If the call peer is already included in the call, the method has
     * no effect.
     *
     * @param callPeer the new <tt>CallPeer</tt>
     */
Adds callPeer to the list of peers in this call.
If the call peer is already included in the call, the method has
no effect.

@param callPeer the new CallPeer
Adds callPeer to the list of peers in this call . If the call peer is already included in the call the method has no effect . @param callPeer the new CallPeer
protected void addCallPeer(T callPeer)
    {
        if (!doAddCallPeer(callPeer))
            return;
        callPeer.addCallPeerListener(this);
        synchronized(localUserAudioLevelListenersSyncRoot)
        {
            /*
             * If there's someone listening for audio level events, then they'd
             * also like to know about the new peer. Make sure the first element
             * is always the one to listen for local audio events.
             */
            List<T> callPeers = getCallPeerList();
            if ((callPeers.size() == 1) && callPeers.get(0).equals(callPeer))
            {
                callPeer.getMediaHandler().setLocalUserAudioLevelListener(
                        localAudioLevelDelegator);
            }
        }
        fireCallPeerEvent(callPeer, CallPeerEvent.CALL_PEER_ADDED);
    }
protected void addCallPeer ( T callPeer ) { if ( ! doAddCallPeer ( callPeer ) ) return ; callPeer . addCallPeerListener ( this ) ; synchronized ( localUserAudioLevelListenersSyncRoot ) { /*
             * If there's someone listening for audio level events, then they'd
             * also like to know about the new peer. Make sure the first element
             * is always the one to listen for local audio events.
             */ List < T > callPeers = getCallPeerList ( ) ; if ( ( callPeers . size ( ) == 1 ) && callPeers . get ( 0 ) . equals ( callPeer ) ) { callPeer . getMediaHandler ( ) . setLocalUserAudioLevelListener ( localAudioLevelDelegator ) ; } } fireCallPeerEvent ( callPeer , CallPeerEvent . CALL_PEER_ADDED ) ; }
Adds <tt>callPeer</tt> to the list of peers in this call.
Adds <tt > callPeer< / tt > to the list of peers in this call .