Install opensips under Ubuntu

Source: Internet
Author: User
1. Download the opensips1.8 version and extract it to the "/usr/local/src" directory;

2. Install the necessary 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. Installing 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" directory, vi OPENSIPSCTLRC

Remove the previous comment for some lines #

1) Dbengine=mysql

2) Dbhost=localhost

3) Dbname=opensips

4) Dbrwuser=opensips

5) dbrwpw= "OPENSIPSRW"

6) dbrootuser= "root"

8. Go to the "/usr/local/opensips_proxy/sbin/" directory and execute "./opensipsdbctl create" in MySQL, creating a opensips database with the hint of "n" in two places.

9. Apt-get Install M4

10. Go to "/usr/local/opensips_proxy/sbin/" directory and execute "./osipsconfig"

Opensips configuration appears

1) Select "Residential Script", "Configure residential script" to 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.

11. Modify the generated configuration file

1) LISTEN=UDP: and listen=tcp: The IP address of these two lines is changed to native IP address.

2) mpath= address changed to "/usr/local/opensips_proxy/lib/opensips/modules/"

3) "uri.so" after adding 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 Add opensips User

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.