mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
When the Echo() application receives the digit '#', echo that back as well.
Since we already sent the BEGIN frame for that digit, it makes sense to send the END as well. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@53783 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -73,6 +73,8 @@ static int echo_exec(struct ast_channel *chan, void *data)
|
||||
case AST_FRAME_DTMF:
|
||||
if (f->subclass == '#') {
|
||||
res = 0;
|
||||
if (ast_write(chan, f))
|
||||
res = -1;
|
||||
ast_frfree(f);
|
||||
goto end;
|
||||
}
|
||||
|
Reference in New Issue
Block a user