[asterisk-commits] pcadach: branch 1.4 r53880 - /branches/1.4/apps/app_echo.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sat Feb 10 02:08:56 MST 2007


Author: pcadach
Date: Sat Feb 10 03:08:55 2007
New Revision: 53880

URL: http://svn.digium.com/view/asterisk?view=rev&rev=53880
Log:
Much simpler than previous one ;-)

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=53880&r1=53879&r2=53880
==============================================================================
--- branches/1.4/apps/app_echo.c (original)
+++ branches/1.4/apps/app_echo.c Sat Feb 10 03:08:55 2007
@@ -69,21 +69,14 @@
 			break;
 		f->delivery.tv_sec = 0;
 		f->delivery.tv_usec = 0;
-		switch (f->frametype) {
-		case AST_FRAME_DTMF:
-			if (f->subclass == '#') {
-				res = 0;
-				if (ast_write(chan, f))
-					res = -1;
-				ast_frfree(f);
-				goto end;
-			}
-			/* fall through */
-		default:
-			if (ast_write(chan, f)) {
-				ast_frfree(f);
-				goto end;
-			}
+		if (ast_write(chan, f)) {
+			ast_frfree(f);
+			goto end;
+		}
+		if ((f->frametype == AST_FRAME_DTMF) && (f->subclass == '#')) {
+			res = 0;
+			ast_frfree(f);
+			goto end;
 		}
 		ast_frfree(f);
 	}



More information about the asterisk-commits mailing list