--- app_echo.c.103249 2008-10-15 21:24:31.000000000 +1300 +++ app_echo.c 2008-10-15 21:26:52.000000000 +1300 @@ -54,8 +54,9 @@ while (ast_waitfor(chan, -1) > -1) { struct ast_frame *f = ast_read(chan); - if (!f) + if (!f) { break; + } f->delivery.tv_sec = 0; f->delivery.tv_usec = 0; if (ast_write(chan, f)) {