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
This commit is contained in:
Russell Bryant
2005-04-05 10:15:00 +00:00
parent efc4fdf079
commit 4faec1b262
2 changed files with 3 additions and 1 deletions

View File

@@ -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

View File

@@ -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)