summaryrefslogtreecommitdiff
path: root/apps/app_echo.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_echo.c')
-rw-r--r--apps/app_echo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_echo.c b/apps/app_echo.c
index 0f4c94b8d..e50173af8 100644
--- a/apps/app_echo.c
+++ b/apps/app_echo.c
@@ -66,7 +66,8 @@ static int echo_exec(struct ast_channel *chan, const char *data)
f->delivery.tv_sec = 0;
f->delivery.tv_usec = 0;
if (f->frametype == AST_FRAME_CONTROL
- && f->subclass.integer == AST_CONTROL_VIDUPDATE) {
+ && f->subclass.integer == AST_CONTROL_VIDUPDATE
+ && !fir_sent) {
if (ast_write(chan, f) < 0) {
ast_frfree(f);
goto end;