Skip to content
Snippets Groups Projects
Commit 2866c664 authored by Alec L Davis's avatar Alec L Davis
Browse files

revert ability to exit echo app

caused a regression, as only supported VOICE, not VIDEO etc.

(issue #16880)



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@249947 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 78fdaa68
Branches
Tags
No related merge requests found
...@@ -62,26 +62,17 @@ static int echo_exec(struct ast_channel *chan, const char *data) ...@@ -62,26 +62,17 @@ static int echo_exec(struct ast_channel *chan, const char *data)
if (!f) { if (!f) {
break; break;
} }
switch (f->frametype) { f->delivery.tv_sec = 0;
case AST_FRAME_VOICE: f->delivery.tv_usec = 0;
case AST_FRAME_DTMF: if (ast_write(chan, f)) {
f->delivery.tv_sec = 0; ast_frfree(f);
f->delivery.tv_usec = 0; goto end;
if (ast_write(chan, f)) { }
ast_frfree(f); if ((f->frametype == AST_FRAME_DTMF) && (f->subclass.integer == '#')) {
goto end; res = 0;
} ast_frfree(f);
if (f->frametype == AST_FRAME_DTMF) { goto end;
if (f->subclass.integer == '#') { }
res = 0;
ast_frfree(f);
goto end;
}
}
break;
default:
break;
}
ast_frfree(f); ast_frfree(f);
} }
end: end:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment