diff options
author | Steve Murphy <murf@digium.com> | 2007-10-03 14:39:05 +0000 |
---|---|---|
committer | Steve Murphy <murf@digium.com> | 2007-10-03 14:39:05 +0000 |
commit | 3ffa04bbd35eb98fa4cc7bf5163d6debb2847295 (patch) | |
tree | e9211abc8defa8320abea1cc6105e0d14e3596f0 /pbx/ael/ael-test/ref.ael-vtest17 | |
parent | 3c641c74de7b2c6c16fd8db96a71d30da134c8cf (diff) |
Merged revisions 84511 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r84511 | murf | 2007-10-03 08:23:00 -0600 (Wed, 03 Oct 2007) | 1 line
closes issue #10834 ; where a null input to a switch statement results in a hangup; since switch is implemented with extensions, and the default case is implemented with a '.', and the '.' matches 1 or more remaining characters, the case where 0 characters exist isn't matched, and the extension isn't matched, and the goto fails, and a hangup occurs. Now, when a default case is generated, it also generates a single fixed extension that will match a null input. That extension just does a goto to the default extension for that switch. I played with an alternate solution, where I just tack an extra char onto all the patterns and the goto, but not the default case's pattern. Then even a null input will still have at least one char in it. But it made me nervous, having that extra char in , even if that's a pretty secret and low-level issue.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@84512 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx/ael/ael-test/ref.ael-vtest17')
-rw-r--r-- | pbx/ael/ael-test/ref.ael-vtest17 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pbx/ael/ael-test/ref.ael-vtest17 b/pbx/ael/ael-test/ref.ael-vtest17 index 081e37bf2..bb4204caa 100644 --- a/pbx/ael/ael-test/ref.ael-vtest17 +++ b/pbx/ael/ael-test/ref.ael-vtest17 @@ -45,6 +45,7 @@ exten => 82,2,Verbose(Finished 100000 levels deep call!) exten => 83,1,Goto(sw-2-${EXTEN}\,10) exten => 83,2,NoOp(Finish switch-extension-2) exten => _sw-2-.,10,Goto(83\,2) +exten => sw-2-,10,Goto(sw-2-.|10) exten => _sw-2-[4-7]X,10,Verbose(and this too!) exten => _sw-2-[4-7]X,11,Goto(sw-2-.\,10) exten => _sw-2-9X,10,Verbose(handle both 8x and 9x calls) |