src/net/java/sip/communicator/service/protocol/AbstractCallPeer.java
/**
     * Registers the <tt>listener</tt> to the list of listeners that would be
     * receiving CallPeerEvents.
     *
     * @param listener a listener instance to register with this peer.
     */
Registers the listener to the list of listeners that would be
receiving CallPeerEvents.

@param listener a listener instance to register with this peer.
Registers the listener to the list of listeners that would be receiving CallPeerEvents . @param listener a listener instance to register with this peer .
public void addCallPeerListener(CallPeerListener listener)
    {
        if (listener == null)
            return;
        synchronized(callPeerListeners)
        {
            if (!callPeerListeners.contains(listener))
                callPeerListeners.add(listener);
        }
    }
public void addCallPeerListener ( CallPeerListener listener ) { if ( listener == null ) return ; synchronized ( callPeerListeners ) { if ( ! callPeerListeners . contains ( listener ) ) callPeerListeners . add ( listener ) ; } }
Registers the <tt>listener</tt> to the list of listeners that would be
 receiving CallPeerEvents.
Registers the <tt > listener< / tt > to the list of listeners that would be receiving CallPeerEvents .