diff --git a/res/res_monitor.c b/res/res_monitor.c index 959a80c3ff766fa26bcec889ff73ea2acd078cd9..febdab4a61ab471d40a15b520225ba154d865a4d 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);