From: Russell Bryant Date: Tue, 5 Apr 2005 10:15:00 +0000 (+0000) Subject: fix say number with a leading zero (bug #3884) X-Git-Tag: 1.0.11.1~158 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4faec1b26217ff494c5141e147520aaab10fbd96;p=thirdparty%2Fasterisk.git fix say number with a leading zero (bug #3884) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5406 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/CHANGES b/CHANGES index 7f1f9725b6..ec2278f83c 100755 --- 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 diff --git a/res/res_agi.c b/res/res_agi.c index 79ac894c94..4bcc610f2e 100755 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -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)