aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/features.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/main/features.c b/main/features.c
index d013b78f4..817016053 100644
--- a/main/features.c
+++ b/main/features.c
@@ -3402,8 +3402,12 @@ static int park_exec_full(struct ast_channel *chan, void *data, struct ast_parki
}
ast_channel_unlock(peer);
+ /* When the datastores for both caller and callee are created, both the callee and caller channels
+ * use the features_caller flag variable to represent themselves. With that said, the config.features_callee
+ * flags should be copied from the datastore's caller feature flags regardless if peer was a callee
+ * or caller. */
if (dialfeatures) {
- ast_copy_flags(&(config.features_callee), dialfeatures->is_caller ? &(dialfeatures->features_caller) : &(dialfeatures->features_callee), AST_FLAGS_ALL);
+ ast_copy_flags(&(config.features_callee), &(dialfeatures->features_caller), AST_FLAGS_ALL);
}
if ((parkinglot->parkedcalltransfers == AST_FEATURE_FLAG_BYCALLEE) || (parkinglot->parkedcalltransfers == AST_FEATURE_FLAG_BYBOTH)) {