mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 11:58:40 +00:00
confbridge: Add support for disabling text messaging.
When in a conference bridge it may be necessary to have text messages disabled for specific participants or for all. This change adds a configuration option, "text_messaging", which can be used to enable or disable this on the user profile. By default existing behavior is preserved as it defaults to "yes". ASTERISK-28841 Change-Id: I30b5d9ae6f4803881d1ed9300590d405e392bc13
This commit is contained in:
committed by
Joshua Colp
parent
191f136260
commit
6cfc6ff53c
@@ -2628,6 +2628,13 @@ static int confbridge_exec(struct ast_channel *chan, const char *data)
|
||||
user.features.dtmf_passthrough = 0;
|
||||
}
|
||||
|
||||
/* Set if text messaging is enabled for this user or not */
|
||||
if (ast_test_flag(&user.u_profile, USER_OPT_TEXT_MESSAGING)) {
|
||||
user.features.text_messaging = 1;
|
||||
} else {
|
||||
user.features.text_messaging = 0;
|
||||
}
|
||||
|
||||
/* Set dsp threshold values if present */
|
||||
if (user.u_profile.talking_threshold) {
|
||||
user.tech_args.talking_threshold = user.u_profile.talking_threshold;
|
||||
|
||||
Reference in New Issue
Block a user