[Asterisk-java-cvs] CVS: asterisk-java/src/java/net/sf/asterisk/fastagi/command DatabaseDelCommand.j
Brought to you by:
srt
Update of /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22302/src/java/net/sf/asterisk/fastagi/command Modified Files: DatabaseDelCommand.java SetPriorityCommand.java AGICommand.java DatabaseDelTreeCommand.java SayTimeCommand.java SayNumberCommand.java SetMusicOnCommand.java GetVariableCommand.java DatabasePutCommand.java SetVariableCommand.java SetAutoHangupCommand.java GetDataCommand.java SayPhoneticCommand.java SendImageCommand.java ExecCommand.java SetExtensionCommand.java SendTextCommand.java HangupCommand.java SayDigitsCommand.java ChannelStatusCommand.java StreamFileCommand.java VerboseCommand.java TDDModeCommand.java WaitForDigitCommand.java ReceiveCharCommand.java DatabaseGetCommand.java RecordFileCommand.java Log Message: Index: DatabaseDelCommand.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command/DatabaseDelCommand.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- DatabaseDelCommand.java 5 Mar 2005 22:46:58 -0000 1.1 +++ DatabaseDelCommand.java 8 Mar 2005 16:48:34 -0000 1.2 @@ -17,7 +17,8 @@ package net.sf.asterisk.fastagi.command; /** - * Deletes a family or specific keytree within a family in the Asterisk database.<br> + * Deletes a family or specific keytree within a family in the Asterisk + * database.<br> * Returns 1 if successful, 0 otherwise. * * @author srt @@ -105,6 +106,7 @@ public class DatabaseDelCommand extends public String buildCommand() { - return "DATABASE DELTREE " + escapeAndQuote(family) + (keyTree == null ? "" : " " + escapeAndQuote(keyTree)); + return "DATABASE DELTREE " + escapeAndQuote(family) + + (keyTree == null ? "" : " " + escapeAndQuote(keyTree)); } } Index: SetPriorityCommand.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command/SetPriorityCommand.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- SetPriorityCommand.java 5 Mar 2005 22:46:58 -0000 1.1 +++ SetPriorityCommand.java 8 Mar 2005 16:48:34 -0000 1.2 @@ -37,7 +37,8 @@ public class SetPriorityCommand extends /** * Creates a new SetPriorityCommand. * - * @param priority the priority for continuation upon exiting the application. + * @param priority the priority for continuation upon exiting the + * application. */ public SetPriorityCommand(int priority) { @@ -57,7 +58,8 @@ public class SetPriorityCommand extends /** * Sets the priority for continuation upon exiting the application. * - * @param priority the priority for continuation upon exiting the application. + * @param priority the priority for continuation upon exiting the + * application. */ public void setPriority(int priority) { Index: AGICommand.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command/AGICommand.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -p -r1.2 -r1.3 --- AGICommand.java 5 Mar 2005 23:22:05 -0000 1.2 +++ AGICommand.java 8 Mar 2005 16:48:34 -0000 1.3 @@ -60,7 +60,8 @@ public abstract class AGICommand impleme public String toString() { - return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE); + return ToStringBuilder.reflectionToString(this, + ToStringStyle.MULTI_LINE_STYLE); } public boolean equals(Object o) Index: DatabaseDelTreeCommand.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command/DatabaseDelTreeCommand.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- DatabaseDelTreeCommand.java 5 Mar 2005 22:46:58 -0000 1.1 +++ DatabaseDelTreeCommand.java 8 Mar 2005 16:48:34 -0000 1.2 @@ -94,6 +94,7 @@ public class DatabaseDelTreeCommand exte public String buildCommand() { - return "DATABASE DEL " + escapeAndQuote(family) + " " + escapeAndQuote(key); + return "DATABASE DEL " + escapeAndQuote(family) + " " + + escapeAndQuote(key); } } Index: SayTimeCommand.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command/SayTimeCommand.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- SayTimeCommand.java 5 Mar 2005 22:46:58 -0000 1.1 +++ SayTimeCommand.java 8 Mar 2005 16:48:34 -0000 1.2 @@ -17,11 +17,12 @@ package net.sf.asterisk.fastagi.command; /** - * Say a given time, returning early if any of the given DTMF digits are received on the channel.<br> - * Time is the number of seconds elapsed since 00:00:00 on January 1, 1970, Coordinated Universal - * Time (UTC).<br> - * Returns 0 if playback completes without a digit being pressed, or the ASCII numerical value of - * the digit if one was pressed or -1 on error/hangup. + * Say a given time, returning early if any of the given DTMF digits are + * received on the channel.<br> + * Time is the number of seconds elapsed since 00:00:00 on January 1, 1970, + * Coordinated Universal Time (UTC).<br> + * Returns 0 if playback completes without a digit being pressed, or the ASCII + * numerical value of the digit if one was pressed or -1 on error/hangup. * * @author srt * @version $Id$ @@ -58,7 +59,8 @@ public class SayTimeCommand extends AGIC * Creates a new SayTimeCommand. * * @param time the time to say in seconds since 00:00:00 on January 1, 1970. - * @param escapeDigits contains the digits that allow the user to interrupt this command. + * @param escapeDigits contains the digits that allow the user to interrupt + * this command. */ public SayTimeCommand(long time, String interruptDigits) { @@ -99,8 +101,8 @@ public class SayTimeCommand extends AGIC /** * Sets the digits that allow the user to interrupt this command. * - * @param escapeDigits the time that allow the user to interrupt this command or - * <code>null</code> for none. + * @param escapeDigits the time that allow the user to interrupt this + * command or <code>null</code> for none. */ public void setEscapeDigits(String escapeDigits) { Index: SayNumberCommand.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command/SayNumberCommand.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- SayNumberCommand.java 5 Mar 2005 22:46:58 -0000 1.1 +++ SayNumberCommand.java 8 Mar 2005 16:48:34 -0000 1.2 @@ -17,9 +17,10 @@ package net.sf.asterisk.fastagi.command; /** - * Say a given number, returning early if any of the given DTMF number are received on the channel.<br> - * Returns 0 if playback completes without a digit being pressed, or the ASCII numerical value of - * the digit if one was pressed or -1 on error/hangup. + * Say a given number, returning early if any of the given DTMF number are + * received on the channel.<br> + * Returns 0 if playback completes without a digit being pressed, or the ASCII + * numerical value of the digit if one was pressed or -1 on error/hangup. * * @author srt * @version $Id$ @@ -56,7 +57,8 @@ public class SayNumberCommand extends AG * Creates a new SayNumberCommand. * * @param number the number to say. - * @param interruptDigits contains the number that allow the user to interrupt this command. + * @param interruptDigits contains the number that allow the user to + * interrupt this command. */ public SayNumberCommand(String number, String interruptDigits) { @@ -97,8 +99,8 @@ public class SayNumberCommand extends AG /** * Sets the number that allow the user to interrupt this command. * - * @param interruptDigits the number that allow the user to interrupt this command or - * <code>null</code> for none. + * @param interruptDigits the number that allow the user to interrupt this + * command or <code>null</code> for none. */ public void setInterruptDigits(String interruptDigits) { @@ -107,6 +109,7 @@ public class SayNumberCommand extends AG public String buildCommand() { - return "SAY NUMBER " + escapeAndQuote(number) + " " + escapeAndQuote(interruptDigits); + return "SAY NUMBER " + escapeAndQuote(number) + " " + + escapeAndQuote(interruptDigits); } } Index: SetMusicOnCommand.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command/SetMusicOnCommand.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- SetMusicOnCommand.java 5 Mar 2005 22:46:58 -0000 1.1 +++ SetMusicOnCommand.java 8 Mar 2005 16:48:34 -0000 1.2 @@ -36,7 +36,8 @@ public class SetMusicOnCommand extends A private String musicOnHoldClass; /** - * Creates a new SetMusicOnCommand playing music from the default music on hold class. + * Creates a new SetMusicOnCommand playing music from the default music on + * hold class. */ public SetMusicOnCommand() { @@ -46,8 +47,8 @@ public class SetMusicOnCommand extends A /** * Returns the music on hold class to play music from. * - * @return the music on hold class to play music from or <code>null</code> for the default - * class. + * @return the music on hold class to play music from or <code>null</code> + * for the default class. */ public String getMusicOnHoldClass() { @@ -57,8 +58,8 @@ public class SetMusicOnCommand extends A /** * Sets the music on hold class to play music from. * - * @param musicOnHoldClass the music on hold class to play music from or <code>null</code> for - * the default class. + * @param musicOnHoldClass the music on hold class to play music from or + * <code>null</code> for the default class. */ public void setMusicOnHoldClass(String musicOnHoldClass) { @@ -67,6 +68,8 @@ public class SetMusicOnCommand extends A public String buildCommand() { - return "SET MUSIC ON" + (musicOnHoldClass == null ? "" : " " + escapeAndQuote(musicOnHoldClass)); + return "SET MUSIC ON" + + (musicOnHoldClass == null ? "" : " " + + escapeAndQuote(musicOnHoldClass)); } } Index: GetVariableCommand.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command/GetVariableCommand.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- GetVariableCommand.java 5 Mar 2005 22:46:58 -0000 1.1 +++ GetVariableCommand.java 8 Mar 2005 16:48:34 -0000 1.2 @@ -18,8 +18,8 @@ package net.sf.asterisk.fastagi.command; /** * Returns the value of the given channel varible.<br> - * Returns 0 if is not set. Returns 1 if the variable is set and returns the variable in - * parenthesis.<br> + * Returns 0 if is not set. Returns 1 if the variable is set and returns the + * variable in parenthesis.<br> * Example return code: 200 result=1 (testvariable) * * @author srt Index: DatabasePutCommand.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command/DatabasePutCommand.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- DatabasePutCommand.java 5 Mar 2005 22:46:58 -0000 1.1 +++ DatabasePutCommand.java 8 Mar 2005 16:48:34 -0000 1.2 @@ -17,7 +17,8 @@ package net.sf.asterisk.fastagi.command; /** - * Adds or updates an entry in the Asterisk database for a given family, key, and value.<br> + * Adds or updates an entry in the Asterisk database for a given family, key, + * and value.<br> * Returns 1 if successful, 0 otherwise. * * @author srt @@ -121,6 +122,7 @@ public class DatabasePutCommand extends public String buildCommand() { - return "DATABASE PUT " + escapeAndQuote(family) + " " + escapeAndQuote(key) + " " + escapeAndQuote(value); + return "DATABASE PUT " + escapeAndQuote(family) + " " + + escapeAndQuote(key) + " " + escapeAndQuote(value); } } Index: SetVariableCommand.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command/SetVariableCommand.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- SetVariableCommand.java 5 Mar 2005 22:46:58 -0000 1.1 +++ SetVariableCommand.java 8 Mar 2005 16:48:34 -0000 1.2 @@ -93,6 +93,7 @@ public class SetVariableCommand extends public String buildCommand() { - return "SET VARIABLE " + escapeAndQuote(variable) + " " + escapeAndQuote(value); + return "SET VARIABLE " + escapeAndQuote(variable) + " " + + escapeAndQuote(value); } } Index: SetAutoHangupCommand.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command/SetAutoHangupCommand.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- SetAutoHangupCommand.java 5 Mar 2005 22:46:58 -0000 1.1 +++ SetAutoHangupCommand.java 8 Mar 2005 16:48:34 -0000 1.2 @@ -17,9 +17,10 @@ package net.sf.asterisk.fastagi.command; /** - * Cause the channel to automatically hangup at the given number of seconds in the future.<br> - * Of course it can be hungup before then as well. Setting to 0 will cause the autohangup feature to - * be disabled on this channel. + * Cause the channel to automatically hangup at the given number of seconds in + * the future.<br> + * Of course it can be hungup before then as well. Setting to 0 will cause the + * autohangup feature to be disabled on this channel. * * @author srt * @version $Id$ @@ -39,8 +40,9 @@ public class SetAutoHangupCommand extend /** * Creates a new SetAutoHangupCommand. * - * @param time the number of seconds before this channel is automatically hung up.<br> - * 0 disables the autohangup feature. + * @param time the number of seconds before this channel is automatically + * hung up.<br> + * 0 disables the autohangup feature. */ public SetAutoHangupCommand(int time) { @@ -48,9 +50,11 @@ public class SetAutoHangupCommand extend } /** - * Returns the number of seconds before this channel is automatically hung up. + * Returns the number of seconds before this channel is automatically hung + * up. * - * @return the number of seconds before this channel is automatically hung up. + * @return the number of seconds before this channel is automatically hung + * up. */ public int getTime() { @@ -60,8 +64,9 @@ public class SetAutoHangupCommand extend /** * Sets the number of seconds before this channel is automatically hung up. * - * @param time the number of seconds before this channel is automatically hung up.<br> - * 0 disables the autohangup feature. + * @param time the number of seconds before this channel is automatically + * hung up.<br> + * 0 disables the autohangup feature. */ public void setTime(int timeout) { Index: GetDataCommand.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command/GetDataCommand.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- GetDataCommand.java 5 Mar 2005 22:46:58 -0000 1.1 +++ GetDataCommand.java 8 Mar 2005 16:48:34 -0000 1.2 @@ -19,7 +19,8 @@ package net.sf.asterisk.fastagi.command; /** * Stream the given file, and recieve DTMF data.<br> * Returns the digits recieved from the channel at the other end.<br> - * Input ends when the timeout is reached, the maximum number of digits is read or the user presses #. + * Input ends when the timeout is reached, the maximum number of digits is read + * or the user presses #. * * @author srt * @version $Id$ @@ -38,7 +39,8 @@ public class GetDataCommand extends AGIC /** * The timeout to wait for data.<br> - * 0 means standard timeout value, -1 means "ludicrous time" (essentially never times out). + * 0 means standard timeout value, -1 means "ludicrous time" (essentially + * never times out). */ private int timeout; @@ -49,7 +51,8 @@ public class GetDataCommand extends AGIC private int maxDigits; /** - * Creates a new GetDataCommand with default timeout and maxDigits set to 1024. + * Creates a new GetDataCommand with default timeout and maxDigits set to + * 1024. * * @param file the name of the file to stream, must not include extension. */ @@ -65,13 +68,15 @@ public class GetDataCommand extends AGIC * * @param file the name of the file to stream, must not include extension. * @param timeout the timeout to wait for data.<br> - * 0 means standard timeout value, -1 means "ludicrous time" (essentially never times out). + * 0 means standard timeout value, -1 means "ludicrous time" + * (essentially never times out). * @param maxDigits the maximum number of digits to read.<br> - * Must be in [1..1024]. + * Must be in [1..1024]. * * @throws IllegalArgumentException if maxDigits is not in [1..1024] */ - public GetDataCommand(String file, int timeout, int maxDigits) throws IllegalArgumentException + public GetDataCommand(String file, int timeout, int maxDigits) + throws IllegalArgumentException { if (maxDigits < 1 || maxDigits > 1024) { @@ -117,7 +122,8 @@ public class GetDataCommand extends AGIC * Sets the timeout to wait for data. * * @param timeout the timeout to wait for data.<br> - * 0 means standard timeout value, -1 means "ludicrous time" (essentially never times out). + * 0 means standard timeout value, -1 means "ludicrous time" + * (essentially never times out). */ public void setTimeout(int timeout) { @@ -138,7 +144,7 @@ public class GetDataCommand extends AGIC * Sets the maximum number of digits to read. * * @param maxDigits the maximum number of digits to read.<br> - * Must be in [1..1024]. + * Must be in [1..1024]. * * @throws IllegalArgumentException if maxDigits is not in [1..1024] */ @@ -154,6 +160,7 @@ public class GetDataCommand extends AGIC public String buildCommand() { - return "GET DATA " + escapeAndQuote(file) + " " + timeout + " " + maxDigits; + return "GET DATA " + escapeAndQuote(file) + " " + timeout + " " + + maxDigits; } } Index: SayPhoneticCommand.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command/SayPhoneticCommand.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- SayPhoneticCommand.java 5 Mar 2005 22:46:58 -0000 1.1 +++ SayPhoneticCommand.java 8 Mar 2005 16:48:34 -0000 1.2 @@ -17,10 +17,10 @@ package net.sf.asterisk.fastagi.command; /** - * Say a given character string with phonetics, returning early if any of the given DTMF digits are - * received on the channel.<br> - * Returns 0 if playback completes without a digit being pressed, or the ASCII numerical value of - * the digit if one was pressed or -1 on error/hangup. + * Say a given character string with phonetics, returning early if any of the + * given DTMF digits are received on the channel.<br> + * Returns 0 if playback completes without a digit being pressed, or the ASCII + * numerical value of the digit if one was pressed or -1 on error/hangup. * * @author srt * @version $Id$ @@ -57,7 +57,8 @@ public class SayPhoneticCommand extends * Creates a new SayPhoneticCommand. * * @param text the text to say. - * @param escapeDigits contains the digits that allow the user to interrupt this command. + * @param escapeDigits contains the digits that allow the user to interrupt + * this command. */ public SayPhoneticCommand(String text, String interruptDigits) { @@ -98,8 +99,8 @@ public class SayPhoneticCommand extends /** * Sets the digits that allow the user to interrupt this command. * - * @param escapeDigits the text that allow the user to interrupt this command or - * <code>null</code> for none. + * @param escapeDigits the text that allow the user to interrupt this + * command or <code>null</code> for none. */ public void setEscapeDigits(String escapeDigits) { @@ -108,6 +109,7 @@ public class SayPhoneticCommand extends public String buildCommand() { - return "SAY PHONETIC " + escapeAndQuote(text) + " " + escapeAndQuote(escapeDigits); + return "SAY PHONETIC " + escapeAndQuote(text) + " " + + escapeAndQuote(escapeDigits); } } Index: SendImageCommand.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command/SendImageCommand.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- SendImageCommand.java 5 Mar 2005 22:46:58 -0000 1.1 +++ SendImageCommand.java 8 Mar 2005 16:48:34 -0000 1.2 @@ -19,8 +19,8 @@ package net.sf.asterisk.fastagi.command; /** * Sends the given image on a channel.<br> * Most channels do not support the transmission of images.<br> - * Returns 0 if image is sent, or if the channel does not support image transmission. Returns -1 - * only on error/hangup.<br> + * Returns 0 if image is sent, or if the channel does not support image + * transmission. Returns -1 only on error/hangup.<br> * Image names should not include extensions. * * @author srt Index: ExecCommand.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command/ExecCommand.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- ExecCommand.java 5 Mar 2005 22:46:58 -0000 1.1 +++ ExecCommand.java 8 Mar 2005 16:48:34 -0000 1.2 @@ -18,7 +18,8 @@ package net.sf.asterisk.fastagi.command; /** * Executes an application with the given options.<br> - * Returns whatever the application returns, or -2 on failure to find application. + * Returns whatever the application returns, or -2 on failure to find + * application. * * @author srt * @version $Id$ @@ -105,6 +106,7 @@ public class ExecCommand extends AGIComm public String buildCommand() { - return "EXEC " + escapeAndQuote(application) + " " + escapeAndQuote(options); + return "EXEC " + escapeAndQuote(application) + " " + + escapeAndQuote(options); } } Index: SetExtensionCommand.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command/SetExtensionCommand.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- SetExtensionCommand.java 5 Mar 2005 22:46:58 -0000 1.1 +++ SetExtensionCommand.java 8 Mar 2005 16:48:34 -0000 1.2 @@ -37,7 +37,8 @@ public class SetExtensionCommand extends /** * Creates a new SetPriorityCommand. * - * @param extension the extension for continuation upon exiting the application. + * @param extension the extension for continuation upon exiting the + * application. */ public SetExtensionCommand(String extension) { @@ -57,7 +58,8 @@ public class SetExtensionCommand extends /** * Sets the extension for continuation upon exiting the application. * - * @param extension the extension for continuation upon exiting the application. + * @param extension the extension for continuation upon exiting the + * application. */ public void setExtension(String extension) { Index: SendTextCommand.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command/SendTextCommand.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- SendTextCommand.java 5 Mar 2005 22:46:58 -0000 1.1 +++ SendTextCommand.java 8 Mar 2005 16:48:34 -0000 1.2 @@ -19,8 +19,8 @@ package net.sf.asterisk.fastagi.command; /** * Sends the given text on a channel.<br> * Most channels do not support the transmission of text.<br> - * Returns 0 if text is sent, or if the channel does not support text transmission. Returns -1 only - * on error/hangup. + * Returns 0 if text is sent, or if the channel does not support text + * transmission. Returns -1 only on error/hangup. * * @author srt * @version $Id$ Index: HangupCommand.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command/HangupCommand.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- HangupCommand.java 5 Mar 2005 22:46:58 -0000 1.1 +++ HangupCommand.java 8 Mar 2005 16:48:34 -0000 1.2 @@ -17,7 +17,8 @@ package net.sf.asterisk.fastagi.command; /** - * Hangs up the specified channel. If no channel name is given, hangs up the current channel. + * Hangs up the specified channel. If no channel name is given, hangs up the + * current channel. * * @author srt * @version $Id$ @@ -30,7 +31,8 @@ public class HangupCommand extends AGICo private static final long serialVersionUID = 3904959746380281145L; /** - * The name of the channel to hangup or <code>null</code> for the current channel. + * The name of the channel to hangup or <code>null</code> for the current + * channel. */ private String channel; @@ -55,7 +57,8 @@ public class HangupCommand extends AGICo /** * Returns the name of the channel to hangup. * - * @return the name of the channel to hangup or <code>null</code> for the current channel. + * @return the name of the channel to hangup or <code>null</code> for the + * current channel. */ public String getChannel() { @@ -65,8 +68,8 @@ public class HangupCommand extends AGICo /** * Sets the name of the channel to hangup. * - * @param channel the name of the channel to hangup or <code>null</code> for the current - * channel. + * @param channel the name of the channel to hangup or <code>null</code> + * for the current channel. */ public void setChannel(String channel) { @@ -75,6 +78,7 @@ public class HangupCommand extends AGICo public String buildCommand() { - return "HANGUP" + (channel == null ? "" : " " + escapeAndQuote(channel)); + return "HANGUP" + + (channel == null ? "" : " " + escapeAndQuote(channel)); } } Index: SayDigitsCommand.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command/SayDigitsCommand.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- SayDigitsCommand.java 5 Mar 2005 22:46:58 -0000 1.1 +++ SayDigitsCommand.java 8 Mar 2005 16:48:34 -0000 1.2 @@ -17,10 +17,10 @@ package net.sf.asterisk.fastagi.command; /** - * Say a given digit string, returning early if any of the given DTMF number are received on the - * channel.<br> - * Returns 0 if playback completes without a digit being pressed, or the ASCII numerical value of - * the digit if one was pressed or -1 on error/hangup. + * Say a given digit string, returning early if any of the given DTMF number are + * received on the channel.<br> + * Returns 0 if playback completes without a digit being pressed, or the ASCII + * numerical value of the digit if one was pressed or -1 on error/hangup. * * @author srt * @version $Id$ @@ -38,7 +38,8 @@ public class SayDigitsCommand extends AG private String number; /** - * When one of these digits is pressed while saying the number the command returns. + * When one of these digits is pressed while saying the number the command + * returns. */ private String escapeDigits; @@ -57,7 +58,8 @@ public class SayDigitsCommand extends AG * Creates a new SayDigitsCommand. * * @param number the number to say. - * @param escapeDigits the digits that allow the user to interrupt this command. + * @param escapeDigits the digits that allow the user to interrupt this + * command. */ public SayDigitsCommand(String number, String escapeDigits) { @@ -98,8 +100,8 @@ public class SayDigitsCommand extends AG /** * Sets the digits that allow the user to interrupt this command. * - * @param escapeDigits the digits that allow the user to interrupt this command or - * <code>null</code> for none. + * @param escapeDigits the digits that allow the user to interrupt this + * command or <code>null</code> for none. */ public void setEscapeDigits(String escapeDigits) { @@ -108,6 +110,7 @@ public class SayDigitsCommand extends AG public String buildCommand() { - return "STREAM DIGITS " + escapeAndQuote(number) + " " + escapeAndQuote(escapeDigits); + return "STREAM DIGITS " + escapeAndQuote(number) + " " + + escapeAndQuote(escapeDigits); } } Index: ChannelStatusCommand.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command/ChannelStatusCommand.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- ChannelStatusCommand.java 5 Mar 2005 22:46:58 -0000 1.1 +++ ChannelStatusCommand.java 8 Mar 2005 16:48:34 -0000 1.2 @@ -17,8 +17,8 @@ package net.sf.asterisk.fastagi.command; /** - * Returns the status of the specified channel. If no channel name is given the returns the status - * of the current channel.<br> + * Returns the status of the specified channel. If no channel name is given the + * returns the status of the current channel.<br> * Return values: * <ul> * <li>0 Channel is down and available @@ -42,7 +42,8 @@ public class ChannelStatusCommand extend private static final long serialVersionUID = 3904959746380281145L; /** - * The name of the channel to query or <code>null</code> for the current channel. + * The name of the channel to query or <code>null</code> for the current + * channel. */ private String channel; @@ -67,7 +68,8 @@ public class ChannelStatusCommand extend /** * Returns the name of the channel to query. * - * @return the name of the channel to query or <code>null</code> for the current channel. + * @return the name of the channel to query or <code>null</code> for the + * current channel. */ public String getChannel() { @@ -77,8 +79,8 @@ public class ChannelStatusCommand extend /** * Sets the name of the channel to query. * - * @param channel the name of the channel to query or <code>null</code> for the current - * channel. + * @param channel the name of the channel to query or <code>null</code> + * for the current channel. */ public void setChannel(String channel) { @@ -87,6 +89,7 @@ public class ChannelStatusCommand extend public String buildCommand() { - return "CHANNEL STATUS" + (channel == null ? "" : " " + escapeAndQuote(channel)); + return "CHANNEL STATUS" + + (channel == null ? "" : " " + escapeAndQuote(channel)); } } Index: StreamFileCommand.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command/StreamFileCommand.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- StreamFileCommand.java 5 Mar 2005 22:46:58 -0000 1.1 +++ StreamFileCommand.java 8 Mar 2005 16:48:34 -0000 1.2 @@ -17,10 +17,13 @@ package net.sf.asterisk.fastagi.command; /** - * Plays the given file, allowing playback to be interrupted by the given digits, if any.<br> - * If offset is provided then the audio will seek to sample offset before play starts.<br> - * Returns 0 if playback completes without a digit being pressed, or the ASCII numerical value of - * the digit if one was pressed, or -1 on error or if the channel was disconnected. <br> + * Plays the given file, allowing playback to be interrupted by the given + * digits, if any.<br> + * If offset is provided then the audio will seek to sample offset before play + * starts.<br> + * Returns 0 if playback completes without a digit being pressed, or the ASCII + * numerical value of the digit if one was pressed, or -1 on error or if the + * channel was disconnected. <br> * Remember, the file extension must not be included in the filename. * * @author srt @@ -64,7 +67,8 @@ public class StreamFileCommand extends A * Creates a new StreamFileCommand, streaming from the beginning. * * @param file the name of the file to stream, must not include extension. - * @param escapeDigits contains the digits that allow the user to interrupt this command. + * @param escapeDigits contains the digits that allow the user to interrupt + * this command. */ public StreamFileCommand(String file, String escapeDigits) { @@ -77,8 +81,9 @@ public class StreamFileCommand extends A * Creates a new StreamFileCommand, streaming from the given offset. * * @param file the name of the file to stream, must not include extension. - * @param escapeDigits contains the digits that allow the user to interrupt this command. Maybe - * <code>null</code> if you don't want the user to interrupt. + * @param escapeDigits contains the digits that allow the user to interrupt + * this command. Maybe <code>null</code> if you don't want the + * user to interrupt. * @param offset the offset samples to skip before streaming. */ public StreamFileCommand(String file, String escapeDigits, int offset) @@ -121,8 +126,8 @@ public class StreamFileCommand extends A /** * Sets the digits that allow the user to interrupt this command. * - * @param escapeDigits the digits that allow the user to interrupt this command or - * <code>null</code> for none. + * @param escapeDigits the digits that allow the user to interrupt this + * command or <code>null</code> for none. */ public void setEscapeDigits(String escapeDigits) { @@ -151,7 +156,8 @@ public class StreamFileCommand extends A public String buildCommand() { - return "STREAM FILE " + escapeAndQuote(file) + " " + escapeAndQuote(escapeDigits) + return "STREAM FILE " + escapeAndQuote(file) + " " + + escapeAndQuote(escapeDigits) + (offset < 0 ? "" : " " + offset); } } Index: VerboseCommand.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command/VerboseCommand.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- VerboseCommand.java 5 Mar 2005 22:46:58 -0000 1.1 +++ VerboseCommand.java 8 Mar 2005 16:48:34 -0000 1.2 @@ -46,11 +46,12 @@ public class VerboseCommand extends AGIC * * @param message the message to send. * @param level the verbosity level to use.<br> - * Must be in [1..4] + * Must be in [1..4] * * @throws IllegalArgumentException if level is not in [1..4] */ - public VerboseCommand(String message, int level) throws IllegalArgumentException + public VerboseCommand(String message, int level) + throws IllegalArgumentException { if (level < 1 || level > 4) { Index: TDDModeCommand.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command/TDDModeCommand.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- TDDModeCommand.java 5 Mar 2005 22:46:58 -0000 1.1 +++ TDDModeCommand.java 8 Mar 2005 16:48:34 -0000 1.2 @@ -38,7 +38,8 @@ public class TDDModeCommand extends AGIC /** * Creates a new TDDModeCommand. * - * @param mode the mode to set, this can be one of "on", "off", "mate" or "tdd". + * @param mode the mode to set, this can be one of "on", "off", "mate" or + * "tdd". */ public TDDModeCommand(String mode) { @@ -58,7 +59,8 @@ public class TDDModeCommand extends AGIC /** * Sets the mode to set. * - * @param mode the mode to set, this can be one of "on", "off", "mate" or "tdd". + * @param mode the mode to set, this can be one of "on", "off", "mate" or + * "tdd". */ public void setTimeout(String mode) { Index: WaitForDigitCommand.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command/WaitForDigitCommand.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- WaitForDigitCommand.java 5 Mar 2005 22:46:58 -0000 1.1 +++ WaitForDigitCommand.java 8 Mar 2005 16:48:34 -0000 1.2 @@ -18,9 +18,9 @@ package net.sf.asterisk.fastagi.command; /** * Waits up to 'timeout' milliseconds for channel to receive a DTMF digit.<br> - * Returns -1 on channel failure, 0 if no digit is received in the timeout, or the numerical value - * of the ascii of the digit if one is received. Use -1 for the timeout value if you desire the call - * to block indefinitely. + * Returns -1 on channel failure, 0 if no digit is received in the timeout, or + * the numerical value of the ascii of the digit if one is received. Use -1 for + * the timeout value if you desire the call to block indefinitely. * * @author srt * @version $Id$ @@ -38,8 +38,8 @@ public class WaitForDigitCommand extends private int timeout; /** - * Creates a new WaitForDigitCommand with a default timeout of -1 which blocks the channel - * indefinitely. + * Creates a new WaitForDigitCommand with a default timeout of -1 which + * blocks the channel indefinitely. */ public WaitForDigitCommand() { @@ -49,7 +49,8 @@ public class WaitForDigitCommand extends /** * Creates a new WaitForDigitCommand. * - * @param timeout the milliseconds to wait for the channel to receive a DTMF digit. + * @param timeout the milliseconds to wait for the channel to receive a DTMF + * digit. */ public WaitForDigitCommand(int timeout) { @@ -69,7 +70,8 @@ public class WaitForDigitCommand extends /** * Sets the milliseconds to wait for the channel to receive a DTMF digit. * - * @param timeout the milliseconds to wait for the channel to receive a DTMF digit. + * @param timeout the milliseconds to wait for the channel to receive a DTMF + * digit. */ public void setTimeout(int timeout) { Index: ReceiveCharCommand.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command/ReceiveCharCommand.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- ReceiveCharCommand.java 5 Mar 2005 22:46:58 -0000 1.1 +++ ReceiveCharCommand.java 8 Mar 2005 16:48:34 -0000 1.2 @@ -18,10 +18,11 @@ package net.sf.asterisk.fastagi.command; /** * Receives a character of text on a channel.<br> - * Specify timeout to be the maximum time to wait for input in milliseconds, or 0 for infinite.<br> + * Specify timeout to be the maximum time to wait for input in milliseconds, or + * 0 for infinite.<br> * Most channels do not support the reception of text.<br> - * Returns the decimal value of the character if one is received, or 0 if the channel does not - * support text reception. Returns -1 only on error/hangup. + * Returns the decimal value of the character if one is received, or 0 if the + * channel does not support text reception. Returns -1 only on error/hangup. * * @author srt * @version $Id$ @@ -39,7 +40,8 @@ public class ReceiveCharCommand extends private int timeout; /** - * Creates a new ReceiveCharCommand with a default timeout of 0 meaning to wait for ever. + * Creates a new ReceiveCharCommand with a default timeout of 0 meaning to + * wait for ever. */ public ReceiveCharCommand() { @@ -49,7 +51,8 @@ public class ReceiveCharCommand extends /** * Creates a new ReceiveCharCommand. * - * @param timeout the milliseconds to wait for the channel to receive a character. + * @param timeout the milliseconds to wait for the channel to receive a + * character. */ public ReceiveCharCommand(int timeout) { @@ -69,7 +72,8 @@ public class ReceiveCharCommand extends /** * Sets the milliseconds to wait for the channel to receive a character. * - * @param timeout the milliseconds to wait for the channel to receive a character. + * @param timeout the milliseconds to wait for the channel to receive a + * character. */ public void setTimeout(int timeout) { Index: DatabaseGetCommand.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command/DatabaseGetCommand.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- DatabaseGetCommand.java 5 Mar 2005 22:46:58 -0000 1.1 +++ DatabaseGetCommand.java 8 Mar 2005 16:48:34 -0000 1.2 @@ -18,7 +18,8 @@ package net.sf.asterisk.fastagi.command; /** * Retrieves an entry in the Asterisk database for a given family and key.<br> - * Returns 0 if is not set. Returns 1 if the variable is set and returns the value in parenthesis.<br> + * Returns 0 if is not set. Returns 1 if the variable is set and returns the + * value in parenthesis.<br> * Example return code: 200 result=1 (testvariable) * * @author srt @@ -95,6 +96,7 @@ public class DatabaseGetCommand extends public String buildCommand() { - return "DATABASE GET " + escapeAndQuote(family) + " " + escapeAndQuote(key); + return "DATABASE GET " + escapeAndQuote(family) + " " + + escapeAndQuote(key); } } Index: RecordFileCommand.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command/RecordFileCommand.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -p -r1.1 -r1.2 --- RecordFileCommand.java 5 Mar 2005 22:46:58 -0000 1.1 +++ RecordFileCommand.java 8 Mar 2005 16:48:34 -0000 1.2 @@ -19,10 +19,11 @@ package net.sf.asterisk.fastagi.command; /** * Record to a file until a given dtmf digit in the sequence is received.<br> * Returns -1 on hangup or error.<br> - * The format will specify what kind of file will be recorded. The timeout is the maximum record - * time in milliseconds, or -1 for no timeout. Offset samples is optional, and if provided will seek - * to the offset without exceeding the end of the file. "maxSilence" is the number of seconds of - * maxSilence allowed before the function returns despite the lack of dtmf digits or reaching + * The format will specify what kind of file will be recorded. The timeout is + * the maximum record time in milliseconds, or -1 for no timeout. Offset samples + * is optional, and if provided will seek to the offset without exceeding the + * end of the file. "maxSilence" is the number of seconds of maxSilence allowed + * before the function returns despite the lack of dtmf digits or reaching * timeout. * * @author srt @@ -66,8 +67,8 @@ public class RecordFileCommand extends A private boolean beep; /** - * The amount of silence (in seconds) to allow before returning despite the lack of dtmf digits - * or reaching timeout. + * The amount of silence (in seconds) to allow before returning despite the + * lack of dtmf digits or reaching timeout. */ private int maxSilence; @@ -76,10 +77,13 @@ public class RecordFileCommand extends A * * @param file the name of the file to stream, must not include extension. * @param format the format of the file to be recorded, for example "wav". - * @param escapeDigits contains the digits that allow the user to end recording. - * @param timeout the maximum record time in milliseconds, or -1 for no timeout. + * @param escapeDigits contains the digits that allow the user to end + * recording. + * @param timeout the maximum record time in milliseconds, or -1 for no + * timeout. */ - public RecordFileCommand(String file, String format, String escapeDigits, int timeout) + public RecordFileCommand(String file, String format, String escapeDigits, + int timeout) { this.file = file; this.format = format; @@ -95,15 +99,18 @@ public class RecordFileCommand extends A * * @param file the name of the file to stream, must not include extension. * @param format the format of the file to be recorded, for example "wav". - * @param escapeDigits contains the digits that allow the user to end recording. - * @param timeout the maximum record time in milliseconds, or -1 for no timeout. + * @param escapeDigits contains the digits that allow the user to end + * recording. + * @param timeout the maximum record time in milliseconds, or -1 for no + * timeout. * @param offset the offset samples to skip. - * @param beep <code>true</code> if a beep should be played before recording. - * @param maxSilence The amount of silence (in seconds) to allow before returning despite the - * lack of dtmf digits or reaching timeout. + * @param beep <code>true</code> if a beep should be played before + * recording. + * @param maxSilence The amount of silence (in seconds) to allow before + * returning despite the lack of dtmf digits or reaching timeout. */ - public RecordFileCommand(String file, String format, String escapeDigits, int timeout, int offset, boolean beep, - int maxSilence) + public RecordFileCommand(String file, String format, String escapeDigits, + int timeout, int offset, boolean beep, int maxSilence) { this.file = file; this.format = format; @@ -167,8 +174,8 @@ public class RecordFileCommand extends A /** * Sets the digits that allow the user to end recording. * - * @param escapeDigits the digits that allow the user to end recording or <code>null</code> - * for none. + * @param escapeDigits the digits that allow the user to end recording or + * <code>null</code> for none. */ public void setEscapeDigits(String escapeDigits) { @@ -188,7 +195,8 @@ public class RecordFileCommand extends A /** * Sets the maximum record time in milliseconds. * - * @param timeout the maximum record time in milliseconds, or -1 for no timeout. + * @param timeout the maximum record time in milliseconds, or -1 for no + * timeout. */ public void setTimeout(int timeout) { @@ -218,8 +226,8 @@ public class RecordFileCommand extends A /** * Returns <code>true</code> if a beep should be played before recording. * - * @return <code>true</code> if a beep should be played before recording, <code>false</code> - * if not. + * @return <code>true</code> if a beep should be played before recording, + * <code>false</code> if not. */ public boolean getBeep() { @@ -229,8 +237,8 @@ public class RecordFileCommand extends A /** * Set to <code>true</code> to play a beep before recording. * - * @param beep <code>true</code> if a beep should be played before recording, - * <code>false</code> if not. + * @param beep <code>true</code> if a beep should be played before + * recording, <code>false</code> if not. */ public void setBeep(boolean beep) { @@ -239,8 +247,9 @@ public class RecordFileCommand extends A public String buildCommand() { - return "RECORD FILE " + escapeAndQuote(file) + " " + escapeAndQuote(format) + " " - + escapeAndQuote(escapeDigits) + " " + timeout + " " + offset + (beep == true ? " BEEP" : "") + " s=" - + maxSilence; + return "RECORD FILE " + escapeAndQuote(file) + " " + + escapeAndQuote(format) + " " + escapeAndQuote(escapeDigits) + + " " + timeout + " " + offset + (beep == true ? " BEEP" : "") + + " s=" + maxSilence; } } |