public class GosubCommand extends AbstractAgiCommand
Cause the channel to execute the specified dialplan subroutine.
| Constructor and Description |
|---|
GosubCommand(String context,
String extension,
String priority)
Creates a new GosubCommand.
|
GosubCommand(String context,
String extension,
String priority,
String... arguments)
Creates a new GosubCommand.
|
| Modifier and Type | Method and Description |
|---|---|
String |
buildCommand()
Returns a string suitable to be sent to asterisk.
|
String[] |
getArguments()
Returns the arguments to be passed to the subroutine.
|
String |
getContext()
Returns the context of the subroutine to call.
|
String |
getExtension()
Returns the extension within the called context.
|
String |
getPriority()
Returns the priority of the called extension.
|
void |
setArguments(String[] arguments)
Sets the arguments to be passed to the subroutine.
|
void |
setContext(String context)
Sets the context of the subroutine to call.
|
void |
setExtension(String extension)
Sets the extension within the called context.
|
void |
setPriority(String priority)
Sets the priority of the called extension.
|
escapeAndQuote, escapeAndQuote, setAsteriskVersion, toStringpublic GosubCommand(String context, String extension, String priority)
context - context of the called subroutine.extension - the extension in the called context.priority - of the called extension.public GosubCommand(String context, String extension, String priority, String... arguments)
context - context of the called subroutine.extension - the extension in the called context.priority - the priority of the called extension.arguments - the arguments to be passed to the called subroutine.public String getContext()
public void setContext(String context)
context - the context of the subroutine to call.public String getExtension()
public void setExtension(String extension)
extension - the extension within the called context.public String getPriority()
public void setPriority(String priority)
priority - the priority of the called extension.public String[] getArguments()
public void setArguments(String[] arguments)
arguments - the arguments to be passed to the subroutine.public String buildCommand()
AgiCommandbuildCommand in interface AgiCommandbuildCommand in class AbstractAgiCommandCopyright © 2004–2022. All rights reserved.