Skip to content
Snippets Groups Projects
Commit 6b88680e authored by Paul Cadach's avatar Paul Cadach
Browse files

Merged revisions 53880 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r53880 | pcadach | 2007-02-10 01:08:55 -0800 (Сбт, 10 Фев 2007) | 1 line

Much simpler than previous one ;-)
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@53884 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 85ad5835
No related branches found
No related tags found
No related merge requests found
......@@ -69,21 +69,14 @@ static int echo_exec(struct ast_channel *chan, void *data)
break;
f->delivery.tv_sec = 0;
f->delivery.tv_usec = 0;
switch (f->frametype) {
case AST_FRAME_DTMF:
if (f->subclass == '#') {
res = 0;
if (ast_write(chan, f))
res = -1;
ast_frfree(f);
goto end;
}
/* fall through */
default:
if (ast_write(chan, f)) {
ast_frfree(f);
goto end;
}
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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment