src/net/java/sip/communicator/service/protocol/media/AbstractOperationSetBasicTelephony.java
/**
     * Creates and dispatches a <tt>CallEvent</tt> notifying registered
     * listeners that an event with id <tt>eventID</tt> has occurred on
     * <tt>sourceCall</tt>.
     *
     * @param event the event to dispatch
     */
Creates and dispatches a CallEvent notifying registered
listeners that an event with id eventID has occurred on
sourceCall.

@param event the event to dispatch
Creates and dispatches a CallEvent notifying registered listeners that an event with id eventID has occurred on sourceCall . @param event the event to dispatch
public void fireCallEvent(CallEvent event)
    {
        List<CallListener> listeners;
        synchronized (callListeners)
        {
            listeners = new ArrayList<CallListener>(callListeners);
        }
        if (logger.isDebugEnabled())
        {
            logger.debug(
                    "Dispatching a CallEvent to "
                        + listeners.size()
                        + " listeners. The event is: "
                        + event);
        }
        for (CallListener listener : listeners)
        {
            if (logger.isDebugEnabled())
                logger.debug(
                    "Dispatching a CallEvent to "
                        + listener.getClass() + " . The event is: "+ event);
            switch (event.getEventID())
            {
            case CallEvent.CALL_INITIATED:
                listener.outgoingCallCreated(event);
                break;
            case CallEvent.CALL_RECEIVED:
                listener.incomingCallReceived(event);
                break;
            case CallEvent.CALL_ENDED:
                listener.callEnded(event);
                break;
            }
        }
    }
public void fireCallEvent ( CallEvent event ) { List < CallListener > listeners ; synchronized ( callListeners ) { listeners = new ArrayList < CallListener > ( callListeners ) ; } if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Dispatching a CallEvent to " + listeners . size ( ) + " listeners. The event is: " + event ) ; } for ( CallListener listener : listeners ) { if ( logger . isDebugEnabled ( ) ) logger . debug ( "Dispatching a CallEvent to " + listener . getClass ( ) + " . The event is: " + event ) ; switch ( event . getEventID ( ) ) { case CallEvent . CALL_INITIATED : listener . outgoingCallCreated ( event ) ; break ; case CallEvent . CALL_RECEIVED : listener . incomingCallReceived ( event ) ; break ; case CallEvent . CALL_ENDED : listener . callEnded ( event ) ; break ; } } }
Creates and dispatches a <tt>CallEvent</tt> notifying registered
 listeners that an event with id <tt>eventID</tt> has occurred on
 <tt>sourceCall</tt>.
Creates and dispatches a <tt > CallEvent< / tt > notifying registered listeners that an event with id <tt > eventID< / tt > has occurred on <tt > sourceCall< / tt > .