aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 959a80c3f..febdab4a6 100644
--- a/res/res_monitor.c
+++ b/res/res_monitor.c
@@ -509,7 +509,9 @@ int AST_OPTIONAL_API_NAME(ast_monitor_stop)(struct ast_channel *chan, int need_l
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);