|
Asterisk-Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.asteriskjava.fastagi.command.AbstractAgiCommand
org.asteriskjava.fastagi.command.GosubCommand
public class GosubCommand
Calls a subroutine from dialplan.
Example return code: 200 result=0 Gosub complete This command is available since Asterisk 1.6.
| Constructor Summary | |
|---|---|
GosubCommand(String context,
String extension,
String priority)
Creates a new GosubCommand. |
|
GosubCommand(String context,
String extension,
String priority,
String... arguments)
Creates a new GosubCommand. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.asteriskjava.fastagi.command.AbstractAgiCommand |
|---|
escapeAndQuote, escapeAndQuote, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public 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.| Method Detail |
|---|
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()
AgiCommand
buildCommand in interface AgiCommandbuildCommand in class AbstractAgiCommand
|
Asterisk-Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||