mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Fix inverted test preventing DTMF disconnect from working.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@389569 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -4181,7 +4181,7 @@ static int setup_bridge_features_builtin(struct ast_bridge_features *features, s
|
||||
}
|
||||
if (ast_test_flag(flags, AST_FEATURE_DISCONNECT)) {
|
||||
builtin_feature_get_exten(chan, "disconnect", dtmf, sizeof(dtmf));
|
||||
if (ast_strlen_zero(dtmf)) {
|
||||
if (!ast_strlen_zero(dtmf)) {
|
||||
res |= ast_bridge_features_enable(features, AST_BRIDGE_BUILTIN_HANGUP, dtmf, NULL, NULL, 1);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user