func_channel: Expose previously unsettable options.

Certain channel options are not set anywhere or
exposed in any way to users, making them unusable.
This exposes some of these options which make sense
for users to manipulate at runtime.

Resolves: #442
(cherry picked from commit 9211fb5e97)
This commit is contained in:
Naveen Albert
2023-11-11 09:35:29 -05:00
committed by Asterisk Development Team
parent 0620c14eb6
commit bef9a9422d
3 changed files with 77 additions and 1 deletions

View File

@@ -462,7 +462,12 @@ struct ast_control_pvt_cause_code {
* Option data is a single signed char value 0 or 1
*
* \note This option appears to be unused in the code. It is handled, but never
* set or queried. */
* set or queried.
* (chan_dahdi does allow setting via CHANNEL(echocan_mode), but this uses
* the func_write callback, not the setoption callback.
* If another channel driver added echocan support, it might make sense to move
* this to the setoption callback and then actually use this option.)
*/
#define AST_OPTION_ECHOCAN 8
/*! \brief Handle channel write data