summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/app_dial.c2
-rw-r--r--include/asterisk/features.h6
-rw-r--r--main/features.c7
3 files changed, 7 insertions, 8 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c
index 56ba3de53..8f6a49ba3 100644
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -1107,7 +1107,7 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in,
static int detect_disconnect(struct ast_channel *chan, char code, struct ast_str *featurecode)
{
struct ast_flags features = { AST_FEATURE_DISCONNECT }; /* only concerned with disconnect feature */
- struct ast_call_feature feature;
+ struct ast_call_feature feature = { 0, };
int res;
ast_str_append(&featurecode, 1, "%c", code);
diff --git a/include/asterisk/features.h b/include/asterisk/features.h
index 7a88abcb1..9a666c743 100644
--- a/include/asterisk/features.h
+++ b/include/asterisk/features.h
@@ -131,7 +131,11 @@ void ast_register_feature(struct ast_call_feature *feature);
void ast_unregister_feature(struct ast_call_feature *feature);
/*! \brief detect a feature before bridging
- \para chan, ast_flags ptr, code, ast_call_feature ptr to be set if found */
+ \param chan
+ \param ast_flags ptr
+ \param char ptr of input code
+ \retval ast_call_feature ptr to be set if found
+ \return result, was feature found or not */
int ast_feature_detect(struct ast_channel *chan, struct ast_flags *features, char *code, struct ast_call_feature *feature);
/*! \brief look for a call feature entry by its sname
diff --git a/main/features.c b/main/features.c
index 2f0b07b7a..0b6d7f53c 100644
--- a/main/features.c
+++ b/main/features.c
@@ -2110,12 +2110,7 @@ static int feature_interpret(struct ast_channel *chan, struct ast_channel *peer,
int ast_feature_detect(struct ast_channel *chan, struct ast_flags *features, char *code, struct ast_call_feature *feature) {
- char *dynamic_features;
- ast_channel_lock(chan);
- dynamic_features = ast_strdupa(S_OR(pbx_builtin_getvar_helper(chan, "DYNAMIC_FEATURES"),""));
- ast_channel_unlock(chan);
-
- return feature_interpret_helper(chan, NULL, NULL, code, 0, dynamic_features, features, 0, feature);
+ return feature_interpret_helper(chan, NULL, NULL, code, 0, NULL, features, 0, feature);
}
static void set_config_flags(struct ast_channel *chan, struct ast_channel *peer, struct ast_bridge_config *config)