[Asterisk-java-users] Error Handling with FastAGI
Brought to you by:
srt
From: Aaron E. <aar...@gm...> - 2008-07-10 14:48:26
|
With asterisk 1.4 and above, there is a channel variable AGISTATUS that can be set to SUCCESS or FAILURE to indicate whether the AGI execution was successful. In asterisk-java, there is an AgiException class that can be thrown from the service method of an AgiScript implementation. Question: If I throw an AgiException, does the server handle setting the AGISTATUS variable? Or should I gracefully handle all exceptions and execution errors and set the channel variable myself? What do most people do? Thanks in advance for your suggestions... |