Uses of Class
net.sf.asterisk.fastagi.AGIException

Packages that use AGIException
net.sf.asterisk.fastagi Provides an implementaion of Asterisk's FastAGI. 
net.sf.asterisk.fastagi.impl Provides private implementations for interfaces defined in the net.sf.asterisk.fastagi package. 
 

Uses of AGIException in net.sf.asterisk.fastagi
 

Subclasses of AGIException in net.sf.asterisk.fastagi
 class AGIHangupException
          The AGIHangupException is thrown if the channel has been hang up while processing the AGIRequest.
 class AGINetworkException
          The AGINetworkException usally wraps an IOException denoting a network problem when 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 net.sf.asterisk.fastagi that throw AGIException
protected  void BaseAGIScript.answer()
          Answers the channel.
 void AGIChannel.answer()
          Answers the channel.
protected  void AbstractAGIScript.answer(AGIChannel channel)
          Deprecated. Answers the channel.
protected  int AbstractAGIScript.exec(AGIChannel channel, java.lang.String application)
          Deprecated. Executes the given command.
protected  int AbstractAGIScript.exec(AGIChannel channel, java.lang.String application, java.lang.String options)
          Deprecated. Executes the given command.
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 AbstractAGIScript.execCommand(AGIChannel channel, java.lang.String application)
          Deprecated. use AbstractAGIScript.exec(AGIChannel, String) instead
protected  int AbstractAGIScript.execCommand(AGIChannel channel, java.lang.String application, java.lang.String options)
          Deprecated. use AbstractAGIScript.exec(AGIChannel, String, String) instead
protected  int BaseAGIScript.getChannelStatus()
          Returns the status of the channel.
Return values: 0 Channel is down and available 1 Channel is down, but reserved 2 Channel is off hook 3 Digits (or equivalent) have been dialed 4 Line is ringing 5 Remote end is ringing 6 Line is up 7 Line is busy
 int AGIChannel.getChannelStatus()
          Returns the status of the channel.
Return values: 0 Channel is down and available 1 Channel is down, but reserved 2 Channel is off hook 3 Digits (or equivalent) have been dialed 4 Line is ringing 5 Remote end is ringing 6 Line is up 7 Line is busy
protected  int AbstractAGIScript.getChannelStatus(AGIChannel channel)
          Deprecated. Returns the status of the channel.
Return values: 0 Channel is down and available 1 Channel is down, but reserved 2 Channel is off hook 3 Digits (or equivalent) have been dialed 4 Line is ringing 5 Remote end is ringing 6 Line is up 7 Line is busy
protected  java.lang.String AbstractAGIScript.getData(AGIChannel channel, java.lang.String file)
          Deprecated. Plays the given file and waits for the user to enter DTMF digits until he presses '#'.
protected  java.lang.String AbstractAGIScript.getData(AGIChannel channel, java.lang.String file, int timeout)
          Deprecated. Plays the given file and waits for the user to enter DTMF digits until he presses '#' or the timeout occurs.
protected  java.lang.String AbstractAGIScript.getData(AGIChannel channel, java.lang.String file, int timeout, int maxDigits)
          Deprecated. 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.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.
Available since Asterisk 1.2.
 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.
Available since Asterisk 1.2.
protected  java.lang.String BaseAGIScript.getFullVariable(java.lang.String name, java.lang.String channel)
          Returns the value of the given channel variable.
Available since Asterisk 1.2.
 java.lang.String AGIChannel.getFullVariable(java.lang.String name, java.lang.String channel)
          Returns the value of the given channel variable.
Available since Asterisk 1.2.
protected  char AbstractAGIScript.getOption(AGIChannel channel, java.lang.String file, java.lang.String escapeDigits)
          Deprecated. Plays the given file, and waits for the user to press one of the given digits.
protected  char AbstractAGIScript.getOption(AGIChannel channel, java.lang.String file, java.lang.String escapeDigits, int timeout)
          Deprecated. 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)
          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 AbstractAGIScript.getVariable(AGIChannel channel, java.lang.String name)
          Deprecated. Returns the value of the given channel variable.
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 AbstractAGIScript.hangup(AGIChannel channel)
          Deprecated. 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 AbstractAGIScript.playMusicOnHold(AGIChannel channel)
          Deprecated. Plays music on hold from the default music on hold class.
protected  void AbstractAGIScript.playMusicOnHold(AGIChannel channel, java.lang.String musicOnHoldClass)
          Deprecated. Plays music on hold from the given 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.
 AGIReply AGIReader.readReply()
          Reads one reply to an AGICommand from Asterisk.
 AGIRequest AGIReader.readRequest()
          Reads the initial request data from Asterisk.
protected  void AbstractAGIScript.sayAlpha(AGIChannel channel, java.lang.String text)
          Deprecated. Says the given character string.
protected  char AbstractAGIScript.sayAlpha(AGIChannel channel, java.lang.String text, java.lang.String escapeDigits)
          Deprecated. Says the given character string, returning early if any of the given DTMF number are received on the channel.
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.
Available since Asterisk 1.2.
 void AGIChannel.sayDateTime(long time)
          Says the given time.
Available since Asterisk 1.2.
protected  char BaseAGIScript.sayDateTime(long time, java.lang.String escapeDigits)
          Says the given time and allows interruption by one of the given escape digits.
Available since Asterisk 1.2.
 char AGIChannel.sayDateTime(long time, java.lang.String escapeDigits)
          Says the given time and allows interruption by one of the given escape digits.
Available since Asterisk 1.2.
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.
Available since Asterisk 1.2.
 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.
Available since Asterisk 1.2.
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.
Available since Asterisk 1.2.
 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.
Available since Asterisk 1.2.
protected  void AbstractAGIScript.sayDigits(AGIChannel channel, java.lang.String digits)
          Deprecated. Says the given digit string.
protected  char AbstractAGIScript.sayDigits(AGIChannel channel, java.lang.String digits, java.lang.String escapeDigits)
          Deprecated. Says the given number, returning early if any of the given DTMF number are received on the channel.
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 AbstractAGIScript.sayNumber(AGIChannel channel, java.lang.String number)
          Deprecated. Says the given number.
protected  char AbstractAGIScript.sayNumber(AGIChannel channel, java.lang.String number, java.lang.String escapeDigits)
          Deprecated. 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 AbstractAGIScript.sayPhonetic(AGIChannel channel, java.lang.String text)
          Deprecated. Says the given character string with phonetics.
protected  char AbstractAGIScript.sayPhonetic(AGIChannel channel, java.lang.String text, java.lang.String escapeDigits)
          Deprecated. Says the given character string with phonetics, 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 AbstractAGIScript.sayTime(AGIChannel channel, long time)
          Deprecated. Says the given time.
protected  char AbstractAGIScript.sayTime(AGIChannel channel, long time, java.lang.String escapeDigits)
          Deprecated. Says the given time, 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.
 void AGIWriter.sendCommand(AGICommand command)
          Sends the given command to the Asterisk server.
 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 AbstractAGIScript.setAutoHangup(AGIChannel channel, int time)
          Deprecated. Cause the channel to automatically hangup at the given number of seconds in the future.
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 AbstractAGIScript.setCallerId(AGIChannel channel, java.lang.String callerId)
          Deprecated. Sets the caller id on the current channel.
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 AbstractAGIScript.setContext(AGIChannel channel, java.lang.String context)
          Deprecated. Sets the context for continuation upon exiting the application.
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 AbstractAGIScript.setExtension(AGIChannel channel, java.lang.String extension)
          Deprecated. Sets the extension 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 AbstractAGIScript.setPriority(AGIChannel channel, java.lang.String priority)
          Deprecated. Sets the priority or label 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 AbstractAGIScript.setVariable(AGIChannel channel, java.lang.String name, java.lang.String value)
          Deprecated. Sets the value of the given channel variable to a new value.
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 AbstractAGIScript.stopMusicOnHold(AGIChannel channel)
          Deprecated. Stops playing music on hold.
protected  void AbstractAGIScript.streamFile(AGIChannel channel, java.lang.String file)
          Deprecated. Plays the given file.
protected  char AbstractAGIScript.streamFile(AGIChannel channel, java.lang.String file, java.lang.String escapeDigits)
          Deprecated. Plays the given file and allows the user to escape by pressing one of the given digit.
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  char AbstractAGIScript.waitForDigit(AGIChannel channel, int timeout)
          Deprecated. Waits up to 'timeout' milliseconds to receive a DTMF digit.
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 net.sf.asterisk.fastagi.impl
 

Methods in net.sf.asterisk.fastagi.impl that throw AGIException
 void AGIChannelImpl.answer()
           
 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)
           
 AGIReply AGIReaderImpl.readReply()
           
 AGIRequest AGIReaderImpl.readRequest()
           
 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)
           
 void AGIWriterImpl.sendCommand(AGICommand command)
           
 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)
           
 char AGIChannelImpl.waitForDigit(int timeout)
           
 



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