aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'res/res_monitor.c')
-rw-r--r--res/res_monitor.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/res/res_monitor.c b/res/res_monitor.c
index 1b537868d..a0f2ff512 100644
--- a/res/res_monitor.c
+++ b/res/res_monitor.c
@@ -372,7 +372,9 @@ int ast_monitor_stop(struct ast_channel *chan, int need_lock)
chan->name,
chan->uniqueid
);
+ pbx_builtin_setvar_helper(chan, "MONITORED", NULL);
}
+ pbx_builtin_setvar_helper(chan, "AUTO_MONITOR", NULL);
UNLOCK_IF_NEEDED(chan, need_lock);