diff options
author | Richard Mudgett <rmudgett@digium.com> | 2013-05-23 18:40:50 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2013-05-23 18:40:50 +0000 |
commit | 3464e0919afe398717b93b20fff37560c6d4478f (patch) | |
tree | 157c1f5991071bbc2d4ae798932259dedccb66a1 /main/features.c | |
parent | 61927f7c8242b78eed0c9509db73ba13e11b6da4 (diff) |
Fix inverted test preventing DTMF disconnect from working.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@389569 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/features.c')
-rw-r--r-- | main/features.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/features.c b/main/features.c index be872a80d..69355e920 100644 --- a/main/features.c +++ b/main/features.c @@ -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); } } |