diff --git a/res/res_monitor.c b/res/res_monitor.c index 56f7d8f3f2..207c05e72c 100644 --- a/res/res_monitor.c +++ b/res/res_monitor.c @@ -371,7 +371,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);