Asterisk-Java

Uses of Class
org.asteriskjava.fastagi.AgiException

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
protected  void BaseAgiScript.answer()
          Answers the channel.
 void AgiChannel.answer()
          Answers the channel.
protected  void BaseAgiScript.controlStreamFile(java.lang.String file)
          Plays the given file allowing the user to control the streaming by using "#" for forward and "*" for rewind.
 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.
protected  char BaseAgiScript.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)
          Plays the given file allowing the user to control the streaming by using "#" for forward and "*" for rewind.
protected  char BaseAgiScript.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)
          Plays the given file allowing the user to control the streaming by using "#" for forward and "*" for rewind.
protected  char BaseAgiScript.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 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.
protected  void BaseAgiScript.databaseDel(java.lang.String family, java.lang.String key)
          Deletes an entry in the Asterisk database for a given family and key.
 void AgiChannel.databaseDel(java.lang.String family, java.lang.String key)
          Deletes an entry in the Asterisk database for a given family and key.
protected  void BaseAgiScript.databaseDelTree(java.lang.String family)
          Deletes a whole family of entries in the Asterisk database.
 void AgiChannel.databaseDelTree(java.lang.String family)
          Deletes a whole family of entries in the Asterisk database.
protected  void BaseAgiScript.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 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.
protected  java.lang.String BaseAgiScript.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 AgiChannel.databaseGet(java.lang.String family, java.lang.String key)
          Retrieves an entry in the Asterisk database for a given family and key.
protected  void BaseAgiScript.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 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.
protected  int BaseAgiScript.exec(java.lang.String application)
          Executes the given command.
 int AgiChannel.exec(java.lang.String application)
          Executes the given command.
protected  int BaseAgiScript.exec(java.lang.String application, java.lang.String options)
          Executes the given command.
 int AgiChannel.exec(java.lang.String application, java.lang.String options)
          Executes the given command.
protected  int BaseAgiScript.getChannelStatus()
          Returns the status of the channel.
 int AgiChannel.getChannelStatus()
          Returns the status of the channel.
protected  java.lang.String BaseAgiScript.getData(java.lang.String file)
          Plays the given file and waits for the user to enter DTMF digits until he presses '#'.
 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 '#'.
protected  java.lang.String BaseAgiScript.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.
protected  java.lang.String BaseAgiScript.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.
protected  java.lang.String BaseAgiScript.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)
          Returns the value of the current channel variable, unlike getVariable() this method understands complex variable names and builtin variables.
protected  java.lang.String BaseAgiScript.getFullVariable(java.lang.String name, java.lang.String channel)
          Returns the value of the given channel variable.
 java.lang.String AgiChannel.getFullVariable(java.lang.String name, java.lang.String channel)
          Returns the value of the given channel variable.
protected  char BaseAgiScript.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)
          Plays the given file, and waits for the user to press one of the given digits.
protected  char BaseAgiScript.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 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.
protected  java.lang.String BaseAgiScript.getVariable(java.lang.String name)
          Returns the value of the given channel variable.
 java.lang.String AgiChannel.getVariable(java.lang.String name)
          Returns the value of the current channel variable.
protected  void BaseAgiScript.hangup()
          Hangs the channel up.
 void AgiChannel.hangup()
          Hangs the channel up.
protected  void BaseAgiScript.playMusicOnHold()
          Plays music on hold from the default music on hold class.
 void AgiChannel.playMusicOnHold()
          Plays music on hold from the default music on hold class.
protected  void BaseAgiScript.playMusicOnHold(java.lang.String musicOnHoldClass)
          Plays music on hold from the given music on hold class.
 void AgiChannel.playMusicOnHold(java.lang.String musicOnHoldClass)
          Plays music on hold from the given music on hold class.
protected  void BaseAgiScript.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)
          Record to a file until a given dtmf digit in the sequence is received.
protected  void BaseAgiScript.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.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.
protected  void BaseAgiScript.sayAlpha(java.lang.String text)
          Says the given character string.
 void AgiChannel.sayAlpha(java.lang.String text)
          Says the given character string.
protected  char BaseAgiScript.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 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.
protected  void BaseAgiScript.sayDateTime(long time)
          Says the given time.
 void AgiChannel.sayDateTime(long time)
          Says the given time.
protected  char BaseAgiScript.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)
          Says the given time and allows interruption by one of the given escape digits.
protected  char BaseAgiScript.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)
          Says the given time in the given format and allows interruption by one of the given escape digits.
protected  char BaseAgiScript.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 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.
protected  void BaseAgiScript.sayDigits(java.lang.String digits)
          Says the given digit string.
 void AgiChannel.sayDigits(java.lang.String digits)
          Says the given digit string.
protected  char BaseAgiScript.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 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.
protected  void BaseAgiScript.sayNumber(java.lang.String number)
          Says the given number.
 void AgiChannel.sayNumber(java.lang.String number)
          Says the given number.
protected  char BaseAgiScript.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 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.
protected  void BaseAgiScript.sayPhonetic(java.lang.String text)
          Says the given character string with phonetics.
 void AgiChannel.sayPhonetic(java.lang.String text)
          Says the given character string with phonetics.
protected  char BaseAgiScript.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 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.
protected  void BaseAgiScript.sayTime(long time)
          Says the given time.
 void AgiChannel.sayTime(long time)
          Says the given time.
protected  char BaseAgiScript.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 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.
 AgiReply AgiChannel.sendCommand(AgiCommand command)
          Sends a command to asterisk and returns the corresponding reply.
 void AgiScript.service(AgiRequest request, AgiChannel channel)
          The service method is called by the AsteriskServer whenever this AgiScript should handle an incoming AgiRequest.
protected  void BaseAgiScript.setAutoHangup(int time)
          Cause the channel to automatically hangup at the given number of seconds in the future.
 void AgiChannel.setAutoHangup(int time)
          Cause the channel to automatically hangup at the given number of seconds in the future.
protected  void BaseAgiScript.setCallerId(java.lang.String callerId)
          Sets the caller id on the current channel.
 void AgiChannel.setCallerId(java.lang.String callerId)
          Sets the caller id on the current channel.
protected  void BaseAgiScript.setContext(java.lang.String context)
          Sets the context for continuation upon exiting the application.
 void AgiChannel.setContext(java.lang.String context)
          Sets the context for continuation upon exiting the application.
protected  void BaseAgiScript.setExtension(java.lang.String extension)
          Sets the extension for continuation upon exiting the application.
 void AgiChannel.setExtension(java.lang.String extension)
          Sets the extension for continuation upon exiting the application.
protected  void BaseAgiScript.setPriority(java.lang.String priority)
          Sets the priority or label for continuation upon exiting the application.
 void AgiChannel.setPriority(java.lang.String priority)
          Sets the priority or label for continuation upon exiting the application.
protected  void BaseAgiScript.setVariable(java.lang.String name, java.lang.String value)
          Sets the value of the given channel variable to a new value.
 void AgiChannel.setVariable(java.lang.String name, java.lang.String value)
          Sets the value of the current channel variable to a new value.
protected  void BaseAgiScript.stopMusicOnHold()
          Stops playing music on hold.
 void AgiChannel.stopMusicOnHold()
          Stops playing music on hold.
protected  void BaseAgiScript.streamFile(java.lang.String file)
          Plays the given file.
 void AgiChannel.streamFile(java.lang.String file)
          Plays the given file.
protected  char BaseAgiScript.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 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.
protected  void BaseAgiScript.verbose(java.lang.String message, int level)
          Sends a message to the Asterisk console via the verbose message system.
 void AgiChannel.verbose(java.lang.String message, int level)
          Sends a message to the Asterisk console via the verbose message system.
protected  char BaseAgiScript.waitForDigit(int timeout)
          Waits up to 'timeout' milliseconds to receive a DTMF digit.
 char AgiChannel.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

Copyright © 2004-2006 Stefan Reuter. All Rights Reserved.