From: Russell Bryant Date: Sat, 10 Feb 2007 00:15:50 +0000 (+0000) Subject: When the Echo() application receives the digit '#', echo that back as well. X-Git-Tag: 1.4.1~116 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2f5eabb51e7f937bf3421163b645c6191d8bf3c2;p=thirdparty%2Fasterisk.git 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 --- diff --git a/apps/app_echo.c b/apps/app_echo.c index 4b2c940562..73ca2d181c 100644 --- a/apps/app_echo.c +++ b/apps/app_echo.c @@ -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; }