Код: Выделить всё
asterisk*CLI> module reload cdr_addon_mysql.so
No such module 'cdr_addon_mysql.so'
asterisk*CLI> cdr show status
Call Detail Record (CDR) settings
----------------------------------
Logging: Enabled
Mode: Simple
Log unanswered calls: No
* Registered Backends
-------------------
(none)
asterisk*CLI>
Код: Выделить всё
asterisk*CLI> cdr mysql status
No such command 'cdr mysql status' (type 'core show help cdr mysql' for other possible commands)
Код: Выделить всё
asterisk*CLI> module show like mysql
Module Description Use Count
0 modules loaded
Код: Выделить всё
[root@asterisk ~]# cat /etc/asterisk/cdr_mysql.conf
;
; Note - if the database server is hosted on the same machine as the
; asterisk server, you can achieve a local Unix socket connection by
; setting hostname = localhost
;
; port and sock are both optional parameters. If hostname is specified
; and is not "localhost", then cdr_mysql will attempt to connect to the
; port specified or use the default port. If hostname is not specified
; or if hostname is "localhost", then cdr_mysql will attempt to connect
; to the socket file specified by sock or otherwise use the default socket
; file.
;
[global]
hostname = localhost
dbname=asteriskcdrdb
password = fpbx
user = freepbx
userfield=1
port=3306
sock=/tmp/mysql.sock
Код: Выделить всё
[root@asterisk ~]# rpm -qa | grep mysql
mysql-5.0.77-4.el5_6.6
mysql-server-5.0.77-4.el5_6.6
php-mysql-5.1.6-27.el5
asterisk16-addons-mysql-1.6.2.3-1_centos5
mysql-5.0.77-4.el5_6.6
mysql-devel-5.0.77-4.el5_6.6
mysql-connector-odbc-3.51.26r1127-1.el5
mysql-devel-5.0.77-4.el5_6.6