|
Asterisk-Java | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use AgiException | |
|---|---|
| org.asteriskjava.fastagi | Provides an implementaion of Asterisk's FastAGI. |
| org.asteriskjava.fastagi.internal | Provides private implementations for interfaces defined in the org.asteriskjava.fastagi package. |
| Uses of AgiException in org.asteriskjava.fastagi |
|---|
| Subclasses of AgiException in org.asteriskjava.fastagi | |
|---|---|
class |
AgiHangupException
The AgiHangupException is thrown if the channel is hung up while processing the AgiRequest. |
class |
AgiNetworkException
The AgiNetworkException usally wraps an IOException denoting a network problem while talking to the Asterisk server. |
class |
InvalidCommandSyntaxException
An InvalidCommandSyntaxException is thrown when the reader receives a reply with status code 520. |
class |
InvalidOrUnknownCommandException
An InvalidOrUnknownCommandException is thrown when the reader receives a reply with status code 510. |
| Methods in org.asteriskjava.fastagi that throw AgiException | |
|---|---|
void |
AgiChannel.answer()
Answers the channel. |
void |
AgiOperations.answer()
Answers the channel. |
void |
AgiChannel.controlStreamFile(java.lang.String file)
Plays the given file allowing the user to control the streaming by using "#" for forward and "*" for rewind. |
void |
AgiOperations.controlStreamFile(java.lang.String file)
Plays the given file allowing the user to control the streaming by using "#" for forward and "*" for rewind. |
char |
AgiChannel.controlStreamFile(java.lang.String file,
java.lang.String escapeDigits)
Plays the given file allowing the user to control the streaming by using "#" for forward and "*" for rewind. |
char |
AgiOperations.controlStreamFile(java.lang.String file,
java.lang.String escapeDigits)
Plays the given file allowing the user to control the streaming by using "#" for forward and "*" for rewind. |
char |
AgiChannel.controlStreamFile(java.lang.String file,
java.lang.String escapeDigits,
int offset)
Plays the given file allowing the user to control the streaming by using "#" for forward and "*" for rewind. |
char |
AgiOperations.controlStreamFile(java.lang.String file,
java.lang.String escapeDigits,
int offset)
Plays the given file allowing the user to control the streaming by using "#" for forward and "*" for rewind. |
char |
AgiChannel.controlStreamFile(java.lang.String file,
java.lang.String escapeDigits,
int offset,
java.lang.String forwardDigit,
java.lang.String rewindDigit,
java.lang.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. |
char |
AgiOperations.controlStreamFile(java.lang.String file,
java.lang.String escapeDigits,
int offset,
java.lang.String forwardDigit,
java.lang.String rewindDigit,
java.lang.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 |
AgiChannel.databaseDel(java.lang.String family,
java.lang.String key)
Deletes an entry in the Asterisk database for a given family and key. |
void |
AgiOperations.databaseDel(java.lang.String family,
java.lang.String key)
Deletes an entry in the Asterisk database for a given family and key. |
void |
AgiChannel.databaseDelTree(java.lang.String family)
Deletes a whole family of entries in the Asterisk database. |
void |
AgiOperations.databaseDelTree(java.lang.String family)
Deletes a whole family of entries in the Asterisk database. |
void |
AgiChannel.databaseDelTree(java.lang.String family,
java.lang.String keytree)
Deletes all entries of a given family in the Asterisk database that have a key that starts with a given prefix. |
void |
AgiOperations.databaseDelTree(java.lang.String family,
java.lang.String keytree)
Deletes all entries of a given family in the Asterisk database that have a key that starts with a given prefix. |
java.lang.String |
AgiChannel.databaseGet(java.lang.String family,
java.lang.String key)
Retrieves an entry in the Asterisk database for a given family and key. |
java.lang.String |
AgiOperations.databaseGet(java.lang.String family,
java.lang.String key)
Retrieves an entry in the Asterisk database for a given family and key. |
void |
AgiChannel.databasePut(java.lang.String family,
java.lang.String key,
java.lang.String value)
Adds or updates an entry in the Asterisk database for a given family, key, and value. |
void |
AgiOperations.databasePut(java.lang.String family,
java.lang.String key,
java.lang.String value)
Adds or updates an entry in the Asterisk database for a given family, key, and value. |
int |
AgiChannel.exec(java.lang.String application)
Executes the given command. |
int |
AgiOperations.exec(java.lang.String application)
Executes the given command. |
int |
AgiChannel.exec(java.lang.String application,
java.lang.String options)
Executes the given command. |
int |
AgiOperations.exec(java.lang.String application,
java.lang.String options)
Executes the given command. |
int |
AgiChannel.getChannelStatus()
Returns the status of the channel. |
int |
AgiOperations.getChannelStatus()
Returns the status of the channel. |
java.lang.String |
AgiChannel.getData(java.lang.String file)
Plays the given file and waits for the user to enter DTMF digits until he presses '#'. |
java.lang.String |
AgiOperations.getData(java.lang.String file)
Plays the given file and waits for the user to enter DTMF digits until he presses '#'. |
java.lang.String |
AgiOperations.getData(java.lang.String file,
int timeout)
Plays the given file and waits for the user to enter DTMF digits until he presses '#' or the timeout occurs. |
java.lang.String |
AgiOperations.getData(java.lang.String file,
int 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. |
java.lang.String |
AgiChannel.getData(java.lang.String file,
long timeout)
Plays the given file and waits for the user to enter DTMF digits until he presses '#' or the timeout occurs. |
java.lang.String |
AgiChannel.getData(java.lang.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. |
java.lang.String |
AgiChannel.getFullVariable(java.lang.String name)
Returns the value of the current channel variable, unlike getVariable() this method understands complex variable names and builtin variables. |
java.lang.String |
AgiOperations.getFullVariable(java.lang.String name)
Returns the value of the current channel variable, unlike getVariable() this method understands complex variable names and builtin variables. |
java.lang.String |
AgiChannel.getFullVariable(java.lang.String name,
java.lang.String channel)
Returns the value of the given channel variable. |
java.lang.String |
AgiOperations.getFullVariable(java.lang.String name,
java.lang.String channel)
Returns the value of the given channel variable. |
char |
AgiChannel.getOption(java.lang.String file,
java.lang.String escapeDigits)
Plays the given file, and waits for the user to press one of the given digits. |
char |
AgiOperations.getOption(java.lang.String file,
java.lang.String escapeDigits)
Plays the given file, and waits for the user to press one of the given digits. |
char |
AgiChannel.getOption(java.lang.String file,
java.lang.String escapeDigits,
int timeout)
Plays the given file, and waits for the user to press one of the given digits. |
char |
AgiOperations.getOption(java.lang.String file,
java.lang.String escapeDigits,
int timeout)
Plays the given file, and waits for the user to press one of the given digits. |
java.lang.String |
AgiChannel.getVariable(java.lang.String name)
Returns the value of the current channel variable. |
java.lang.String |
AgiOperations.getVariable(java.lang.String name)
Returns the value of the given channel variable. |
void |
AgiChannel.hangup()
Hangs the channel up. |
void |
AgiOperations.hangup()
Hangs the channel up. |
void |
AgiChannel.playMusicOnHold()
Plays music on hold from the default music on hold class. |
void |
AgiOperations.playMusicOnHold()
Plays music on hold from the default music on hold class. |
void |
AgiChannel.playMusicOnHold(java.lang.String musicOnHoldClass)
Plays music on hold from the given music on hold class. |
void |
AgiOperations.playMusicOnHold(java.lang.String musicOnHoldClass)
Plays music on hold from the given music on hold class. |
void |
AgiChannel.recordFile(java.lang.String file,
java.lang.String format,
java.lang.String escapeDigits,
int timeout)
Record to a file until a given dtmf digit in the sequence is received. |
void |
AgiOperations.recordFile(java.lang.String file,
java.lang.String format,
java.lang.String escapeDigits,
int timeout)
Record to a file until a given dtmf digit in the sequence is received. |
void |
AgiChannel.recordFile(java.lang.String file,
java.lang.String format,
java.lang.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 |
AgiOperations.recordFile(java.lang.String file,
java.lang.String format,
java.lang.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 |
AgiChannel.sayAlpha(java.lang.String text)
Says the given character string. |
void |
AgiOperations.sayAlpha(java.lang.String text)
Says the given character string. |
char |
AgiChannel.sayAlpha(java.lang.String text,
java.lang.String escapeDigits)
Says the given character string, returning early if any of the given DTMF number are received on the channel. |
char |
AgiOperations.sayAlpha(java.lang.String text,
java.lang.String escapeDigits)
Says the given character string, returning early if any of the given DTMF number are received on the channel. |
void |
AgiChannel.sayDateTime(long time)
Says the given time. |
void |
AgiOperations.sayDateTime(long time)
Says the given time. |
char |
AgiChannel.sayDateTime(long time,
java.lang.String escapeDigits)
Says the given time and allows interruption by one of the given escape digits. |
char |
AgiOperations.sayDateTime(long time,
java.lang.String escapeDigits)
Says the given time and allows interruption by one of the given escape digits. |
char |
AgiChannel.sayDateTime(long time,
java.lang.String escapeDigits,
java.lang.String format)
Says the given time in the given format and allows interruption by one of the given escape digits. |
char |
AgiOperations.sayDateTime(long time,
java.lang.String escapeDigits,
java.lang.String format)
Says the given time in the given format and allows interruption by one of the given escape digits. |
char |
AgiChannel.sayDateTime(long time,
java.lang.String escapeDigits,
java.lang.String format,
java.lang.String timezone)
Says the given time in the given format and timezone and allows interruption by one of the given escape digits. |
char |
AgiOperations.sayDateTime(long time,
java.lang.String escapeDigits,
java.lang.String format,
java.lang.String timezone)
Says the given time in the given format and timezone and allows interruption by one of the given escape digits. |
void |
AgiChannel.sayDigits(java.lang.String digits)
Says the given digit string. |
void |
AgiOperations.sayDigits(java.lang.String digits)
Says the given digit string. |
char |
AgiChannel.sayDigits(java.lang.String digits,
java.lang.String escapeDigits)
Says the given number, returning early if any of the given DTMF number are received on the channel. |
char |
AgiOperations.sayDigits(java.lang.String digits,
java.lang.String escapeDigits)
Says the given number, returning early if any of the given DTMF number are received on the channel. |
void |
AgiChannel.sayNumber(java.lang.String number)
Says the given number. |
void |
AgiOperations.sayNumber(java.lang.String number)
Says the given number. |
char |
AgiChannel.sayNumber(java.lang.String number,
java.lang.String escapeDigits)
Says the given number, returning early if any of the given DTMF number are received on the channel. |
char |
AgiOperations.sayNumber(java.lang.String number,
java.lang.String escapeDigits)
Says the given number, returning early if any of the given DTMF number are received on the channel. |
void |
AgiChannel.sayPhonetic(java.lang.String text)
Says the given character string with phonetics. |
void |
AgiOperations.sayPhonetic(java.lang.String text)
Says the given character string with phonetics. |
char |
AgiChannel.sayPhonetic(java.lang.String text,
java.lang.String escapeDigits)
Says the given character string with phonetics, returning early if any of the given DTMF number are received on the channel. |
char |
AgiOperations.sayPhonetic(java.lang.String text,
java.lang.String escapeDigits)
Says the given character string with phonetics, returning early if any of the given DTMF number are received on the channel. |
void |
AgiChannel.sayTime(long time)
Says the given time. |
void |
AgiOperations.sayTime(long time)
Says the given time. |
char |
AgiChannel.sayTime(long time,
java.lang.String escapeDigits)
Says the given time, returning early if any of the given DTMF number are received on the channel. |
char |
AgiOperations.sayTime(long time,
java.lang.String escapeDigits)
Says the given time, returning early if any of the given DTMF number are received on the channel. |
AgiReply |
AgiChannel.sendCommand(AgiCommand command)
Sends a command to asterisk and returns the corresponding reply. |
AgiReply |
AgiOperations.sendCommand(AgiCommand command)
Sends the given command to the channel attached to the current thread. |
void |
AgiScript.service(AgiRequest request,
AgiChannel channel)
The service method is called by the AsteriskServer whenever this AgiScript should handle an incoming AgiRequest. |
void |
AgiChannel.setAutoHangup(int time)
Cause the channel to automatically hangup at the given number of seconds in the future. |
void |
AgiOperations.setAutoHangup(int time)
Cause the channel to automatically hangup at the given number of seconds in the future. |
void |
AgiChannel.setCallerId(java.lang.String callerId)
Sets the caller id on the current channel. |
void |
AgiOperations.setCallerId(java.lang.String callerId)
Sets the caller id on the current channel. |
void |
AgiChannel.setContext(java.lang.String context)
Sets the context for continuation upon exiting the application. |
void |
AgiOperations.setContext(java.lang.String context)
Sets the context for continuation upon exiting the application. |
void |
AgiChannel.setExtension(java.lang.String extension)
Sets the extension for continuation upon exiting the application. |
void |
AgiOperations.setExtension(java.lang.String extension)
Sets the extension for continuation upon exiting the application. |
void |
AgiChannel.setPriority(java.lang.String priority)
Sets the priority or label for continuation upon exiting the application. |
void |
AgiOperations.setPriority(java.lang.String priority)
Sets the priority or label for continuation upon exiting the application. |
void |
AgiChannel.setVariable(java.lang.String name,
java.lang.String value)
Sets the value of the current channel variable to a new value. |
void |
AgiOperations.setVariable(java.lang.String name,
java.lang.String value)
Sets the value of the given channel variable to a new value. |
void |
AgiChannel.stopMusicOnHold()
Stops playing music on hold. |
void |
AgiOperations.stopMusicOnHold()
Stops playing music on hold. |
void |
AgiChannel.streamFile(java.lang.String file)
Plays the given file. |
void |
AgiOperations.streamFile(java.lang.String file)
Plays the given file. |
char |
AgiChannel.streamFile(java.lang.String file,
java.lang.String escapeDigits)
Plays the given file and allows the user to escape by pressing one of the given digit. |
char |
AgiOperations.streamFile(java.lang.String file,
java.lang.String escapeDigits)
Plays the given file and allows the user to escape by pressing one of the given digit. |
void |
AgiChannel.verbose(java.lang.String message,
int level)
Sends a message to the Asterisk console via the verbose message system. |
void |
AgiOperations.verbose(java.lang.String message,
int level)
Sends a message to the Asterisk console via the verbose message system. |
char |
AgiChannel.waitForDigit(int timeout)
Waits up to 'timeout' milliseconds to receive a DTMF digit. |
char |
AgiOperations.waitForDigit(int timeout)
Waits up to 'timeout' milliseconds to receive a DTMF digit. |
| Uses of AgiException in org.asteriskjava.fastagi.internal |
|---|
| Methods in org.asteriskjava.fastagi.internal that throw AgiException | |
|---|---|
void |
AgiChannelImpl.answer()
|
void |
AgiChannelImpl.controlStreamFile(java.lang.String file)
|
char |
AgiChannelImpl.controlStreamFile(java.lang.String file,
java.lang.String escapeDigits)
|
char |
AgiChannelImpl.controlStreamFile(java.lang.String file,
java.lang.String escapeDigits,
int offset)
|
char |
AgiChannelImpl.controlStreamFile(java.lang.String file,
java.lang.String escapeDigits,
int offset,
java.lang.String forwardDigit,
java.lang.String rewindDigit,
java.lang.String pauseDigit)
|
void |
AgiChannelImpl.databaseDel(java.lang.String family,
java.lang.String key)
|
void |
AgiChannelImpl.databaseDelTree(java.lang.String family)
|
void |
AgiChannelImpl.databaseDelTree(java.lang.String family,
java.lang.String keytree)
|
java.lang.String |
AgiChannelImpl.databaseGet(java.lang.String family,
java.lang.String key)
|
void |
AgiChannelImpl.databasePut(java.lang.String family,
java.lang.String key,
java.lang.String value)
|
int |
AgiChannelImpl.exec(java.lang.String application)
|
int |
AgiChannelImpl.exec(java.lang.String application,
java.lang.String options)
|
int |
AgiChannelImpl.getChannelStatus()
|
java.lang.String |
AgiChannelImpl.getData(java.lang.String file)
|
java.lang.String |
AgiChannelImpl.getData(java.lang.String file,
long timeout)
|
java.lang.String |
AgiChannelImpl.getData(java.lang.String file,
long timeout,
int maxDigits)
|
java.lang.String |
AgiChannelImpl.getFullVariable(java.lang.String name)
|
java.lang.String |
AgiChannelImpl.getFullVariable(java.lang.String name,
java.lang.String channel)
|
char |
AgiChannelImpl.getOption(java.lang.String file,
java.lang.String escapeDigits)
|
char |
AgiChannelImpl.getOption(java.lang.String file,
java.lang.String escapeDigits,
int timeout)
|
java.lang.String |
AgiChannelImpl.getVariable(java.lang.String name)
|
void |
AgiChannelImpl.hangup()
|
void |
AgiChannelImpl.playMusicOnHold()
|
void |
AgiChannelImpl.playMusicOnHold(java.lang.String musicOnHoldClass)
|
void |
AgiChannelImpl.recordFile(java.lang.String file,
java.lang.String format,
java.lang.String escapeDigits,
int timeout)
|
void |
AgiChannelImpl.recordFile(java.lang.String file,
java.lang.String format,
java.lang.String escapeDigits,
int timeout,
int offset,
boolean beep,
int maxSilence)
|
void |
AgiChannelImpl.sayAlpha(java.lang.String text)
|
char |
AgiChannelImpl.sayAlpha(java.lang.String text,
java.lang.String escapeDigits)
|
void |
AgiChannelImpl.sayDateTime(long time)
|
char |
AgiChannelImpl.sayDateTime(long time,
java.lang.String escapeDigits)
|
char |
AgiChannelImpl.sayDateTime(long time,
java.lang.String escapeDigits,
java.lang.String format)
|
char |
AgiChannelImpl.sayDateTime(long time,
java.lang.String escapeDigits,
java.lang.String format,
java.lang.String timezone)
|
void |
AgiChannelImpl.sayDigits(java.lang.String digits)
|
char |
AgiChannelImpl.sayDigits(java.lang.String digits,
java.lang.String escapeDigits)
|
void |
AgiChannelImpl.sayNumber(java.lang.String number)
|
char |
AgiChannelImpl.sayNumber(java.lang.String number,
java.lang.String escapeDigits)
|
void |
AgiChannelImpl.sayPhonetic(java.lang.String text)
|
char |
AgiChannelImpl.sayPhonetic(java.lang.String text,
java.lang.String escapeDigits)
|
void |
AgiChannelImpl.sayTime(long time)
|
char |
AgiChannelImpl.sayTime(long time,
java.lang.String escapeDigits)
|
AgiReply |
AgiChannelImpl.sendCommand(AgiCommand command)
|
void |
AgiChannelImpl.setAutoHangup(int time)
|
void |
AgiChannelImpl.setCallerId(java.lang.String callerId)
|
void |
AgiChannelImpl.setContext(java.lang.String context)
|
void |
AgiChannelImpl.setExtension(java.lang.String extension)
|
void |
AgiChannelImpl.setPriority(java.lang.String priority)
|
void |
AgiChannelImpl.setVariable(java.lang.String name,
java.lang.String value)
|
void |
AgiChannelImpl.stopMusicOnHold()
|
void |
AgiChannelImpl.streamFile(java.lang.String file)
|
char |
AgiChannelImpl.streamFile(java.lang.String file,
java.lang.String escapeDigits)
|
void |
AgiChannelImpl.verbose(java.lang.String message,
int level)
|
char |
AgiChannelImpl.waitForDigit(int timeout)
|
|
Asterisk-Java | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||