public class PlayDtmfAction extends AbstractManagerAction
It is definied in apps/app_senddtmf.c.
Available since Asterisk 1.2.8
| Constructor and Description |
|---|
PlayDtmfAction()
Creates a new empty PlayDtmfAction.
|
PlayDtmfAction(String channel,
String digit)
Creates a new PlayDtmfAction that sends the given DTMF digit to the given channel.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAction()
Returns the name of this action, i.e.
|
String |
getChannel()
Returns the name of the channel to send the digit to.
|
String |
getDigit()
Returns the DTMF digit to play.
|
Integer |
getDuration() |
Boolean |
getReceive()
Returns the 'receive' property of this action.
|
void |
setChannel(String channel)
Sets the name of the channel to send the digit to.
|
void |
setDigit(String digit)
Sets the DTMF digit to play.
|
void |
setDuration(Integer duration) |
void |
setReceive(Boolean receive)
Set the receive property of the action.
|
getActionId, setActionId, toStringpublic String getAction()
getAction in interface ManagerActiongetAction in class AbstractManagerActionpublic Boolean getReceive()
public void setReceive(Boolean receive)
receive - value for receive, or null to unsetpublic String getChannel()
public void setChannel(String channel)
channel - the name of the channel to send the digit to.public String getDigit()
public void setDigit(String digit)
digit - the DTMF digit to play.public void setDuration(Integer duration)
public Integer getDuration()
Copyright © 2004–2024. All rights reserved.