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 _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users