Merged revisions 258775 via svnmerge from
[asterisk/asterisk.git] / res / res_monitor.c
index 959a80c..febdab4 100644 (file)
@@ -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);