Author Topic: Asterisk 1.8 does not write queue_log to file  (Read 6569 times)

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Asterisk 1.8 does not write queue_log to file
« on: August 08, 2011, 11:56:34 »
A number of issues are experiencing the problem that Asterisk 1.8 is not writing the queue_log file when it has just started.

This is caused by an issue with Asterisk 1.8 that Digium is aware of and is currently tracked (but unsolved) in the Asterisk bug database:

* https://issues.asterisk.org/jira/browse/ASTERISK-17036
* https://issues.asterisk.org/jira/browse/ASTERISK-18208

We offer a couple of workarounds:

* Patch your system as described in ASTERISK-17036 or here: http://forum.queuemetrics.com/index.php?topic=1171.0
* Use the native Asterisk database logging with QM. See http://queuemetrics.com/manuals/QM_UserManual-chunked/ar01s18.html#_using_asterisk_realtime_queuelog_subsystem

See also: http://queuemetrics.com/manuals/QM_UserManual-chunked/ar01s23.html#_running_asterisk_1_8_with_queuemetrics

We will update when the issue is fixed in the main Asterisk sourcecode trunk.


QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Asterisk 1.8 does not write queue_log to file
« Reply #1 on: August 17, 2011, 12:36:36 »
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:
Code: [Select]
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:

Quote
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:

Code: [Select]
default.queue_log_file=sql:LIVE
And

Code: [Select]
sqlPreset.1.table=ql_live
It will be a bit less efficient, but works.




Wessel

  • Newbie
  • *
  • Posts: 18
  • Karma: 2
    • View Profile
Re: Asterisk 1.8 does not write queue_log to file
« Reply #2 on: January 01, 2012, 23:20:32 »
It's solved in 1.8.8
No need to hack the code anymore  :o

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Asterisk 1.8 does not write queue_log to file
« Reply #3 on: January 18, 2012, 18:03:23 »
Thanks! I am closing this topic.