What function is used to detect the modem signal in asterisk 13.x?

What function is used to detect the modem signal in asterisk 13.x?

For example, for detecting fax signal need to use the function ‘ast_dsp_process()’ in ‘/main/dsp.c’ file:

struct ast_frame *ast_dsp_process(struct ast_channel *chan, struct ast_dsp *dsp, struct ast_frame *af)...
if ((dsp->features & DSP_FEATURE_FAX_DETECT))
{
    if ((dsp->faxmode & DSP_FAXMODE_DETECT_CNG) && tone_detect(dsp, &dsp->cng_tone_state, shortdata, len))
    {
        fax_digit = 'f';
    }

    if ((dsp->faxmode & DSP_FAXMODE_DETECT_CED) && tone_detect(dsp, &dsp->ced_tone_state, shortdata, len))
    {
        fax_digit = 'e';
    }
}

There is no such functionality in Asterisk to detect modem signals or do modem things.

1 Like

Thank you bro. You as usually very helpful.