Index: logger.c =================================================================== --- logger.c (revision 8883) +++ logger.c (working copy) @@ -83,6 +83,8 @@ static char dateformat[256] = "%b %e %T"; /* Original Asterisk Format */ +static char queue_log_name[256] = "queue_log"; + AST_MUTEX_DEFINE_STATIC(msglist_lock); AST_MUTEX_DEFINE_STATIC(loglock); static int filesize_reload_needed = 0; @@ -339,6 +341,9 @@ if ((s = ast_variable_retrieve(cfg, "general", "event_log"))) { logfiles.event_log = ast_true(s); } + if ((s = ast_variable_retrieve(cfg, "general", "queue_log_name"))) { + ast_copy_string(queue_log_name, s, sizeof(queue_log_name)); + } var = ast_variable_browse(cfg, "logfiles"); while(var) { @@ -384,7 +389,7 @@ fclose(qlog); qlog = NULL; } - snprintf(filename, sizeof(filename), "%s/%s", (char *)ast_config_AST_LOG_DIR, "queue_log"); + snprintf(filename, sizeof(filename), "%s/%s", (char *)ast_config_AST_LOG_DIR, queue_log_name); if (logfiles.queue_log) { qlog = fopen(filename, "a"); } Index: configs/logger.conf.sample =================================================================== --- configs/logger.conf.sample (revision 8883) +++ configs/logger.conf.sample (working copy) @@ -20,6 +20,10 @@ ; (defaults to yes). ;queue_log = no ; +; Set the queue_log filename +; (defaults to queue_log) +;queue_log_name = queue_log +; ; This determines whether or not we log generic events to a file ; (defaults to yes). ;event_log = no