aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-18 02:00:34 +0000
committerroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-18 02:00:34 +0000
commit79caed98062c0c29c1f6bb8f31e2b22f51f1fca7 (patch)
tree7006f57f2b20e67260ab6427fd3a3035d56ee922 /res
parente9ff0e580aaeb8799ff153fea6b76cdf1f5df343 (diff)
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@8172 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-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);