--- res_features.c (revision 107646) +++ res_features.c (working copy) @@ -1075,7 +1075,7 @@ dynamic_features = pbx_builtin_getvar_helper(chan, "DYNAMIC_FEATURES"); } else { ast_copy_flags(&features, &(config->features_callee), AST_FLAGS_ALL); - dynamic_features = pbx_builtin_getvar_helper(peer, "DYNAMIC_FEATURES"); + dynamic_features = pbx_builtin_getvar_helper(chan, "DYNAMIC_FEATURES"); } if (option_debug > 2) ast_log(LOG_DEBUG, "Feature interpret: chan=%s, peer=%s, code=%s, sense=%d, features=%d dynamic=%s\n", chan->name, peer->name, code, sense, features.flags, dynamic_features);