Forked from Troublesome12/Asterisk odbc Connection Setup
Created
May 13, 2018 12:25
-
-
Save tanvir86/5e597e0fce8cf09f673cd6b471b5a2ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
========================================== | |
β For cdr table β | |
========================================== | |
------------------------------------------ | |
π /etc/odbc.ini | |
------------------------------------------ | |
[odbcAsterisk] | |
Driver = MySQL ODBC 5.3 Unicode Driver | |
Description = MySQL connection to βasteriskβ database | |
Server = localhost | |
Port = 3306 | |
Database = asterisk | |
UserName = root | |
Password = Root@pr1sonl1nk | |
Socket = /var/lib/mysql/mysql.sock | |
------------------------------------------ | |
π /etc/asterisk/cdr_odbc.conf | |
------------------------------------------ | |
[global] | |
dsn=odbcAsterisk | |
loguniqueid=yes | |
table=cdr | |
dispositionstring=yes | |
usegmtime=no | |
hrtime=yes | |
------------------------------------------ | |
π /etc/asterisk/res_odbc.conf | |
------------------------------------------ | |
[odbcasterisk] | |
enabled => yes | |
dsn => odbcAsterisk | |
username => root | |
password => Root@pr1sonl1nk | |
pre-connect => yes | |
limit=1 | |
share_connections=yes | |
sanitysql=select 1 | |
isolation=repeatable_read | |
------------------------------------------ | |
π /etc/asterisk/cdr_manager.conf | |
------------------------------------------ | |
[general] | |
enabled = yes | |
------------------------------------------ | |
π /etc/asterisk/cdr_adaptive_odbc.conf | |
------------------------------------------ | |
[adaptive_connection] | |
connection=odbcasterisk | |
table=cdr | |
alias start => calldate | |
alias channel => source_channel | |
========================================== | |
β For cel table β | |
========================================== | |
------------------------------------------ | |
π /etc/asterisk/cel.conf | |
------------------------------------------ | |
#uncomment these lines | |
enable=yes | |
dateformat = %F %T | |
------------------------------------------ | |
π /etc/asterisk/cel_odbc.conf | |
------------------------------------------ | |
[cel] | |
connection=odbcasterisk | |
table=cel | |
username= root | |
password= Root@pr1sonl1nk | |
loguniqueid=yes | |
========================================== | |
β For realtime sip peers β | |
========================================== | |
------------------------------------------ | |
π /etc/asterisk/extconfig.conf | |
------------------------------------------ | |
#uncomment these lines | |
sippeers => odbc,odbcasterisk | |
------------------------------------------ | |
π /etc/asterisk/sip.conf | |
------------------------------------------ | |
#uncomment these lines | |
rtcachefriends=yes | |
rtupdate=yes | |
rtautoclear=yes | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment