DSP mods too, weird CVS bug
authorMark Spencer <markster@digium.com>
Wed, 2 Jul 2003 21:50:01 +0000 (21:50 +0000)
committerMark Spencer <markster@digium.com>
Wed, 2 Jul 2003 21:50:01 +0000 (21:50 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1159 65c4cc65-6c06-0410-ace0-fbb531ad65f3

dsp.c

diff --git a/dsp.c b/dsp.c
index 02cba66..d4359c7 100755 (executable)
--- a/dsp.c
+++ b/dsp.c
@@ -1258,12 +1258,12 @@ struct ast_frame *ast_dsp_process(struct ast_channel *chan, struct ast_dsp *dsp,
                                                        /* If we found a digit, send it now */
                                                        dsp->f.frametype = AST_FRAME_DTMF;
                                                        dsp->f.subclass = dsp->thinkdigit;
-                                                       if (chan)
-                                                               ast_queue_frame(chan, &dsp->f, needlock);
+                                                       dsp->thinkdigit = 0;
+                                               } else {
+                                                       dsp->f.frametype = AST_FRAME_DTMF;
+                                                       dsp->f.subclass = 'u';
+                                                       dsp->thinkdigit = 0;
                                                }
-                                               dsp->f.frametype = AST_FRAME_DTMF;
-                                               dsp->f.subclass = 'u';
-                                               dsp->thinkdigit = 0;
                                                FIX_INF(af);
                                                if (chan)
                                                        ast_queue_frame(chan, af, needlock);