mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-19 19:20:35 +00:00
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: https://origsvn.digium.com/svn/asterisk/trunk@156756 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -203,11 +203,16 @@ static int _while_exec(struct ast_channel *chan, void *data, int end)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
/* dont want run away loops if the chan isn't even up
|
/* dont want run away loops if the chan isn't even up
|
||||||
this is up for debate since it slows things down a tad ......
|
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)
|
if (ast_waitfordigit(chan,1) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
#endif
|
||||||
|
|
||||||
for (x=0;;x++) {
|
for (x=0;;x++) {
|
||||||
if (get_index(chan, prefix, x)) {
|
if (get_index(chan, prefix, x)) {
|
||||||
|
Reference in New Issue
Block a user