mirror of
https://github.com/asterisk/asterisk.git
synced 2026-06-09 03:45:27 +00:00
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:
2
CHANGES
2
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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user