mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-27 16:07:15 -07:00
Features: BRIDGE_FEATURES variable automixmonitor support and use proper party
BRIDGE_FEATURES did not previously support the automixmonitor feature. Now it does. In addition, the BRIDGE_FEATURES variable would not apply features to the proper party based on whether the feature option letter was in caps or in lowercase (both ways would apply it to the caller). Now uppercase applies to the caller while lowercase applies to the callee (like with the dial option) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@378063 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
+19
-9
@@ -4227,22 +4227,32 @@ static void set_bridge_features_on_config(struct ast_bridge_config *config, cons
|
||||
}
|
||||
|
||||
for (feature = features; *feature; feature++) {
|
||||
switch (*feature) {
|
||||
case 'T' :
|
||||
struct ast_flags *party;
|
||||
char this_feature;
|
||||
|
||||
if (isupper(*feature)) {
|
||||
party = &(config->features_caller);
|
||||
} else {
|
||||
party = &(config->features_callee);
|
||||
}
|
||||
|
||||
this_feature = tolower(*feature);
|
||||
|
||||
switch (this_feature) {
|
||||
case 't' :
|
||||
ast_set_flag(&(config->features_caller), AST_FEATURE_REDIRECT);
|
||||
ast_set_flag(party, AST_FEATURE_REDIRECT);
|
||||
break;
|
||||
case 'K' :
|
||||
case 'k' :
|
||||
ast_set_flag(&(config->features_caller), AST_FEATURE_PARKCALL);
|
||||
ast_set_flag(party, AST_FEATURE_PARKCALL);
|
||||
break;
|
||||
case 'H' :
|
||||
case 'h' :
|
||||
ast_set_flag(&(config->features_caller), AST_FEATURE_DISCONNECT);
|
||||
ast_set_flag(party, AST_FEATURE_DISCONNECT);
|
||||
break;
|
||||
case 'W' :
|
||||
case 'w' :
|
||||
ast_set_flag(&(config->features_caller), AST_FEATURE_AUTOMON);
|
||||
ast_set_flag(party, AST_FEATURE_AUTOMON);
|
||||
break;
|
||||
case 'x' :
|
||||
ast_set_flag(party, AST_FEATURE_AUTOMIXMON);
|
||||
break;
|
||||
default :
|
||||
ast_log(LOG_WARNING, "Skipping unknown feature code '%c'\n", *feature);
|
||||
|
||||
Reference in New Issue
Block a user