]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
revert ability to exit echo app
authorAlec L Davis <sivad.a@paradise.net.nz>
Tue, 2 Mar 2010 19:36:20 +0000 (19:36 +0000)
committerAlec L Davis <sivad.a@paradise.net.nz>
Tue, 2 Mar 2010 19:36:20 +0000 (19:36 +0000)
caused a regression, as only supported VOICE, not VIDEO etc.
Left in small formatting change.

(issue #16880)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@249946 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_echo.c

index d75d34dc129decb1f14a79c7e9d158967c6be3a4..b759a510b45d724fc172904d70b82f55203a9dbe 100644 (file)
@@ -68,23 +68,16 @@ static int echo_exec(struct ast_channel *chan, void *data)
                if (!f) {
                        break;
                }
-               switch (f->frametype) {
-               case AST_FRAME_VOICE:
-               case AST_FRAME_DTMF:
-                       f->delivery.tv_sec = 0;
-                       f->delivery.tv_usec = 0;
-                       if (ast_write(chan, f)) {
-                               ast_frfree(f);
-                               goto end;
-                       }
-                       if ((f->frametype == AST_FRAME_DTMF) && (f->subclass == '#')) {
-                               res = 0;
-                               ast_frfree(f);
-                               goto end;
-                       }
-                       break;
-               default:
-                       break;
+               f->delivery.tv_sec = 0;
+               f->delivery.tv_usec = 0;
+               if (ast_write(chan, f)) {
+                       ast_frfree(f);
+                       goto end;
+               }
+               if ((f->frametype == AST_FRAME_DTMF) && (f->subclass == '#')) {
+                       res = 0;
+                       ast_frfree(f);
+                       goto end;
                }
                ast_frfree(f);
        }