org.mobicents.media.server.mgcp.pkg.dtmf
Class AbstractDtmfEvent

java.lang.Object
  extended by org.mobicents.media.server.mgcp.controller.signal.Signal
      extended by org.mobicents.media.server.mgcp.pkg.dtmf.AbstractDtmfEvent
All Implemented Interfaces:
DtmfDetectorListener, Listener<DtmfEvent>
Direct Known Subclasses:
Dtmf0, Dtmf1, Dtmf2, Dtmf3, Dtmf4, Dtmf5, Dtmf6, Dtmf7, Dtmf8, Dtmf9, DtmfA, DtmfB, DtmfC, DtmfD, DtmfHash, DtmfStar

public abstract class AbstractDtmfEvent
extends Signal
implements DtmfDetectorListener

Author:
yulian oifa

Field Summary
protected  Event tone
           
 
Fields inherited from class org.mobicents.media.server.mgcp.controller.signal.Signal
events
 
Constructor Summary
AbstractDtmfEvent(String name)
           
 
Method Summary
 void cancel()
           
 boolean doAccept(Text event)
           
 void execute()
          Executes this signal
protected abstract  Event getTone()
           
abstract  void onEvent(String tone)
           
 void process(DtmfEvent event)
           
 void reset()
           
 
Methods inherited from class org.mobicents.media.server.mgcp.controller.signal.Signal
accept, complete, getConnection, getEndpoint, getName, getPackage, getTrigger, sendEvent, sendEvent, setPackage, setTrigger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tone

protected Event tone
Constructor Detail

AbstractDtmfEvent

public AbstractDtmfEvent(String name)
Method Detail

execute

public void execute()
Description copied from class: Signal
Executes this signal

Specified by:
execute in class Signal

doAccept

public boolean doAccept(Text event)
Specified by:
doAccept in class Signal

cancel

public void cancel()
Specified by:
cancel in class Signal

process

public void process(DtmfEvent event)
Specified by:
process in interface Listener<DtmfEvent>

reset

public void reset()
Overrides:
reset in class Signal

onEvent

public abstract void onEvent(String tone)

getTone

protected abstract Event getTone()


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