mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
Add the second way of signalizing hangup when busydetect detects the busy tone
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1169 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
1
dsp.c
1
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;
|
||||
|
Reference in New Issue
Block a user