[asterisk-commits] russell: branch 1.4 r94790 - /branches/1.4/main/autoservice.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Dec 26 11:06:26 CST 2007


Author: russell
Date: Wed Dec 26 11:06:26 2007
New Revision: 94790

URL: http://svn.digium.com/view/asterisk?view=rev&rev=94790
Log:
Don't store DTMF BEGIN frames while a channel is in autoservice.  It's just
going to make ast_read() do a lot of extra work when the channel comes back
out of autoservice.
(closes issue #11628, patched by me)

Modified:
    branches/1.4/main/autoservice.c

Modified: branches/1.4/main/autoservice.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/autoservice.c?view=diff&rev=94790&r1=94789&r2=94790
==============================================================================
--- branches/1.4/main/autoservice.c (original)
+++ branches/1.4/main/autoservice.c Wed Dec 26 11:06:26 2007
@@ -125,7 +125,6 @@
 			 * be queued up or not. */
 			switch (f->frametype) {
 			/* Save these frames */
-			case AST_FRAME_DTMF_BEGIN:
 			case AST_FRAME_DTMF_END:
 			case AST_FRAME_CONTROL:
 			case AST_FRAME_TEXT:
@@ -135,6 +134,7 @@
 				break;
 
 			/* Throw these frames away */
+			case AST_FRAME_DTMF_BEGIN:
 			case AST_FRAME_VOICE:
 			case AST_FRAME_VIDEO:
 			case AST_FRAME_NULL:




More information about the asterisk-commits mailing list