I am a novice in Asterisk and i want to record my calls to MYSQL database. My Astersik is running on Ubuntu. I am successfully recording the calls but I want the recorded files to be stored in MYSQL database instead of Asterisk's Monitor folder. How can i configure that? i have successfully setup MYSQL database, my sip users are there, i am successfully configured the CDR but i want to record calls to MySQL database? who can help me please?
[MySQL]----- odbcinst.ini
Description = ODBC for MySQL
Driver = /usr/lib/x86_64-linux-gnu/odbc/libmyodbc.so
Setup = /usr/lib/x86_64-linux-gnu/odbc/libodbcmyS.so
FileUsage = 1
UsageCount = 4
[asterisk-connector]--- odbc.ini
Description = MySQL connection to 'asterisk' database
Driver = MySQL
Database = asterisk
Server = localhost
UserName = asterisk
Password = XXXX
Port = 3306
Socket = /var/run/mysqld/mysqld.sock
[asterisk] -----------res_odbc
enabled => yes
dsn => asterisk-connector
username => asterisk
password => XXXX
pooling => no
limit => 1
pre-connect => yes
[general] -------------res_config_mysql.conf
dbhost = 127.0.0.1
dbname = asterisk
dbuser = asterisk
dbpass = XXXX
dbport = 3306
dbsock = /tmp/mysql.sock
dbcharset = latin1
requirements=warn