Installation:
1, install UnixODBC unixodbc-devel Libtool-ltdl Libtool-ltdl-devel, in order to enable asterisk support database storage (must be installed first)
2. Install MySQL and set up C_include_path and Ld_library_path
3, download the new version of Asterisk (asterisk-11-current.tar.gz) from Http://www.asterisk.org/downloads
4. Copy and unzip.
5, enter the extracted directory asterisk-11.2.1, execute./configure
6. Perform make MenuSelect Select the component to follow
7. Execute make
8. Execute make Install
9. Execute Make Samples
10. Install MySQL
11, Installation mysql-connector-odbc-5.1.12-1.rhel5.x86_64.rpm
Configure ODBC
1,/etc/odbcinst.ini
[MySQL]
Description = ODBC for MySQL
Driver =/usr/lib64/libmyodbc5.so
Setup =/usr/lib64/libodbcmys.so
FileUsage = 1
2,/etc/odbc.ini
[Asterisk]
Description = MySQL connection to ' asterisk ' database
Driver = MySQL
Database = asterisk
Server = localhost
UserName = asterisk
Password = asterisk
Port = 3306
Socket =/tmp/mysql.sock
Configuration asterisk:
1, modules.conf
[Modules]
preload = res_odbc.so
preload = res_config_odbc.so
2, extconfig.conf
Sipusers = Odbc,asterisk,sippeers
Sippeers = Odbc,asterisk,sippeers
3, res_odbc.conf
[Asterisk]
Enabled = Yes
DSN = asterisk
Username = asterisk
Password = asterisk
Pre-Connect = yes
Limit = 5
4, http.conf
[General]
Enabled=yes
bindaddr=0.0.0.0
bindport=8088
Prefix=asterisk
Enablestatic=yes
5, manager.conf
[General]
Enabled = Yes
webenabled = yes
Port = 5038
BINDADDR = 0.0.0.0
[Admin]
Secret = admin
Read = System,call,log,verbose,command,agent,config,read,write,originate
Write = System,call,log,verbose,command,agent,config,read,write,originate
[Manager]
Secret=manager
permit=0.0.0.0/0.0.0.0
Read=all
Write=all
6, extensions.conf
[From-sip]
Exten = _xxx,1,dial (sip/${exten},60)
7, sip.conf (Support video)
Videosupport=yes
allow=h263
allow=h263p
allow=h264
Configuration database:
1. Build the asterisk library and build the table with the SQL script provided in the asterisk installation package
/asterisk-11.2.1/contrib/realtime/mysql
2, establish user asterisk, and grant the operation permission of Asterisk library
3. Set up user data in the Sippeers table
ID name regseconds DefaultUser host type context secret
1 101 0 101 dynamic friend From-sip 101
2 102 0 102 dynamic friend From-sip 102
After configuring the above information, start by ASTERISK-VVVC mode
You can talk to each other using the Eyebeam client.
Web mode management asterisk:
Asterisk can be managed through Http://10.10.18.108:8088/asterisk/manager
ODBC status can be viewed through CLI commands term Code vm-108*cli> ODBC show ODBC DSN Settings-----------------Name:asterisk Dsn:asterisk last connection attempt:1970-01-01 08:00:00 Pooled:no connected:yes
HTTP service status can be viewed through CLI commands term code vm-108*cli> http show status http server status: prefix: /asterisk server enabled and bound to 0.0.0.0:8088 Enabled uri ' s: /asterisk/httpstatus => asterisk http general status /asterisk/phoneprov/... => asterisk http phone provisioning tool /asterisk/amanager => html manager Event Interface w/Digest authentication /asterisk/arawman => raw HTTP Manager Event Interface w/Digest authentication /asterisk/ manager => html manager event interface /asterisk/rawman => Raw HTTP Manager Event Interface /asterisk/static/... => Asterisk http&nbsP static delivery /asterisk/amxml => xml manager event interface w/Digest authentication /asterisk/mxml => xml manager event interface /asterisk/ws => asterisk http websocket enabled redirects: None.
The whole configuration process is complicated, and the main reference is Asterisk.The.Definitive.Guide
Http://vdisk.weibo.com/s/rQ6BY