Asterisk-Java

org.asteriskjava.manager.action
Class PlayDtmfAction

java.lang.Object
  extended by org.asteriskjava.manager.action.AbstractManagerAction
      extended by org.asteriskjava.manager.action.PlayDtmfAction
All Implemented Interfaces:
java.io.Serializable, ManagerAction

public class PlayDtmfAction
extends AbstractManagerAction

The PlayDTMFAction plays a DTMF digit on the specified channel.

It is definied in apps/app_senddtmf.c.

Available since Asterisk 1.2.8

Since:
0.3
Version:
$Id: PlayDtmfAction.java 938 2007-12-31 03:23:38Z srt $
Author:
srt
See Also:
Serialized Form

Constructor Summary
PlayDtmfAction()
          Creates a new empty PlayDtmfAction.
PlayDtmfAction(java.lang.String channel, java.lang.String digit)
          Creates a new PlayDtmfAction that sends the given DTMF digit to the given channel.
 
Method Summary
 java.lang.String getAction()
          Returns the name of this action, i.e.
 java.lang.String getChannel()
          Returns the name of the channel to send the digit to.
 java.lang.String getDigit()
          Returns the DTMF digit to play.
 void setChannel(java.lang.String channel)
          Sets the name of the channel to send the digit to.
 void setDigit(java.lang.String digit)
          Sets the DTMF digit to play.
 
Methods inherited from class org.asteriskjava.manager.action.AbstractManagerAction
getActionId, setActionId, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PlayDtmfAction

public PlayDtmfAction()
Creates a new empty PlayDtmfAction.


PlayDtmfAction

public PlayDtmfAction(java.lang.String channel,
                      java.lang.String digit)
Creates a new PlayDtmfAction that sends the given DTMF digit to the given channel.

Parameters:
channel - the name of the channel to send the digit to.
digit - the DTML digit to play.
Method Detail

getAction

public java.lang.String getAction()
Returns the name of this action, i.e. "PlayDTMF".

Specified by:
getAction in interface ManagerAction
Specified by:
getAction in class AbstractManagerAction

getChannel

public java.lang.String getChannel()
Returns the name of the channel to send the digit to.

Returns:
the name of the channel to send the digit to.

setChannel

public void setChannel(java.lang.String channel)
Sets the name of the channel to send the digit to.

Parameters:
channel - the name of the channel to send the digit to.

getDigit

public java.lang.String getDigit()
Returns the DTMF digit to play.

Returns:
the DTMF digit to play.

setDigit

public void setDigit(java.lang.String digit)
Sets the DTMF digit to play.

Parameters:
digit - the DTMF digit to play.

Asterisk-Java

Copyright © 2004-2009 Stefan Reuter. All Rights Reserved.