# apt-get install asterisk-mysql(предварительно копи-пастим таблицу из /usr/share/doc/asterisk-mysql/cdr_mysql.txt)
# mysql -p
> create database asterisk;
> grant all privileges on asterisk.* to asterisk@localhost identified by 'mypass';
/etc/asterisk/cdr_mysql.conf:
[global]
hostname=localhost
dbname=asterisk
table=cdr
password=mypass
user=asterisk
port=3306
sock=/var/run/mysqld/mysqld.sock
# asterisk -rРешение:
ubuntu*CLI> module load cdr_addon_mysql.so
Unable to load module cdr_addon_mysql.so
Command 'module load cdr_addon_mysql.so ' failed.
[Apr 8 00:15:32] WARNING[1936]: loader.c:716 inspect_module: Module 'cdr_addon_mysql.so' was not compiled with the same compile-time options as this version of Asterisk.
[Apr 8 00:15:32] WARNING[1936]: loader.c:717 inspect_module: Module 'cdr_addon_mysql.so' will not be initialized as it may cause instability.
[Apr 8 00:15:32] WARNING[1936]: loader.c:800 load_resource: Module 'cdr_addon_mysql.so' could not be loaded.
# apt-get build-dep asterisk-mysql
# apt-get -b source asterisk-mysql
# aptitude purge asterisk-mysql
# dpkg -i asterisk-mysql_1.6.2.0-1_i386.deb
# asterisk -r
> module load cdr_addon_mysql.so
> cdr mysql status
Connected to asterisk@localhost, port 3306 using table cdr for 35 seconds.
Wrote 0 records since last restart.
Комментариев нет:
Отправить комментарий