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)