]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
ast_waitfordigit() requires that the channel be up, for no good logical
authorTilghman Lesher <tilghman@meg.abyt.es>
Fri, 14 Nov 2008 00:41:37 +0000 (00:41 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Fri, 14 Nov 2008 00:41:37 +0000 (00:41 +0000)
reason.  This prevents While/EndWhile from working within the "h"
extension.
Reported by: jgalarneau (for ABE C.2)
Fixed by: me

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@156755 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_while.c

index 8595916f30ff101df24c2fa082e8fa77f4d9a1f8..8e8fabd5b4e9464c520d7f4bf3d061c659f315ac 100644 (file)
@@ -181,12 +181,16 @@ static int _while_exec(struct ast_channel *chan, void *data, int end)
 
        u = ast_module_user_add(chan);
 
+#if 0
        /* dont want run away loops if the chan isn't even up
           this is up for debate since it slows things down a tad ......
+
+          Debate is over... this prevents While/EndWhile from working
+          within the "h" extension.  Not good.
        */
        if (ast_waitfordigit(chan,1) < 0)
                ALL_DONE(u,-1);
-
+#endif
 
        for (x=0;;x++) {
                if (get_index(chan, prefix, x)) {