Little say numer fix (bug #3884)
authorMark Spencer <markster@digium.com>
Tue, 29 Mar 2005 06:21:21 +0000 (06:21 +0000)
committerMark Spencer <markster@digium.com>
Tue, 29 Mar 2005 06:21:21 +0000 (06:21 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5298 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_agi.c

index f6daabf..415c0ed 100755 (executable)
@@ -564,7 +564,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)