org.mobicents.media.server.spi.tone
Interface ToneDetector

All Superinterfaces:
Component, MediaSink, Serializable

public interface ToneDetector
extends MediaSink

Author:
Oifa Yulian

Method Summary
 void activate()
          Starts media processing.
 void addListener(ToneDetectorListener listener)
           
 void clearAllListeners()
           
 void deactivate()
          Terminates media processing.
 int[] getFrequency()
          Gets the frequencies
 int getVolume()
          Describes the power level of the tone, expressed in dBm0
 void removeListener(ToneDetectorListener listener)
           
 void setFrequency(int[] f)
          Set frequencies of tone that detector should search for If tone detected the system fires tone event.
 void setVolume(int level)
          Describes the power level of the tone, expressed in dBm0
 
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
 

Method Detail

setFrequency

void setFrequency(int[] f)
Set frequencies of tone that detector should search for If tone detected the system fires tone event.


getFrequency

int[] getFrequency()
Gets the frequencies

Returns:
the list of frequencies

setVolume

void setVolume(int level)
Describes the power level of the tone, expressed in dBm0

Parameters:
level - the value in dBm0

getVolume

int getVolume()
Describes the power level of the tone, expressed in dBm0

Returns:
the value in dBm0

activate

void activate()
Starts media processing.

Specified by:
activate in interface Component

deactivate

void deactivate()
Terminates media processing.

Specified by:
deactivate in interface Component

addListener

void addListener(ToneDetectorListener listener)
                 throws TooManyListenersException
Throws:
TooManyListenersException

removeListener

void removeListener(ToneDetectorListener listener)

clearAllListeners

void clearAllListeners()


Copyright © 2012 TeleStax, Inc.. All Rights Reserved.