diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-02-10 00:15:50 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-02-10 00:15:50 +0000 |
commit | 8878f5e14d7b6bc35ba0f2cd194788cf9df9cc45 (patch) | |
tree | 8023e0fc502feb1a7563ddab3ceae87a9de435bb /apps/app_echo.c | |
parent | cfebceb2a0b3202444ce5f7e62b84d011d730c50 (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.4@53783 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_echo.c')
-rw-r--r-- | apps/app_echo.c | 2 |
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; } |