aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--res/res_monitor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/res/res_monitor.c b/res/res_monitor.c
index b64b5c799..f15c3c286 100644
--- a/res/res_monitor.c
+++ b/res/res_monitor.c
@@ -338,6 +338,7 @@ int ast_monitor_change_fname(struct ast_channel *chan, const char *fname_base, i
}
snprintf(chan->monitor->filename_base, FILENAME_MAX, "%s/%s", directory ? "" : ast_config_AST_MONITOR_DIR, fname_base);
+ chan->monitor->filename_changed = 1;
} else {
ast_log(LOG_WARNING, "Cannot change monitor filename of channel %s to %s, monitoring not started\n", chan->name, fname_base);
}