Asterisk
Start and connect to asterisk CLI
asterisk -c
Connect to asterisk CLI in background
asterisk -r
Run asterisk command in linux shell
asterisk -x "command"
Verbose
asterisk -rvvvvv
Create the core dump
asterisk -rg
Show the timestamp
asterisk -rT
Restart/Stop
Now
core restart now
Prevents new calls
core restart gracefull
Does not prevent new calls
core restart when convinien
Aborts a shutdown or restart
core abort shutdown
Reload module
module_name reload
module reload module_name
Restart module
module restart module_name
Reload file
config reload file_name
Reload all
core reload
odbc.ini
[asteriskcdrdb]
Description=
Driver=MySQL
Server=
Database=
User=
Password=
Port=3306
Socket=/var/lib/mysql/mysql.sock
Option=3
Charset=utf8
cdr_mysql.conf
[global]
hostname=
dbname=
table=cdr
password=
user=
port=3306
cdr.conf
[general]
enable=yes
unanswered=yes
congestion=yes
safeshutdown=yes
res_odbc.conf
[asteriskcdrdb]
enabled=>yes
dsn=>MySQL-asteriskcdrdb
pre-connect=>yes
max_connections=>5
username=>
password=>
database=>asteriskcdrdb
cdr_adaptive_odbc.conf
[asteriskcdrdb]
connection=asteriskcdrdb
table=cdr
alias realdst=>realdst
alias remoteip=>remoteip
alias start=>calldate
alias filename=>filename