/** {@inheritDoc} */ public void telephonyMediaEvent(final TelephonyEvent event) { LOGGER.debug("event :" + event); final Collection<TelephonyListener> tmp = new java.util.ArrayList<TelephonyListener>(callControlListeners); for (TelephonyListener listener : tmp) { listener.telephonyCallAnswered(event); } }
/** Inform the {@link TelephonyListener} about a hangup event. */ protected void fireHangedUpEvent() { final Collection<TelephonyListener> tmp = new java.util.ArrayList<TelephonyListener>(callControlListeners); final TelephonyEvent event = new TelephonyEvent(this, TelephonyEvent.HUNGUP); for (TelephonyListener listener : tmp) { listener.telephonyCallHungup(event); } }
/** Inform the {@link TelephonyListener} about a record stopped event. */ protected void fireRecordStoppedEvent() { final Collection<TelephonyListener> tmp = new java.util.ArrayList<TelephonyListener>(callControlListeners); final TelephonyEvent event = new TelephonyEvent(this, TelephonyEvent.RECORD_STOPPED); for (TelephonyListener listener : tmp) { listener.telephonyMediaEvent(event); } }
/** Inform the {@link TelephonyListener} about a play started event. */ protected void firePlayEvent() { final Collection<TelephonyListener> tmp = new java.util.ArrayList<TelephonyListener>(callControlListeners); final TelephonyEvent event = new TelephonyEvent(this, TelephonyEvent.PLAY_STARTED); for (TelephonyListener listener : tmp) { listener.telephonyMediaEvent(event); } }
/** * Inform the {@link TelephonyListener} about a play stopped event. * * @param uri destination URI of the trasfer. */ protected void fireTransferEvent(final String uri) { final Collection<TelephonyListener> tmp = new java.util.ArrayList<TelephonyListener>(callControlListeners); final TelephonyEvent event = new TelephonyEvent(this, TelephonyEvent.TRANSFERRED, uri); for (TelephonyListener listener : tmp) { listener.telephonyCallTransferred(event); } }
/** Inform the {@link TelephonyListener} about an answered event. */ protected void fireAnswerEvent() { final Collection<TelephonyListener> tmp = new java.util.ArrayList<TelephonyListener>(callControlListeners); final TelephonyEvent event = new TelephonyEvent(this, TelephonyEvent.ANSWERED); for (TelephonyListener listener : tmp) { listener.telephonyCallAnswered(event); } }
/** {@inheritDoc} */ @Override public void telephonyError(final ErrorEvent error) { LOGGER.debug("ErrorEvent :" + error); final Collection<TelephonyListener> tmp = new java.util.ArrayList<TelephonyListener>(callControlListeners); for (TelephonyListener listener : tmp) { listener.telephonyError(error); } }