public class PJSIPNotifyAction extends AbstractManagerAction implements ManagerAction
Either a URI, a channel or an endpoint can be specified.
See: https://wiki.asterisk.org/wiki/display/AST/Asterisk+15+ManagerAction_PJSIPNotify
| Constructor and Description |
|---|
PJSIPNotifyAction() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAction()
Returns the name of the action for example "Hangup".
|
String |
getChannel()
Get the PJSIP channel to send the NOTIFY on.
|
String |
getEndpoint()
Get the PJSIP endpoint to which to send the NOTIFY.
|
String |
getUri()
Get the URI to which to send the NOTIFY.
|
Map<String,String> |
getVariables()
Get the variables.
|
void |
setChannel(String channel)
Set the PJSIP channel name to send the NOTIFY on.
|
void |
setEndpoint(String endpoint)
Set the PJSIP endpoint to send to NOTIFY to.
|
void |
setUri(String uri)
Set an abritrary URI to send the NOTIFY to.
|
void |
setVariable(String name,
String value)
Add a variable.
|
void |
setVariables(Map<String,String> variables)
Set all variables.
|
getActionId, setActionId, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetActionId, setActionIdpublic String getAction()
ManagerActiongetAction in interface ManagerActiongetAction in class AbstractManagerActionpublic String getChannel()
public String getEndpoint()
public String getUri()
public void setChannel(String channel)
channel - public void setEndpoint(String endpoint)
endpoint - public void setUri(String uri)
uri - public void setVariable(String name, String value)
Use the 'content' variable to specify the NOTIFY body.
name - value - public void setVariables(Map<String,String> variables)
setVariable(String, String).variables - Copyright © 2004–2021. All rights reserved.