Continuing the discussion from Queue log into MySQL database:
Continuing the discussion from Registering queue log in database:
Continuing the discussion from Registering queue log in database:
I am trying to get this working with the latest distro 10.13.66 and hopefully someone can steer me in the right direction. I have tried the above mentioned guide and scoured the internet.
In logger_general_custom.conf I have:
queue_adaptive_realtime = yes
queue_log_to_file = yes
I did not have the extconfig.conf file or the res_config_mysql.conf files, so I created them:
In extconfig.conf I have:
[settings]
queue_log => mysql,general
In res_config_mysql.conf I have:
[general]
dbhost = 127.0.0.1
dbname = asteriskcdrdb
dbuser = mydbusername
dbpass = mydbuserpassword
dbport = 3306
requirements=warn
Here is the structure of my queue_log table which I got from this link: http://stackoverflow.com/questions/30161384/asterisk-11-queue-log-to-mysql
CREATE TABLE tablename
(
id
bigint(255) unsigned NOT NULL AUTO_INCREMENT,
time
varchar(26) NOT NULL DEFAULT ‘’,
callid
varchar(40) NOT NULL DEFAULT ‘’,
queuename
varchar(20) NOT NULL DEFAULT ‘’,
agent
varchar(20) NOT NULL DEFAULT ‘’,
event
varchar(20) NOT NULL DEFAULT ‘’,
data
varchar(100) NOT NULL DEFAULT ‘’,
data1
varchar(40) NOT NULL DEFAULT ‘’,
data2
varchar(40) NOT NULL DEFAULT ‘’,
data3
varchar(40) NOT NULL DEFAULT ‘’,
data4
varchar(40) NOT NULL DEFAULT ‘’,
data5
varchar(40) NOT NULL DEFAULT ‘’,
created
timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (id
),
KEY queue
(queuename
),
KEY event
(event
)
) DEFAULT CHARSET=utf8;
Nothing seems to work. I also tried using the dsn,tablename instead of the [general] context for the extconfig and res_config_mysql files. I restarted MySQL and reloaded Asterisk afterward.
Does anyone know the trick to getting the queue_log into MySQL with the FreePBX distro? It would be really useful for queue status boards and reports.
Thanks,
Nowell