Echo cancellation can be disabled using echocancel=no
in chan_dahdi.conf
.
However, the logic to do so during a call is currently a stub.
There is an AST_OPTION_ECHOCAN
in frame.h
, but a comment indicates this option is never used: https://github.com/mojolingo/asterisk/blob/ab490db709efbca7e4766bc7e5c368039c003e2e/include/asterisk/frame.h#L404
We would want to set the option for the call, similar to e.g. ast_channel_setoption(chan, AST_OPTION_OPRMODE, &oprmode, sizeof(oprmode), 0);
This should probably be done as part of the DAHDI part of the CHANNEL function, assuming this logic is reset on the DAHDI channel per call.
You must be
9/12/2025 2:59 PM — InterLinked
Looks like this is already possible, by doing
Set(CHANNEL(echocan_mode)=off)
.AST_OPTION_ECHOCAN
remains unused, but that does no harm.