星号11队列登录到mysql

时间:2015-05-11 07:00:43

标签: asterisk

如何在Asterisk 11的MySQL中将队列日志的默认存储从 /var/log/asterisk/queue_log 文件更改为 asteriskcdrdb.queue_log 表?

2 个答案:

答案 0 :(得分:7)

You should have in /etc/asterisk/extconfig.conf:

onefile.csv:
------------
details
1, John, john@gmail.com
2, Steve, steve@gmail.com
3, Sally, sally@gmail.com
account
1, John, johntheman, johnh43
2, Steve, password, steve.12
3, Sally, letmein, slllya2

and in /etc/asterisk/res_config_mysql.conf:

[settings]
queue_log => mysql,dsn,tablename

The schema for the table is:

[dsn]
dbname = database_name
dbuser = database_user
dbpass = database_pass
dbcharset = utf8
requirements = warn

答案 1 :(得分:1)

我建议您查看以下链接:

http://www.voip-info.org/wiki/view/Asterisk+queue_log+on+MySQL

请记住,大多数这些配置已经很清楚,并将记录在www.voip-info.org wiki上。