]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't store DTMF BEGIN frames while a channel is in autoservice. It's just
authorRussell Bryant <russell@russellbryant.com>
Wed, 26 Dec 2007 17:06:26 +0000 (17:06 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 26 Dec 2007 17:06:26 +0000 (17:06 +0000)
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)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@94790 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/autoservice.c

index 12eda1a1d950113a68886d01ff066a55be0f117a..d105e510cf53c49cfad6e00881e3ded98fbb3adb 100644 (file)
@@ -125,7 +125,6 @@ static void *autoservice_run(void *ign)
                         * 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 @@ static void *autoservice_run(void *ign)
                                break;
 
                        /* Throw these frames away */
+                       case AST_FRAME_DTMF_BEGIN:
                        case AST_FRAME_VOICE:
                        case AST_FRAME_VIDEO:
                        case AST_FRAME_NULL: