[asterisk-commits] russell: branch 1.4 r53783 - /branches/1.4/apps/app_echo.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Feb 9 17:15:50 MST 2007


Author: russell
Date: Fri Feb  9 18:15:50 2007
New Revision: 53783

URL: http://svn.digium.com/view/asterisk?view=rev&rev=53783
Log:
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.

Modified:
    branches/1.4/apps/app_echo.c

Modified: branches/1.4/apps/app_echo.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_echo.c?view=diff&rev=53783&r1=53782&r2=53783
==============================================================================
--- branches/1.4/apps/app_echo.c (original)
+++ branches/1.4/apps/app_echo.c Fri Feb  9 18:15:50 2007
@@ -73,6 +73,8 @@
 		case AST_FRAME_DTMF:
 			if (f->subclass == '#') {
 				res = 0;
+				if (ast_write(chan, f))
+					res = -1;
 				ast_frfree(f);
 				goto end;
 			}



More information about the asterisk-commits mailing list