DSP mods too, weird CVS bug

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1159 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2003-07-02 21:50:01 +00:00
parent 485db41457
commit 3201291b32

10
dsp.c
View File

@@ -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 */ /* If we found a digit, send it now */
dsp->f.frametype = AST_FRAME_DTMF; dsp->f.frametype = AST_FRAME_DTMF;
dsp->f.subclass = dsp->thinkdigit; dsp->f.subclass = dsp->thinkdigit;
if (chan) dsp->thinkdigit = 0;
ast_queue_frame(chan, &dsp->f, needlock); } 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); FIX_INF(af);
if (chan) if (chan)
ast_queue_frame(chan, af, needlock); ast_queue_frame(chan, af, needlock);