[Asterisk-java-cvs] CVS: asterisk-java/src/java/net/sf/asterisk/fastagi/command SayDigitsCommand.jav
Brought to you by:
srt
From: Stefan R. <sr...@us...> - 2005-03-11 19:32:22
|
Update of /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22316/src/java/net/sf/asterisk/fastagi/command Modified Files: SayDigitsCommand.java Log Message: Fixed buildCommand (SAY DIGITS instead of STREAM DIGITS) Index: SayDigitsCommand.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command/SayDigitsCommand.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -p -r1.3 -r1.4 --- SayDigitsCommand.java 10 Mar 2005 21:48:11 -0000 1.3 +++ SayDigitsCommand.java 11 Mar 2005 19:32:11 -0000 1.4 @@ -2,7 +2,7 @@ * Copyright 2004-2005 Stefan Reuter * * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this number except in compliance with the License. + * you may not use this digits except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 @@ -17,7 +17,7 @@ package net.sf.asterisk.fastagi.command; /** - * Say a given digit string, returning early if any of the given DTMF number are + * Say a given digit string, 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. @@ -33,12 +33,12 @@ public class SayDigitsCommand extends AG private static final long serialVersionUID = 3907207173934101552L; /** - * The number to say. + * The digits string to say. */ - private String number; + private String digits; /** - * When one of these digits is pressed while saying the number the command + * When one of these digits is pressed while saying the digits the command * returns. */ private String escapeDigits; @@ -46,45 +46,45 @@ public class SayDigitsCommand extends AG /** * Creates a new SayDigitsCommand. * - * @param number the number to say. + * @param digits the digits to say. */ public SayDigitsCommand(String number) { - this.number = number; + this.digits = number; this.escapeDigits = null; } /** * Creates a new SayDigitsCommand. * - * @param number the number to say. + * @param digits the digits to say. * @param escapeDigits the digits that allow the user to interrupt this * command. */ - public SayDigitsCommand(String number, String escapeDigits) + public SayDigitsCommand(String digits, String escapeDigits) { - this.number = number; + this.digits = digits; this.escapeDigits = escapeDigits; } /** - * Returns the number to say. + * Returns the digits string to say. * - * @return the number to say. + * @return the digits string to say. */ - public String getNumber() + public String getDigits() { - return number; + return digits; } /** - * Sets the number to say. + * Sets the digits to say. * - * @param number the number to say. + * @param digits the digits string to say. */ - public void setNumber(String number) + public void setDigits(String digits) { - this.number = number; + this.digits = digits; } /** @@ -110,7 +110,7 @@ public class SayDigitsCommand extends AG public String buildCommand() { - return "STREAM DIGITS " + escapeAndQuote(number) + " " + return "SAY DIGITS " + escapeAndQuote(digits) + " " + escapeAndQuote(escapeDigits); } } |