QM at the moment does not support Asterisk realtime logging on Asterisk 1.8, as they changed the file format since 1.6.
We have a workaround anyway:
1. let's say your Asterisk writes to table
queue_logs in database
asterisk.
2. give your
queuemetrics MySQL user the grants to read the database
asterisk. Make sure you can run a:
SELECT * FROM asterisk.queue_logs LIMIT 0,1
without errors when using the queuemetrics database.
3. Create a view in the QM database, as follows:
CREATE VIEW ql_live AS SELECT unix_timestamp(time) as time_id, callid
as call_id, queuename as queue, agent as agent, event as verb, data1,
data2, data3, data4, data5, id as unique_row_count, 'LIVE' as
partition, '' as serverid FROM asterisk.queue_logs
4. Edit the configurations.properties file of QM as follows:
default.queue_log_file=sql:LIVE
And
sqlPreset.1.table=ql_live
It will be a bit less efficient, but works.