public class AgiChannelImpl extends Object implements AgiChannel
| Modifier | Constructor and Description |
|---|---|
protected |
AgiChannelImpl(AgiRequest request,
AgiWriter agiWriter,
AgiReader agiReader) |
| Modifier and Type | Method and Description |
|---|---|
void |
answer()
Answers the channel.
|
void |
bridge(String channelName,
String options)
invoke the bridge command
|
void |
confbridge(String room,
String profile)
since at least asterisk 13
|
void |
continueAt(String context,
String extension,
String priority)
Defines the point in the dialplan where the call will continue when the
AGI script returns.
|
void |
controlStreamFile(String file)
Plays the given file allowing the user to control the streaming by using
"#" for forward and "*" for rewind.
|
char |
controlStreamFile(String file,
String escapeDigits)
Plays the given file allowing the user to control the streaming by using
"#" for forward and "*" for rewind.
|
char |
controlStreamFile(String file,
String escapeDigits,
int offset)
Plays the given file allowing the user to control the streaming by using
"#" for forward and "*" for rewind.
|
char |
controlStreamFile(String file,
String escapeDigits,
int offset,
String forwardDigit,
String rewindDigit,
String pauseDigit)
Plays the given file allowing the user to control the streaming by using
forwardDigit for forward, rewindDigit for rewind and pauseDigit for
pause.
|
void |
databaseDel(String family,
String key)
Deletes an entry in the Asterisk database for a given family and key.
|
void |
databaseDelTree(String family)
Deletes a whole family of entries in the Asterisk database.
|
void |
databaseDelTree(String family,
String keytree)
Deletes all entries of a given family in the Asterisk database that have
a key that starts with a given prefix.
|
String |
databaseGet(String family,
String key)
Retrieves an entry in the Asterisk database for a given family and key.
|
void |
databasePut(String family,
String key,
String value)
Adds or updates an entry in the Asterisk database for a given family,
key, and value.
|
void |
dial(String target,
int timeout,
String options)
invoke the dial command
|
int |
exec(String application)
Executes the given command.
|
int |
exec(String application,
String... options)
Executes the given command.
|
AsteriskVersion |
getAsteriskVersion() |
int |
getChannelStatus()
Returns the status of the channel.
|
String |
getData(String file)
Plays the given file and waits for the user to enter DTMF digits until he
presses '#'.
|
String |
getData(String file,
long timeout)
Plays the given file and waits for the user to enter DTMF digits until he
presses '#' or the timeout occurs.
|
String |
getData(String file,
long timeout,
int maxDigits)
Plays the given file and waits for the user to enter DTMF digits until he
presses '#' or the timeout occurs or the maximum number of digits has
been entered.
|
String |
getFullVariable(String name)
Evaluates a channel expression for the current channel.
|
String |
getFullVariable(String name,
String channel)
Evaluates a channel expression for the given channel.To extract the
caller id of channel use
getFullVariable("${CALLERID(name)}", "SIP/john-0085d860");. |
AgiRequest |
getInternalAgiRequest() |
AgiReply |
getLastReply()
Returns the reply received in response to the last command sent to
Asterisk.
|
String |
getName()
Returns the name of the channel.
|
char |
getOption(String file,
String escapeDigits)
Plays the given file, and waits for the user to press one of the given
digits.
|
char |
getOption(String file,
String escapeDigits,
long timeout)
Plays the given file, and waits for the user to press one of the given
digits.
|
String |
getUniqueId()
Returns the unqiue id of the channel.
|
String |
getVariable(String name)
Returns the value of the current channel or global variable.
|
void |
gosub(String context,
String extension,
String priority)
Calls a subroutine in the dialplan
This method is available since Asterisk 1.6. |
void |
gosub(String context,
String extension,
String priority,
String... arguments)
Calls a subroutine in the dialplan
|
void |
hangup()
Hangs the channel up.
|
void |
meetme(String room,
String options)
since at least asterisk 1.4
|
void |
playMusicOnHold()
Plays music on hold from the default music on hold class.
|
void |
playMusicOnHold(String musicOnHoldClass)
Plays music on hold from the given music on hold class.
|
void |
queue(String queue) |
char |
recordFile(String file,
String format,
String escapeDigits,
int timeout)
Record to a file until a given dtmf digit in the sequence is received.
|
char |
recordFile(String file,
String format,
String escapeDigits,
int timeout,
int offset,
boolean beep,
int maxSilence)
Record to a file until a given dtmf digit in the sequence is received.
|
void |
sayAlpha(String text)
Says the given character string.
|
char |
sayAlpha(String text,
String escapeDigits)
Says the given character string, returning early if any of the given DTMF
number are received on the channel.
|
void |
sayDateTime(long time)
Says the given time.
|
char |
sayDateTime(long time,
String escapeDigits)
Says the given time and allows interruption by one of the given escape
digits.
|
char |
sayDateTime(long time,
String escapeDigits,
String format)
Says the given time in the given format and allows interruption by one of
the given escape digits.
|
char |
sayDateTime(long time,
String escapeDigits,
String format,
String timezone)
Says the given time in the given format and timezone and allows
interruption by one of the given escape digits.
|
void |
sayDigits(String digits)
Says the given digit string.
|
char |
sayDigits(String digits,
String escapeDigits)
Says the given number, returning early if any of the given DTMF number
are received on the channel.
|
void |
sayNumber(String number)
Says the given number.
|
char |
sayNumber(String number,
String escapeDigits)
Says the given number, returning early if any of the given DTMF number
are received on the channel.
|
void |
sayPhonetic(String text)
Says the given character string with phonetics.
|
char |
sayPhonetic(String text,
String escapeDigits)
Says the given character string with phonetics, returning early if any of
the given DTMF number are received on the channel.
|
void |
sayTime(long time)
Says the given time.
|
char |
sayTime(long time,
String escapeDigits)
Says the given time, returning early if any of the given DTMF number are
received on the channel.
|
AgiReply |
sendCommand(AgiCommand command)
Sends a command to asterisk and returns the corresponding reply.
|
void |
setAutoHangup(int time)
Cause the channel to automatically hangup at the given number of seconds
in the future.
|
void |
setCallerId(String callerId)
Sets the caller id on the current channel.
|
void |
setContext(String context)
Sets the context for continuation upon exiting the application.
|
void |
setExtension(String extension)
Sets the extension for continuation upon exiting the application.
|
void |
setPriority(String priority)
Sets the priority or label for continuation upon exiting the application.
|
void |
setVariable(String name,
String value)
Sets the value of the current channel or global variable to a new value.
|
void |
speechActivateGrammar(String name)
Activates the specified grammar.
|
void |
speechCreate()
Creates a speech object that uses the default speech engine.
|
void |
speechCreate(String engine)
Creates a speech object that uses the given speech engine.
|
void |
speechDeactivateGrammar(String name)
Deactivates the specified grammar.
|
void |
speechDestroy()
Destroys the current speech object.
|
void |
speechLoadGrammar(String name,
String path)
Loads the specified grammar.
|
SpeechRecognitionResult |
speechRecognize(String prompt,
int timeout)
Plays the given prompt while listening for speech and DTMF.
|
SpeechRecognitionResult |
speechRecognize(String prompt,
int timeout,
int offset)
Plays the given prompt while listening for speech and DTMF.
|
void |
speechSet(String name,
String value)
Sets the speech engine setting indicated by name to the given value.
|
void |
speechUnloadGrammar(String name)
Unloads the specified grammar.
|
void |
stopMusicOnHold()
Stops playing music on hold.
|
void |
streamFile(String file)
Plays the given file.
|
char |
streamFile(String file,
String escapeDigits)
Plays the given file and allows the user to escape by pressing one of the
given digit.
|
char |
streamFile(String file,
String escapeDigits,
int offset)
Plays the given file starting at the specified offset and allows the user
to escape by pressing one of the given digit.
|
void |
verbose(String message,
int level)
Sends a message to the Asterisk console via the verbose message system.
|
char |
waitForDigit(int timeout)
Waits up to 'timeout' milliseconds to receive a DTMF digit.
|
protected AgiChannelImpl(AgiRequest request, AgiWriter agiWriter, AgiReader agiReader)
public String getName()
AgiChannelgetName in interface AgiChannelpublic String getUniqueId()
AgiChannelgetUniqueId in interface AgiChannelpublic AgiReply getLastReply()
AgiChannelgetLastReply in interface AgiChannelnull if none has yet been received.public AgiReply sendCommand(AgiCommand command) throws AgiException
AgiChannelAgiChannel.getLastReply().sendCommand in interface AgiChannelcommand - the command to send.AgiException - if the command can't be sent to Asterisk (for
example because the channel has been hung up)public AsteriskVersion getAsteriskVersion()
getAsteriskVersion in interface AgiChannelpublic void answer()
throws AgiException
AgiChannelanswer in interface AgiChannelAgiExceptionpublic void hangup()
throws AgiException
AgiChannelhangup in interface AgiChannelAgiExceptionpublic void setAutoHangup(int time)
throws AgiException
AgiChannelsetAutoHangup in interface AgiChanneltime - the number of seconds before this channel is automatically
hung up.
0 disables the autohangup feature.
AgiExceptionpublic void setCallerId(String callerId) throws AgiException
AgiChannelsetCallerId in interface AgiChannelcallerId - the raw caller id to set, for example
"John Doe<1234>".AgiExceptionpublic void playMusicOnHold()
throws AgiException
AgiChannelplayMusicOnHold in interface AgiChannelAgiExceptionpublic void playMusicOnHold(String musicOnHoldClass) throws AgiException
AgiChannelplayMusicOnHold in interface AgiChannelmusicOnHoldClass - the music on hold class to play music from as
configures in Asterisk's musiconhold.conf.AgiExceptionpublic void stopMusicOnHold()
throws AgiException
AgiChannelstopMusicOnHold in interface AgiChannelAgiExceptionpublic int getChannelStatus()
throws AgiException
AgiChannelReturn values:
getChannelStatus in interface AgiChannelAgiExceptionpublic String getData(String file) throws AgiException
AgiChannelgetData in interface AgiChannelfile - the name of the file to playAgiExceptionpublic String getData(String file, long timeout) throws AgiException
AgiChannelgetData in interface AgiChannelfile - the name of the file to playtimeout - the timeout in milliseconds to wait for user input.
0 means standard timeout value, -1 means "ludicrous time" (essentially never times out).
AgiExceptionpublic String getData(String file, long timeout, int maxDigits) throws AgiException
AgiChannelgetData in interface AgiChannelfile - the name of the file to playtimeout - the timeout in milliseconds to wait for user input.
0 means standard timeout value, -1 means "ludicrous time" (essentially never times out).
maxDigits - the maximum number of digits the user is allowed to
enterAgiExceptionpublic char getOption(String file, String escapeDigits) throws AgiException
AgiChannelgetOption in interface AgiChannelfile - the name of the file to stream, must not include extension.escapeDigits - contains the digits that the user is expected to
press.AgiExceptionpublic char getOption(String file, String escapeDigits, long timeout) throws AgiException
AgiChannelgetOption in interface AgiChannelfile - the name of the file to stream, must not include extension.escapeDigits - contains the digits that the user is expected to
press.timeout - the timeout in milliseconds to wait if none of the defined
esacpe digits was presses while streaming.AgiExceptionpublic int exec(String application) throws AgiException
AgiChannelexec in interface AgiChannelapplication - the name of the application to execute, for example
"Dial".AgiExceptionpublic int exec(String application, String... options) throws AgiException
AgiChannelexec in interface AgiChannelapplication - the name of the application to execute, for example
"Dial".options - the parameters to pass to the application, for example
"SIP/123".AgiExceptionpublic void setContext(String context) throws AgiException
AgiChannelsetContext in interface AgiChannelcontext - the context for continuation upon exiting the application.AgiExceptionpublic void setExtension(String extension) throws AgiException
AgiChannelsetExtension in interface AgiChannelextension - the extension for continuation upon exiting the
application.AgiExceptionpublic void setPriority(String priority) throws AgiException
AgiChannelsetPriority in interface AgiChannelpriority - the priority or label for continuation upon exiting the
application.AgiExceptionpublic void streamFile(String file) throws AgiException
AgiChannelstreamFile in interface AgiChannelfile - name of the file to play.AgiExceptionpublic char streamFile(String file, String escapeDigits) throws AgiException
AgiChannelstreamFile in interface AgiChannelfile - name of the file to play.escapeDigits - a String containing the DTMF digits that allow the
user to escape.AgiExceptionpublic char streamFile(String file, String escapeDigits, int offset) throws AgiException
AgiChannelstreamFile in interface AgiChannelfile - name of the file to play.escapeDigits - a String containing the DTMF digits that allow the
user to escape.offset - the offset samples to skip before streaming.AgiExceptionpublic void sayDigits(String digits) throws AgiException
AgiChannelsayDigits in interface AgiChanneldigits - the digit string to say.AgiExceptionpublic char sayDigits(String digits, String escapeDigits) throws AgiException
AgiChannelsayDigits in interface AgiChanneldigits - the digit string to say.escapeDigits - a String containing the DTMF digits that allow the
user to escape.AgiExceptionpublic void sayNumber(String number) throws AgiException
AgiChannelsayNumber in interface AgiChannelnumber - the number to say.AgiExceptionpublic char sayNumber(String number, String escapeDigits) throws AgiException
AgiChannelsayNumber in interface AgiChannelnumber - the number to say.escapeDigits - a String containing the DTMF digits that allow the
user to escape.AgiExceptionpublic void sayPhonetic(String text) throws AgiException
AgiChannelsayPhonetic in interface AgiChanneltext - the text to say.AgiExceptionpublic char sayPhonetic(String text, String escapeDigits) throws AgiException
AgiChannelsayPhonetic in interface AgiChanneltext - the text to say.escapeDigits - a String containing the DTMF digits that allow the
user to escape.AgiExceptionpublic void sayAlpha(String text) throws AgiException
AgiChannelsayAlpha in interface AgiChanneltext - the text to say.AgiExceptionpublic char sayAlpha(String text, String escapeDigits) throws AgiException
AgiChannelsayAlpha in interface AgiChanneltext - the text to say.escapeDigits - a String containing the DTMF digits that allow the
user to escape.AgiExceptionpublic void sayTime(long time)
throws AgiException
AgiChannelsayTime in interface AgiChanneltime - the time to say in seconds since 00:00:00 on January 1, 1970.AgiExceptionpublic char sayTime(long time,
String escapeDigits)
throws AgiException
AgiChannelsayTime in interface AgiChanneltime - the time to say in seconds since 00:00:00 on January 1, 1970.escapeDigits - a String containing the DTMF digits that allow the
user to escape.AgiExceptionpublic String getVariable(String name) throws AgiException
AgiChannelgetVariable("CALLERID(name)"); AgiChannel.getFullVariable(String)
in those cases.getVariable in interface AgiChannelname - the name of the variable (or function call) to retrieve.null if not set.AgiExceptionpublic void setVariable(String name, String value) throws AgiException
AgiChannelsetVariable("CALLERID(name)", "John Doe");setVariable in interface AgiChannelname - the name of the variable (or function call) to set.value - the new value to set.AgiExceptionpublic char waitForDigit(int timeout)
throws AgiException
AgiChannelwaitForDigit in interface AgiChanneltimeout - timeout the milliseconds to wait for the channel to
receive a DTMF digit, -1 will wait forever.AgiExceptionpublic String getFullVariable(String name) throws AgiException
AgiChannelgetFullVariable("${CALLERID(name)}");.
Available since Asterisk 1.2.
getFullVariable in interface AgiChannelname - the expression to evaluate.null if not
set.AgiExceptionAgiChannel.getVariable(String)public String getFullVariable(String name, String channel) throws AgiException
AgiChannelgetFullVariable("${CALLERID(name)}", "SIP/john-0085d860");.
Available since Asterisk 1.2.
getFullVariable in interface AgiChannelname - the the expression to evaluate.channel - the name of the channel.null if not
set.AgiExceptionpublic char sayDateTime(long time,
String escapeDigits,
String format,
String timezone)
throws AgiException
AgiChannelAvailable since Asterisk 1.2.
sayDateTime in interface AgiChanneltime - the time to say in seconds elapsed since 00:00:00 on January
1, 1970, Coordinated Universal Time (UTC)escapeDigits - the digits that allow the user to interrupt this
command or null for none.format - the format the time should be said intimezone - the timezone to use when saying the time, for example
"UTC" or "Europe/Berlin".AgiExceptionpublic char sayDateTime(long time,
String escapeDigits,
String format)
throws AgiException
AgiChannelAvailable since Asterisk 1.2.
sayDateTime in interface AgiChanneltime - the time to say in seconds elapsed since 00:00:00 on January
1, 1970, Coordinated Universal Time (UTC)escapeDigits - the digits that allow the user to interrupt this
command or null for none.format - the format the time should be said inAgiExceptionpublic char sayDateTime(long time,
String escapeDigits)
throws AgiException
AgiChannelAvailable since Asterisk 1.2.
sayDateTime in interface AgiChanneltime - the time to say in seconds elapsed since 00:00:00 on January
1, 1970, Coordinated Universal Time (UTC)escapeDigits - the digits that allow the user to interrupt this
command or null for none.AgiExceptionpublic void sayDateTime(long time)
throws AgiException
AgiChannelAvailable since Asterisk 1.2.
sayDateTime in interface AgiChanneltime - the time to say in seconds elapsed since 00:00:00 on January
1, 1970, Coordinated Universal Time (UTC)AgiExceptionpublic String databaseGet(String family, String key) throws AgiException
AgiChanneldatabaseGet in interface AgiChannelfamily - the family of the entry to retrieve.key - the key of the entry to retrieve.null if
there is no such value.AgiExceptionpublic void databasePut(String family, String key, String value) throws AgiException
AgiChanneldatabasePut in interface AgiChannelfamily - the family of the entry to add or update.key - the key of the entry to add or update.value - the new value of the entry.AgiExceptionpublic void databaseDel(String family, String key) throws AgiException
AgiChanneldatabaseDel in interface AgiChannelfamily - the family of the entry to delete.key - the key of the entry to delete.AgiExceptionpublic void databaseDelTree(String family) throws AgiException
AgiChanneldatabaseDelTree in interface AgiChannelfamily - the family to delete.AgiExceptionpublic void databaseDelTree(String family, String keytree) throws AgiException
AgiChanneldatabaseDelTree in interface AgiChannelfamily - the family of the entries to delete.keytree - the prefix of the keys of the entries to delete.AgiExceptionpublic void verbose(String message, int level) throws AgiException
AgiChannelverbose in interface AgiChannelmessage - the message to send.level - the verbosity level to use. Must be in [1..4].AgiExceptionpublic char recordFile(String file, String format, String escapeDigits, int timeout) throws AgiException
AgiChannelrecordFile in interface AgiChannelfile - the name of the file to stream, must not include extension.format - the format of the file to be recorded, for example "wav".escapeDigits - contains the digits that allow the user to end
recording.timeout - the maximum record time in milliseconds, or -1 for no
timeout.AgiExceptionpublic char recordFile(String file, String format, String escapeDigits, int timeout, int offset, boolean beep, int maxSilence) throws AgiException
AgiChannelrecordFile in interface AgiChannelfile - the name of the file to stream, must not include extension.format - the format of the file to be recorded, for example "wav".escapeDigits - contains the digits that allow the user to end
recording.timeout - the maximum record time in milliseconds, or -1 for no
timeout.offset - the offset samples to skip.beep - true if a beep should be played before
recording.maxSilence - The amount of silence (in seconds) to allow before
returning despite the lack of dtmf digits or reaching timeout.AgiExceptionpublic void controlStreamFile(String file) throws AgiException
AgiChannelcontrolStreamFile in interface AgiChannelfile - the name of the file to stream, must not include extension.AgiExceptionpublic char controlStreamFile(String file, String escapeDigits) throws AgiException
AgiChannelcontrolStreamFile in interface AgiChannelfile - the name of the file to stream, must not include extension.escapeDigits - contains the digits that allow the user to interrupt
this command.AgiExceptionpublic char controlStreamFile(String file, String escapeDigits, int offset) throws AgiException
AgiChannelcontrolStreamFile in interface AgiChannelfile - the name of the file to stream, must not include extension.escapeDigits - contains the digits that allow the user to interrupt
this command. May be null if you don't want the
user to interrupt.offset - the offset samples to skip before streaming.AgiExceptionpublic char controlStreamFile(String file, String escapeDigits, int offset, String forwardDigit, String rewindDigit, String pauseDigit) throws AgiException
AgiChannelcontrolStreamFile in interface AgiChannelfile - the name of the file to stream, must not include extension.escapeDigits - contains the digits that allow the user to interrupt
this command. May be null if you don't want the
user to interrupt.offset - the offset samples to skip before streaming, use 0 to start
at the beginning.forwardDigit - the digit for fast forward.rewindDigit - the digit for rewind.pauseDigit - the digit for pause and unpause.AgiExceptionpublic void speechCreate()
throws AgiException
AgiChannelspeechCreate in interface AgiChannelAgiSpeechException - if the speech object cannot be created.AgiExceptionAgiChannel.speechDestroy()public void speechCreate(String engine) throws AgiException
AgiChannelspeechCreate in interface AgiChannelengine - the name of the speech engine. For example "lumenvox".AgiSpeechException - if the speech object cannot be created.AgiExceptionAgiChannel.speechDestroy()public void speechSet(String name, String value) throws AgiException
AgiChannelspeechSet in interface AgiChannelname - the name of the setting to set.value - the value to set.AgiSpeechException - if the setting cannot be set.AgiExceptionpublic void speechDestroy()
throws AgiException
AgiChannelspeechDestroy in interface AgiChannelAgiSpeechException - if the speech engine cannot be destroyed.AgiExceptionAgiChannel.speechCreate(String)public void speechLoadGrammar(String name, String path) throws AgiException
AgiChannelAgiChannel.speechActivateGrammar(String) under the given name. Eplicitly
loading a grammer is only required if the grammer has not been defined in
the speech engine configuration, e.g. the [grammars] section
of lumenvox.conf.speechLoadGrammar in interface AgiChannelname - the name of the grammar, used for subsequent calls to
AgiChannel.speechActivateGrammar(String),
AgiChannel.speechDeactivateGrammar(String) and
AgiChannel.speechUnloadGrammar(String).path - the path to the grammar to load.AgiSpeechException - if the grammar cannot be loaded.AgiExceptionAgiChannel.speechUnloadGrammar(String),
AgiChannel.speechActivateGrammar(String)public void speechUnloadGrammar(String name) throws AgiException
AgiChannelspeechUnloadGrammar in interface AgiChannelname - the name of the grammar to unload.AgiSpeechException - if the grammar cannot be unloaded.AgiExceptionAgiChannel.speechLoadGrammar(String, String)public void speechActivateGrammar(String name) throws AgiException
AgiChannelspeechActivateGrammar in interface AgiChannelname - the name of the grammar to activate.AgiSpeechException - if the grammar cannot be activated.AgiExceptionAgiChannel.speechDeactivateGrammar(String),
AgiChannel.speechLoadGrammar(String, String)public void speechDeactivateGrammar(String name) throws AgiException
AgiChannelspeechDeactivateGrammar in interface AgiChannelname - the name to the grammar to deactivate.AgiSpeechException - if the grammar cannot be deactivated.AgiExceptionAgiChannel.speechActivateGrammar(String)public SpeechRecognitionResult speechRecognize(String prompt, int timeout) throws AgiException
AgiChannelspeechRecognize in interface AgiChannelprompt - the name of the file to stream, must not include extension.timeout - the timeout in milliseconds to wait for user input.
0 means standard timeout value, -1 means "ludicrous time" (essentially never times out).
AgiExceptionpublic SpeechRecognitionResult speechRecognize(String prompt, int timeout, int offset) throws AgiException
AgiChannelspeechRecognize in interface AgiChannelprompt - the name of the file to stream, must not include extension.timeout - the timeout in milliseconds to wait for user input.
0 means standard timeout value, -1 means "ludicrous time" (essentially never times out).
offset - the offset samples to skip before streaming, use 0 to start
at the beginning.AgiExceptionpublic void continueAt(String context, String extension, String priority) throws AgiException
AgiChannel
This is a shortcut for calling AgiChannel.setContext(String),
AgiChannel.setExtension(String) and AgiChannel.setPriority(String) in series.
continueAt in interface AgiChannelcontext - the context for continuation upon exiting the application.extension - the extension for continuation upon exiting the
application.priority - the priority or label for continuation upon exiting the
application.AgiExceptionAgiChannel.setContext(String),
AgiChannel.setExtension(String),
AgiChannel.setPriority(String)public void gosub(String context, String extension, String priority) throws AgiException
AgiChannelgosub in interface AgiChannelcontext - the context of the called subroutine.extension - the extension in the called context.priority - the priority of the called extension.AgiExceptionpublic void gosub(String context, String extension, String priority, String... arguments) throws AgiException
AgiChannel
This method is available since Asterisk 1.6.
gosub in interface AgiChannelcontext - the context of the called subroutine.extension - the extension in the called context.priority - the priority of the called extension.arguments - optional arguments to be passed to the subroutine. They
should be separated by comma. They will accessible in the form
of ${ARG1}, ${ARG2}, etc in the subroutine body.AgiExceptionpublic AgiRequest getInternalAgiRequest()
public void confbridge(String room, String profile) throws AgiException
AgiChannelconfbridge in interface AgiChannelAgiExceptionpublic void meetme(String room, String options) throws AgiException
AgiChannelmeetme in interface AgiChannelAgiExceptionpublic void dial(String target, int timeout, String options) throws AgiException
AgiChanneldial in interface AgiChannelAgiExceptionpublic void bridge(String channelName, String options) throws AgiException
AgiChannelbridge in interface AgiChannelAgiExceptionpublic void queue(String queue) throws AgiException
queue in interface AgiChannelAgiExceptionCopyright © 2004–2022. All rights reserved.