Имеется asterisk 1.8.17 + odbc на slackware 13.37 Поставлена задача - записывать разговоры. Действую по инструкции http://habrahabr.ru/post/212815/
mysql (базу создал), odbc запустил
odbc.iniroot@asterisk:/etc/asterisk# iusql asterisk
Connected!
sql-statement
help [tablename]
quit
а в логе asteriskroot@asterisk:/etc# cat odbc.ini
[ODBC Data Sources]
asterisk = MySQL
[asterisk]
Driver = /usr/lib/libmyodbc5w.so
Server = localhost
Socket = /var/run/mysqld/mysql.sock
Database = asterisk
User = root
я его чекаюasterisk*CLI> module reload cdr_adaptive_odbc.so
-- Reloading module 'cdr_adaptive_odbc.so' (Adaptive ODBC CDR backend)
== Parsing '/etc/asterisk/cdr_adaptive_odbc.conf': == Found
[Feb 10 09:51:55] NOTICE[10683]: res_odbc.c:1531 odbc_obj_connect: Connecting MySQL
[Feb 10 09:51:55] WARNING[10683]: res_odbc.c:1556 odbc_obj_connect: res_odbc: Error SQLConnect=-1 errno=2002
[Feb 10 09:51:55] WARNING[10683]: res_odbc.c:1371 _ast_odbc_request_obj2: Failed to connect to MySQL
[Feb 10 09:51:55] WARNING[10683]: cdr_adaptive_odbc.c:123 load_config: No such connection 'MySQL' in the 'cdr_adaptive_connection' section of cdr_adaptive_odbc.conf. Check res_odbc.conf.
ресурс MySQL объявлен, в сdr_adaptive_odbc.conf указанroot@asterisk:/etc/asterisk# cat res_odbc.conf
[MySQL]
enabled => yes
dsn => asterisk
username => root
pre-connect => yes
не пойму, где собака порыласьroot@asterisk:/etc/asterisk# cat cdr_adaptive_odbc.conf
[cdr_adaptive_connection]
connection=MySQL
table=cdr
alias start=>calldate