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/branches/1.6.1@249949 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.1
Alec L Davis 17 years ago
parent 8da2b4c813
commit 4a8e6c91bb

@ -57,23 +57,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);
}

Loading…
Cancel
Save