|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.asteriskjava.manager.action.AbstractManagerAction
org.asteriskjava.manager.action.SipNotifyAction
public class SipNotifyAction
Send a custom SIP notify message to the specified peer.
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 Summary | |
---|---|
SipNotifyAction()
Creates a new SipNotifyAction. |
|
SipNotifyAction(java.lang.String channel)
Creates a new SipNotifyAction that will be sent to the specified peer. |
Method Summary | |
---|---|
java.lang.String |
getAction()
Returns the name of this action, i.e. |
java.lang.String |
getChannel()
Returns the peer that will receive the notify. |
java.util.Map<java.lang.String,java.lang.String> |
getVariables()
Returns the variables to set on the originated call. |
void |
setChannel(java.lang.String channel)
Sets the peer to receive the notify to. |
void |
setVariable(java.lang.String name,
java.lang.String value)
Sets an variable on the originated call. |
void |
setVariables(java.util.Map<java.lang.String,java.lang.String> variables)
Sets the variables to set on the originated call. |
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 |
---|
public SipNotifyAction()
public SipNotifyAction(java.lang.String channel)
channel
- the peer to send the notify to either "SIP/peer" or just "peer".Method Detail |
---|
public java.lang.String getAction()
getAction
in interface ManagerAction
getAction
in class AbstractManagerAction
public void setChannel(java.lang.String channel)
channel
- peer to receive the notify to either "SIP/peer" or just "peer".public java.lang.String getChannel()
public java.util.Map<java.lang.String,java.lang.String> getVariables()
public void setVariable(java.lang.String name, java.lang.String value)
name
- the name of the variable to set.value
- the value of the variable to set.public void setVariables(java.util.Map<java.lang.String,java.lang.String> variables)
variables
- a Map containing the variable names as key and their
values as value.
|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |