[asterisk-users] realtime queue_log to mySQL backport to 1.4

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Fri Oct 17 09:21:27 CDT 2008


On Friday 17 October 2008 01:09:18 Lee, John (Sydney) wrote:
> So, at this stage, my res_config_mysql.c is still not writing anything
> into table queue_log despite having: a) correct res_mysql.conf b)
> extconfig.conf c) mysql up and running d) res_config_mysql.c start up
> okay
>
> I believe that it is because the following "if" condition in logger.c is
> never met:
>
> ***if (ast_check_realtime("queue_log"))***
>    {
>      va_start(ap, fmt);
>      vsnprintf(qlog_msg, sizeof(qlog_msg), fmt, ap);
>      va_end(ap);
>      snprintf(time_str, sizeof(time_str), "%ld", (long)time(NULL));
>      ast_store_realtime("queue_log", "time", time_str, "callid", callid,
>
>                         "queuename", queuename, "agent", agent, "event",
>
>                          event, "data", qlog_msg, NULL);
>
> Does anyone know what does ast_check_realtime do?

ast_check_realtime simply verifies that you have an entry in extconfig.conf
called "queue_log" at the time of last reload.  In other words, it's a check
to ensure that you have a realtime mapping.

-- 
Tilghman



More information about the asterisk-users mailing list