From: Joshua Colp Date: Wed, 21 Mar 2007 18:03:20 +0000 (+0000) Subject: Indicate the filename changed when it is changed. (issue #9311 reported by jsmith) X-Git-Tag: 1.2.18~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b4eeda1538c26c20dcac585b3fe7e1263d4b853;p=thirdparty%2Fasterisk.git Indicate the filename changed when it is changed. (issue #9311 reported by jsmith) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@59086 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_monitor.c b/res/res_monitor.c index b64b5c7997..f15c3c2860 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); }