With its scalable, modular system architecture, OPENSIPS provides a highly flexible, user-configurable routing engine that provides powerful and efficient routing, authentication, NAT, and Gateway protocol conversion for voice, video, IM, and presence services. Because of its stability and efficiency, opensips has been used by many telecom operators in its own network system. Its main functions are as follows:
SIP registered Server/proxy server (LCR, dynamic routing, dialplan)/redirect Server
SIP Presence Agent
SIP B2bua
SIP IM Server
SIP to SMS/XMPP Gateway
SIP to XMPP Gateway
SIP Load Balancing
SIP NAT Traversal
Install Opensips in Ubuntu
1. Download the opensips1.8 version, and extract to the "/usr/local/src" directory;
2. Install the necessary software packages, Apt-get install Flex Bison Libncurses-dev
3. Enter Opensips source directory, make Menuconfig
After the Opensips configuration interface appears
1 Select "Configure Compile Options"-> "Configure excluded Modules", select "Db_mysql"
2 Select "Configure Compile Options"-> "Configure Install Prefix", enter "/usr/local/opensips_proxy"
5. Installation of Mysql,apt-get install Libmysqlclient-dev
6. Enter Opensips source directory, make Menuconfig
After the Opensips configuration interface appears
Select "Compile and Install opensips" to start compiling and installing opensips
7. Enter the "/usr/local/opensips_proxy/etc/opensips" catalogue, VI OPENSIPSCTLRC
Remove some of the previous comments from the line
1) Dbengine=mysql
2) Dbhost=localhost
3) Dbname=opensips
4) Dbrwuser=opensips
5) dbrwpw= "OPENSIPSRW"
6) dbrootuser= "root"
8. Enter the "/usr/local/opensips_proxy/sbin/" directory, the implementation of "/opensipsdbctl create" in MySQL to create a opensips database, the hint of two places are selected "N".
9. Apt-get Install M4
10. Enter the "/usr/local/opensips_proxy/sbin/" directory and execute "./osipsconfig"
Opensips configuration appears
1 Select "Residential Script"-> "Configure residential script", open
Enable_tcp
Use_auth
Use_dbacc
Use_dbusrloc
Use_dialog
2 Select "Residential Script"-> "Generate residential script" to generate opensips configuration script
The configuration script is generated into the "/usr/local/opensips_proxy/etc/opensips" directory to opensips_residential+ the creation time +.cfg. Replace the original opensips.cfg
11. Modify the generated configuration file
1) LISTEN=UDP: and listen=tcp: The IP address of these two lines is changed to the IP address of this computer.
2) mpath= address changed to "/usr/local/opensips_proxy/lib/opensips/modules/"
3) after "uri.so" Add Modparam ("uri", "Db_url", "Mysql://opensips:opensipsrw@localhost/opensips")
12. Enter/usr/local/opensips_proxy/sbin/"Directory execution
1)./opensipsctl Start Opensips Server
2)./OPENSIPSCTL Add 101 101 opensips Users