]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fix say number with a leading zero (bug #3884)
authorRussell Bryant <russell@russellbryant.com>
Tue, 5 Apr 2005 10:15:00 +0000 (10:15 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 5 Apr 2005 10:15:00 +0000 (10:15 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5406 65c4cc65-6c06-0410-ace0-fbb531ad65f3

CHANGES
res/res_agi.c

diff --git a/CHANGES b/CHANGES
index 7f1f9725b61d2c27a25c3ed1f19838c4e3966ee2..ec2278f83c18e281319ba3320ce7ec630d89fc08 100755 (executable)
--- a/CHANGES
+++ b/CHANGES
@@ -25,6 +25,8 @@
        call is executing an AGI script calling the GET DATA command.
     -- AGI scripts will now continue to run even if a file was not found with the
        GET DATA command.
+    -- When calling SAY NUMBER with a number like 09, we will now say "nine" instead
+       of "zero"
  -- app_disa
     -- Fixed the timeout used when no password is set
  -- rtp
index 79ac894c94deeabb85765809900f9203b375ee68..4bcc610f2e76a495cc9566c035c2d8fbcbbb2e2c 100755 (executable)
@@ -474,7 +474,7 @@ static int handle_saynumber(struct ast_channel *chan, AGI *agi, int argc, char *
        int num;
        if (argc != 4)
                return RESULT_SHOWUSAGE;
-       if (sscanf(argv[2], "%i", &num) != 1)
+       if (sscanf(argv[2], "%d", &num) != 1)
                return RESULT_SHOWUSAGE;
        res = ast_say_number_full(chan, num, argv[3], chan->language, (char *) NULL, agi->audio, agi->ctrl);
        if (res == 1)