Skip to content
Snippets Groups Projects
Commit cf5a44f1 authored by Martin Pycko's avatar Martin Pycko
Browse files

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
parent f88d485e
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment