public class SipNotifyAction extends AbstractManagerAction
All parameters for this event must be specified in the body of this request via multiple variables. At least one variable pair must be specified.
Available since Asterisk 1.6
Constructor and Description |
---|
SipNotifyAction()
Creates a new SipNotifyAction.
|
SipNotifyAction(String channel)
Creates a new SipNotifyAction that will be sent to the specified peer.
|
Modifier and Type | Method and Description |
---|---|
String |
getAction()
Returns the name of this action, i.e.
|
String |
getChannel()
Returns the peer that will receive the notify.
|
Map<String,String> |
getVariables()
Returns the variables to set on the originated call.
|
void |
setChannel(String channel)
Sets the peer to receive the notify to.
|
void |
setVariable(String name,
String value)
Sets an variable on the originated call.
|
void |
setVariables(Map<String,String> variables)
Sets the variables to set on the originated call.
|
getActionId, setActionId, toString
public SipNotifyAction()
public SipNotifyAction(String channel)
channel
- the peer to send the notify to either "SIP/peer" or just "peer".public String getAction()
getAction
in interface ManagerAction
getAction
in class AbstractManagerAction
public void setChannel(String channel)
channel
- peer to receive the notify to either "SIP/peer" or just "peer".public String getChannel()
public Map<String,String> getVariables()
public void setVariable(String name, String value)
name
- the name of the variable to set.value
- the value of the variable to set.Copyright © 2004–2017. All rights reserved.