Fix extension processing
authorMark Spencer <markster@digium.com>
Thu, 27 Mar 2003 02:57:17 +0000 (02:57 +0000)
committerMark Spencer <markster@digium.com>
Thu, 27 Mar 2003 02:57:17 +0000 (02:57 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@703 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx.c

diff --git a/pbx.c b/pbx.c
index bfd4402..0e8136b 100755 (executable)
--- a/pbx.c
+++ b/pbx.c
@@ -1163,6 +1163,8 @@ int ast_pbx_run(struct ast_channel *c)
                                if (((res >= '0') && (res <= '9')) || ((res >= 'A') && (res <= 'F')) ||
                                        (res == '*') || (res == '#')) {
                                        ast_log(LOG_DEBUG, "Oooh, got something to jump out with ('%c')!\n", res);
                                if (((res >= '0') && (res <= '9')) || ((res >= 'A') && (res <= 'F')) ||
                                        (res == '*') || (res == '#')) {
                                        ast_log(LOG_DEBUG, "Oooh, got something to jump out with ('%c')!\n", res);
+                                       memset(exten, 0, sizeof(exten));
+                                       pos = 0;
                                        exten[pos++] = digit = res;
                                        break;
                                }
                                        exten[pos++] = digit = res;
                                        break;
                                }