[asterisk-dev] AST_CONTROL_MUTE/UNMUTE

Olle E. Johansson oej at edvina.net
Tue Jan 19 13:24:55 CST 2010


19 jan 2010 kl. 17.07 skrev Nick Lewis:

> I would like to add a builtin feature for muting a call. Initially I
> intended to add all the new code into features.c but I now think that
> each of the channel technologies should create their own outgoing mutes.
> This is because in some technologies it may require more than just
> sending silence (e.g. interrupting transmission and informing downstream
> systems).
> 
> I therefore propose the new control frame types of AST_CONTROL_MUTE and
> AST_CONTROL_UNMUTE. When features.c detects a mute request (via DTMF) it
> may inform the channel (or channels) that that need to be muted with an
> AST_CONTROL_MUTE frame and the mute may then be implemented in a way
> appropriate to the technology
> 
> May I please have your comments on the suitability of such an approach
> 
Have you checked the res_mute that implements an audiohook to mute a channel?

/O



More information about the asterisk-dev mailing list