aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_while.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-11-14 00:44:10 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-11-14 00:44:10 +0000
commitbd972d4a1e76b0da3d03741f611ab4446653fb3b (patch)
tree47009f65a4d8e95fb12bbebab1090933294a7954 /apps/app_while.c
parente238dbf96adfc2431140f0feb0681446f5410c77 (diff)
Merged revisions 156756 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r156756 | tilghman | 2008-11-13 18:43:13 -0600 (Thu, 13 Nov 2008) | 13 lines Merged revisions 156755 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r156755 | tilghman | 2008-11-13 18:41:37 -0600 (Thu, 13 Nov 2008) | 6 lines ast_waitfordigit() requires that the channel be up, for no good logical reason. This prevents While/EndWhile from working within the "h" extension. Reported by: jgalarneau (for ABE C.2) Fixed by: me ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@156757 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_while.c')
-rw-r--r--apps/app_while.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/app_while.c b/apps/app_while.c
index 822458663..0992d94e3 100644
--- a/apps/app_while.c
+++ b/apps/app_while.c
@@ -160,11 +160,16 @@ static int _while_exec(struct ast_channel *chan, void *data, int end)
return -1;
}
+#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)
return -1;
+#endif
for (x=0;;x++) {
if (get_index(chan, prefix, x)) {