[Asterisk-java-cvs] CVS: asterisk-java/src/java/net/sf/asterisk/fastagi AbstractAGIScript.java,1.9,1
Brought to you by:
srt
From: Stefan R. <sr...@us...> - 2005-04-06 16:51:56
|
Update of /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32465/src/java/net/sf/asterisk/fastagi Modified Files: AbstractAGIScript.java Log Message: Fixed bug with sayXXX methods not passing escapeDigits to the command. Index: AbstractAGIScript.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/AbstractAGIScript.java,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -p -r1.9 -r1.10 --- AbstractAGIScript.java 6 Apr 2005 16:47:27 -0000 1.9 +++ AbstractAGIScript.java 6 Apr 2005 16:51:47 -0000 1.10 @@ -265,7 +265,7 @@ public abstract class AbstractAGIScript { AGIReply reply; - reply = channel.sendCommand(new SayDigitsCommand(digits)); + reply = channel.sendCommand(new SayDigitsCommand(digits, escapeDigits)); return reply.getResultCodeAsChar(); } @@ -294,7 +294,7 @@ public abstract class AbstractAGIScript { AGIReply reply; - reply = channel.sendCommand(new SayNumberCommand(number)); + reply = channel.sendCommand(new SayNumberCommand(number, escapeDigits)); return reply.getResultCodeAsChar(); } @@ -323,7 +323,7 @@ public abstract class AbstractAGIScript { AGIReply reply; - reply = channel.sendCommand(new SayPhoneticCommand(text)); + reply = channel.sendCommand(new SayPhoneticCommand(text, escapeDigits)); return reply.getResultCodeAsChar(); } @@ -352,12 +352,12 @@ public abstract class AbstractAGIScript { AGIReply reply; - reply = channel.sendCommand(new SayAlphaCommand(text)); + reply = channel.sendCommand(new SayAlphaCommand(text, escapeDigits)); return reply.getResultCodeAsChar(); } /** - * Says the given character string with phonetics. + * Says the given time. * * @param time the time to say in seconds since 00:00:00 on January 1, 1970. */ @@ -368,7 +368,7 @@ public abstract class AbstractAGIScript } /** - * Says the given character string with phonetics, returning early if any of + * Says the given time, returning early if any of * the given DTMF number are received on the channel. * * @param time the time to say in seconds since 00:00:00 on January 1, 1970. @@ -381,7 +381,7 @@ public abstract class AbstractAGIScript { AGIReply reply; - reply = channel.sendCommand(new SayTimeCommand(time)); + reply = channel.sendCommand(new SayTimeCommand(time, escapeDigits)); return reply.getResultCodeAsChar(); } |