|
|
@ -1485,6 +1485,7 @@ struct ast_frame *ast_dsp_process(struct ast_channel *chan, struct ast_dsp *dsp,
|
|
|
|
if ((dsp->features & DSP_FEATURE_SILENCE_SUPPRESS) && silence) {
|
|
|
|
if ((dsp->features & DSP_FEATURE_SILENCE_SUPPRESS) && silence) {
|
|
|
|
memset(&dsp->f, 0, sizeof(dsp->f));
|
|
|
|
memset(&dsp->f, 0, sizeof(dsp->f));
|
|
|
|
dsp->f.frametype = AST_FRAME_NULL;
|
|
|
|
dsp->f.frametype = AST_FRAME_NULL;
|
|
|
|
|
|
|
|
ast_frfree(af);
|
|
|
|
return &dsp->f;
|
|
|
|
return &dsp->f;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ((dsp->features & DSP_FEATURE_BUSY_DETECT) && ast_dsp_busydetect(dsp)) {
|
|
|
|
if ((dsp->features & DSP_FEATURE_BUSY_DETECT) && ast_dsp_busydetect(dsp)) {
|
|
|
@ -1492,6 +1493,7 @@ struct ast_frame *ast_dsp_process(struct ast_channel *chan, struct ast_dsp *dsp,
|
|
|
|
memset(&dsp->f, 0, sizeof(dsp->f));
|
|
|
|
memset(&dsp->f, 0, sizeof(dsp->f));
|
|
|
|
dsp->f.frametype = AST_FRAME_CONTROL;
|
|
|
|
dsp->f.frametype = AST_FRAME_CONTROL;
|
|
|
|
dsp->f.subclass = AST_CONTROL_BUSY;
|
|
|
|
dsp->f.subclass = AST_CONTROL_BUSY;
|
|
|
|
|
|
|
|
ast_frfree(af);
|
|
|
|
ast_log(LOG_DEBUG, "Requesting Hangup because the busy tone was detected on channel %s\n", chan->name);
|
|
|
|
ast_log(LOG_DEBUG, "Requesting Hangup because the busy tone was detected on channel %s\n", chan->name);
|
|
|
|
return &dsp->f;
|
|
|
|
return &dsp->f;
|
|
|
|
}
|
|
|
|
}
|
|
|
|