[asterisk-commits] mmichelson: trunk r92526 - /trunk/res/res_features.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Dec 12 11:51:50 CST 2007
Author: mmichelson
Date: Wed Dec 12 11:51:50 2007
New Revision: 92526
URL: http://svn.digium.com/view/asterisk?view=rev&rev=92526
Log:
Same change to trunk as revision 92510. I'm not sure why I merged
this way, but I did.
Modified:
trunk/res/res_features.c
Modified: trunk/res/res_features.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_features.c?view=diff&rev=92526&r1=92525&r2=92526
==============================================================================
--- trunk/res/res_features.c (original)
+++ trunk/res/res_features.c Wed Dec 12 11:51:50 2007
@@ -1555,14 +1555,18 @@
struct ast_call_feature *feature;
struct feature_group *fg = NULL;
struct feature_group_exten *fge;
- const char *dynamic_features=pbx_builtin_getvar_helper(chan,"DYNAMIC_FEATURES");
+ char *dynamic_features;
char *tmp, *tok;
- if (sense == FEATURE_SENSE_CHAN)
+ if (sense == FEATURE_SENSE_CHAN) {
ast_copy_flags(&features, &(config->features_caller), AST_FLAGS_ALL);
- else
+ dynamic_features = pbx_builtin_getvar_helper(chan, "DYNAMIC_FEATURES");
+ }
+ else {
ast_copy_flags(&features, &(config->features_callee), AST_FLAGS_ALL);
- ast_debug(3, "Feature interpret: chan=%s, peer=%s, sense=%d, features=%d\n", chan->name, peer->name, sense, features.flags);
+ dynamic_features = pbx_builtin_getvar_helper(peer, "DYNAMIC_FEATURES");
+ }
+ ast_debug(3, "Feature interpret: chan=%s, peer=%s, sense=%d, features=%d, dynamic=%s\n", chan->name, peer->name, sense, features.flags, dynamic_features);
ast_rwlock_rdlock(&features_lock);
for (x = 0; x < FEATURES_COUNT; x++) {
More information about the asterisk-commits
mailing list