org.mobicents.media.server.impl.resource.phone
Class PhoneSignalDetector
java.lang.Object
org.mobicents.media.server.impl.BaseComponent
org.mobicents.media.server.impl.AbstractSink
org.mobicents.media.server.impl.resource.phone.PhoneSignalDetector
- All Implemented Interfaces:
- Serializable, Component, MediaSink, ToneDetector
public class PhoneSignalDetector
- extends AbstractSink
- implements ToneDetector
- Author:
- Oifa Yulian
- See Also:
- Serialized Form
| Methods inherited from class org.mobicents.media.server.impl.AbstractSink |
failed, getBytesReceived, getPacketsReceived, isStarted, perform, report, reset, start, started, stop, stopped |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PhoneSignalDetector
public PhoneSignalDetector(String name,
org.mobicents.media.server.scheduler.Scheduler scheduler)
getCompoundOutput
public CompoundOutput getCompoundOutput()
setFrequency
public void setFrequency(int[] f)
- Specified by:
setFrequency in interface ToneDetector
getFrequency
public int[] getFrequency()
- Specified by:
getFrequency in interface ToneDetector
setVolume
public void setVolume(int level)
- Specified by:
setVolume in interface ToneDetector
getVolume
public int getVolume()
- Specified by:
getVolume in interface ToneDetector
activate
public void activate()
- Specified by:
activate in interface Component- Specified by:
activate in interface ToneDetector- Specified by:
activate in class AbstractSink
deactivate
public void deactivate()
- Specified by:
deactivate in interface Component- Specified by:
deactivate in interface ToneDetector- Specified by:
deactivate in class AbstractSink
onMediaTransfer
public void onMediaTransfer(Frame frame)
throws IOException
- Specified by:
onMediaTransfer in class AbstractSink
- Throws:
IOException
setFormats
public void setFormats(Formats formats)
throws FormatNotSupportedException
- (Non Java-doc.)
- Throws:
FormatNotSupportedException- See Also:
org.mobicents.media.MediaSink#setFormats(org.mobicents.media.server.spi.format.Formats)
addListener
public void addListener(ToneDetectorListener listener)
throws TooManyListenersException
- Specified by:
addListener in interface ToneDetector
- Throws:
TooManyListenersException
removeListener
public void removeListener(ToneDetectorListener listener)
- Specified by:
removeListener in interface ToneDetector
clearAllListeners
public void clearAllListeners()
- Specified by:
clearAllListeners in interface ToneDetector
Copyright © 2012 TeleStax, Inc.. All Rights Reserved.