org.mobicents.media.server.impl.resource.phone
Class PhoneSignalDetector

java.lang.Object
  extended by org.mobicents.media.server.impl.BaseComponent
      extended by org.mobicents.media.server.impl.AbstractSink
          extended by 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

Constructor Summary
PhoneSignalDetector(String name, org.mobicents.media.server.scheduler.Scheduler scheduler)
           
 
Method Summary
 void activate()
           
 void addListener(ToneDetectorListener listener)
           
 void clearAllListeners()
           
 void deactivate()
           
 CompoundOutput getCompoundOutput()
           
 int[] getFrequency()
           
 int getVolume()
           
 void onMediaTransfer(Frame frame)
           
 void removeListener(ToneDetectorListener listener)
           
 void setFormats(Formats formats)
          (Non Java-doc.)
 void setFrequency(int[] f)
           
 void setVolume(int level)
           
 
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 org.mobicents.media.server.impl.BaseComponent
clearEndpoint, getEndpoint, getId, getName, setEndpoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mobicents.media.MediaSink
getBytesReceived, getPacketsReceived, isStarted, perform
 
Methods inherited from interface org.mobicents.media.Component
clearEndpoint, getEndpoint, getId, getName, reset, setEndpoint
 

Constructor Detail

PhoneSignalDetector

public PhoneSignalDetector(String name,
                           org.mobicents.media.server.scheduler.Scheduler scheduler)
Method Detail

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.