[asterisk-commits] alecdavis: trunk r249947 - /trunk/apps/app_echo.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Mar 2 13:40:02 CST 2010
Author: alecdavis
Date: Tue Mar 2 13:39:58 2010
New Revision: 249947
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=249947
Log:
revert ability to exit echo app
caused a regression, as only supported VOICE, not VIDEO etc.
(issue #16880)
Modified:
trunk/apps/app_echo.c
Modified: trunk/apps/app_echo.c
URL: http://svnview.digium.com/svn/asterisk/trunk/apps/app_echo.c?view=diff&rev=249947&r1=249946&r2=249947
==============================================================================
--- trunk/apps/app_echo.c (original)
+++ trunk/apps/app_echo.c Tue Mar 2 13:39:58 2010
@@ -62,26 +62,17 @@
if (!f) {
break;
}
- switch (f->frametype) {
- case AST_FRAME_VOICE:
- case AST_FRAME_DTMF:
- f->delivery.tv_sec = 0;
- f->delivery.tv_usec = 0;
- if (ast_write(chan, f)) {
- ast_frfree(f);
- goto end;
- }
- if (f->frametype == AST_FRAME_DTMF) {
- if (f->subclass.integer == '#') {
- res = 0;
- ast_frfree(f);
- goto end;
- }
- }
- break;
- default:
- break;
- }
+ f->delivery.tv_sec = 0;
+ f->delivery.tv_usec = 0;
+ if (ast_write(chan, f)) {
+ ast_frfree(f);
+ goto end;
+ }
+ if ((f->frametype == AST_FRAME_DTMF) && (f->subclass.integer == '#')) {
+ res = 0;
+ ast_frfree(f);
+ goto end;
+ }
ast_frfree(f);
}
end:
More information about the asterisk-commits
mailing list