由于Asterisk 1.8 MySQL CDR存储是内置的(CDR_MySQL.so和Asterisk插件一样不推荐使用)。我配置了一个cdr_mysql.conf(类似于res_config_mysql.conf中的设置,它有效),我运行了mysql并创建了cdr表(是的,Asterisk可以写入表)。但是,我在那张表中没有CDR(我有Master.csv CDR)。我错过了什么?
建议?
没有ODBC仅在中启用所有Mysql(即使已弃用),使菜单选择并运行:
make clean & make & make install
清洁-这是必要的在modules.conf中写下一步:
load => app_db.so
load => app_cdr.so
load => app_mysql.so
load => cdr_csv.so
load => cdr_mysql.so
load => func_cdr.so
load => func_db.so
在cdr.conf中
[general]
enable=yes
在cdr_mysql.conf-all中,用于连接到mysql。
完成所有这些之后,转到CLI并键入cdrshow-status并查找mysql!)尝试在之前使用此命令
CLI> cdr show status
Call Detail Record (CDR) settings
----------------------------------
Logging: Enabled
Mode: Simple
Log unanswered calls: Yes
Log congestion: No
* Registered Backends
-------------------
mysql
csv
在星号11中,cdr_mysql仍然可以通过进行操作
make menuconfig
它很简单。由于cdr_odbc的工作原理相同,所以我看不出有任何问题。
您还需要具有带有的cdr.conf文件
[general]
; Define whether or not to use CDR logging. Setting this to "no" will override
; any loading of backend CDR modules. Default is "yes".
enable=yes
cdr_custom.conf和类似的东西
[mappings]
Master.csv => ${CSV_QUOTE(${CDR(clid)})},${CSV_QUOTE(${CDR(src)})},${CSV_QUOTE(${CDR(dst)})},${CSV_QUOTE(${CDR(dcontext)})},${CSV_QUOTE(${CDR(channel)})},${CSV_QUOTE(${CDR(dstchannel)})},${CSV_QUOTE(${CDR(lastapp)})},${CSV_QUOTE(${CDR(lastdata)})},${CSV_QUOTE(${CDR(start)})},${CSV_QUOTE(${CDR(answer)})},${CSV_QUOTE(${CDR(end)})},${CSV_QUOTE(${CDR(duration)})},${CSV_QUOTE(${CDR(billsec)})},${CSV_QUOTE(${CDR(disposition)})},${CSV_QUOTE(${CDR(amaflags)})},${CSV_QUOTE(${CDR(accountcode)})},${CSV_QUOTE(${CDR(uniqueid)})},${CSV_QUOTE(${CDR(userfield)})},${CDR(sequence)}