src/net/java/sip/communicator/service/protocol/SingleCallInProgressPolicy.java
/**
     * Registers a specific <tt>Call</tt> with this policy in order to have the
     * rules of the latter apply to the former.
     *
     * @param call the <tt>Call</tt> to register with this policy in order to
     * have the rules of the latter apply to the former
     */
Registers a specific Call with this policy in order to have the
rules of the latter apply to the former.

@param call the Call to register with this policy in order to
have the rules of the latter apply to the former
Registers a specific Call with this policy in order to have the rules of the latter apply to the former . @param call the Call to register with this policy in order to have the rules of the latter apply to the former
private void addCallListener(Call call)
    {
        if(logger.isTraceEnabled())
        {
            logger.trace("Add call change listener");
        }
        synchronized (calls)
        {
            if (!calls.contains(call))
            {
                CallState callState = call.getCallState();
                if ((callState != null)
                        && !callState.equals(CallState.CALL_ENDED))
                {
                    calls.add(call);
                }
            }
        }
        call.addCallChangeListener(listener);
    }
private void addCallListener ( Call call ) { if ( logger . isTraceEnabled ( ) ) { logger . trace ( "Add call change listener" ) ; } synchronized ( calls ) { if ( ! calls . contains ( call ) ) { CallState callState = call . getCallState ( ) ; if ( ( callState != null ) && ! callState . equals ( CallState . CALL_ENDED ) ) { calls . add ( call ) ; } } } call . addCallChangeListener ( listener ) ; }
Registers a specific <tt>Call</tt> with this policy in order to have the
 rules of the latter apply to the former.
Registers a specific <tt > Call< / tt > with this policy in order to have the rules of the latter apply to the former .