aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-17 18:29:57 +0000
committermattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-17 18:29:57 +0000
commitf5fa59f9a495b8d358d20ff7559f7ec78ba8b977 (patch)
treed06c6333e16f711f4ed2eac6c96c35f7fdd92266
parentb78244f0ffdece429a5eae257b5ccbe9a3966751 (diff)
Backport of fix for #6094
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@8134 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--res/res_features.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/res/res_features.c b/res/res_features.c
index 6e4a0ac2c..bf23129ae 100644
--- a/res/res_features.c
+++ b/res/res_features.c
@@ -1280,10 +1280,12 @@ int ast_bridge_call(struct ast_channel *chan,struct ast_channel *peer,struct ast
if (!(monitor_app = pbx_findapp("Monitor")))
monitor_ok=0;
}
- if ((monitor_exec = pbx_builtin_getvar_helper(chan, "AUTO_MONITOR")))
- pbx_exec(chan, monitor_app, monitor_exec, 1);
- else if ((monitor_exec = pbx_builtin_getvar_helper(peer, "AUTO_MONITOR")))
- pbx_exec(peer, monitor_app, monitor_exec, 1);
+ if (monitor_app) {
+ if ((monitor_exec = pbx_builtin_getvar_helper(chan, "AUTO_MONITOR")))
+ pbx_exec(chan, monitor_app, monitor_exec, 1);
+ else if ((monitor_exec = pbx_builtin_getvar_helper(peer, "AUTO_MONITOR")))
+ pbx_exec(peer, monitor_app, monitor_exec, 1);
+ }
}
set_config_flags(chan, peer, config);