public class SetVarAction extends AbstractManagerAction
Setting global variables is supported since Asterisk 1.2.
| Constructor and Description |
|---|
SetVarAction()
Creates a new empty SetVarAction.
|
SetVarAction(String variable,
String value)
Creates a new SetVarAction that sets the given global variable to a new value.
|
SetVarAction(String channel,
String variable,
String value)
Creates a new SetVarAction that sets the given channel variable of the
given channel to a new value.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAction()
Returns the name of this action, i.e.
|
String |
getChannel()
Returns the name of the channel.
|
String |
getValue()
Returns the value to store.
|
String |
getVariable()
Returns the name of the variable to set.
|
void |
setChannel(String channel)
Sets the name of the channel.
|
void |
setValue(String value)
Sets the value to store.
|
void |
setVariable(String variable)
Sets the name of the variable to set.
|
getActionId, setActionId, toStringpublic SetVarAction()
public SetVarAction(String variable, String value)
variable - the name of the global variable to setvalue - the new valuepublic SetVarAction(String channel, String variable, String value)
channel - the name of the channel to set the variable onvariable - the name of the channel variablevalue - the new valuepublic String getAction()
getAction in interface ManagerActiongetAction in class AbstractManagerActionpublic String getChannel()
public void setChannel(String channel)
channel - the name of the channel to set.public String getVariable()
public void setVariable(String variable)
variable - the name of the variable to set.public String getValue()
public void setValue(String value)
value - the value to set.Copyright © 2004–2020. All rights reserved.