Add the second way of signalizing hangup when busydetect detects the busy tone
authorMartin Pycko <martinp@digium.com>
Tue, 8 Jul 2003 21:14:59 +0000 (21:14 +0000)
committerMartin Pycko <martinp@digium.com>
Tue, 8 Jul 2003 21:14:59 +0000 (21:14 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1169 65c4cc65-6c06-0410-ace0-fbb531ad65f3

dsp.c

diff --git a/dsp.c b/dsp.c
index d4359c7..5bf9d31 100755 (executable)
--- a/dsp.c
+++ b/dsp.c
@@ -1205,6 +1205,7 @@ struct ast_frame *ast_dsp_process(struct ast_channel *chan, struct ast_dsp *dsp,
                return &dsp->f;
        }
        if ((dsp->features & DSP_FEATURE_BUSY_DETECT) && ast_dsp_busydetect(dsp)) {
+               chan->_softhangup |= AST_SOFTHANGUP_DEV;
                memset(&dsp->f, 0, sizeof(dsp->f));
                dsp->f.frametype = AST_FRAME_CONTROL;
                dsp->f.subclass = AST_CONTROL_BUSY;