src/net/java/sip/communicator/service/protocol/SingleCallInProgressPolicy.java
/**
         * Determines whether there is at least one existing <tt>Call</tt> which
         * is currently in progress i.e. determines whether the local user is
         * currently on the phone.
         *
         * @return <tt>true</tt> if there is at least one existing <tt>Call</tt>
         * which is currently in progress i.e. if the local user is currently on
         * the phone; otherwise, <tt>false</tt>
         */
Determines whether there is at least one existing Call which
is currently in progress i.e. determines whether the local user is
currently on the phone.

@return true if there is at least one existing Call
which is currently in progress i.e. if the local user is currently on
the phone; otherwise, false
Determines whether there is at least one existing Call which is currently in progress i . e . determines whether the local user is currently on the phone . @return true if there is at least one existing Call which is currently in progress i . e . if the local user is currently on the phone ; otherwise false
private boolean isOnThePhone()
        {
            synchronized (calls)
            {
                for (Call call : calls)
                {
                    if (CallState.CALL_IN_PROGRESS.equals(call.getCallState()))
                        return true;
                }
            }
            return false;
        }
private boolean isOnThePhone ( ) { synchronized ( calls ) { for ( Call call : calls ) { if ( CallState . CALL_IN_PROGRESS . equals ( call . getCallState ( ) ) ) return true ; } } return false ; }
Determines whether there is at least one existing <tt>Call</tt> which
 is currently in progress i.e.
Determines whether there is at least one existing <tt > Call< / tt > which is currently in progress i . e .