summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2007-02-10 00:16:22 +0000
committerRussell Bryant <russell@russellbryant.com>2007-02-10 00:16:22 +0000
commit66641e8a63b84f3f66a622880bb33faa4efb85b1 (patch)
tree31d34b25401b0f7498b9011d331a6ae4ba917540 /apps
parente758ef09b3f16ea2453a2d63852da694fa32d648 (diff)
Merged revisions 53783 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r53783 | russell | 2007-02-09 18:15:50 -0600 (Fri, 09 Feb 2007) | 4 lines 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/trunk@53784 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r--apps/app_echo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_echo.c b/apps/app_echo.c
index 4b2c94056..73ca2d181 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;
}