Make ZapScan wait 100ms for data
[asterisk/asterisk.git] / apps / app_zapscan.c
index d41723c..97fac25 100755 (executable)
@@ -256,6 +256,8 @@ static int conf_exec(struct ast_channel *chan, void *data)
                 ast_answer(chan);
 
         for (;;) {
+               if (ast_waitfor(chan, 100) < 0)
+                       break;
                f = ast_read(chan);
                if (!f)
                        break;