한국어

소프트스위치

온누리070 플레이스토어 다운로드
    acrobits softphone
     온누리 070 카카오 프러스 친구추가온누리 070 카카오 프러스 친구추가친추
     카카오톡 채팅 상담 카카오톡 채팅 상담카톡
    
     라인상담
     라인으로 공유

     페북공유

   ◎위챗 : speedseoul


  
     PAYPAL
     
     PRICE
     

pixel.gif

    before pay call 0088 from app



https://linoxide.com/ubuntu-how-to/install-opensips-server-ubuntu-15-04/



OpenSIPS is an open source SIP Proxy program that runs on Linux platforms and play in the infrastructure of an Internet Telephony Service Provider. There are number of open source applications available that are used to build IP Telephony solutions. OpenSIPS may not be as well-known as Asterisk, but it is widely used by VOIP service providers as a core part of their infrastructure because of its robustness, speed and capacity.

In this article we will take you through the steps needed for downloading OpenSIPS sources and then compiling and installing it on the Ubuntu 15 server. So at the end of this article you'll see a working openSIPS server and able to see that how it will generate a working configuration file based on your desired functionalities.

Prerequisites:

OpenSIPS server installation requires some basic modules to be installed on the Ubuntu server that can be installed using the simple 'apt-get' command. Once your back end server is ready to deploy the OpenSIPS then login using the sudo or root user to perform the following tasks.

1) System Update

Once you are connected to your CentOS 7 server, run the following command as a root user to update your system with latest updates and security patches.

# apt-get update

system update

2) Installing Dependencies:

After system update you need to install the missing packages using the 'apt-get' command if these are not already installed.

# apt-get install build-essential openssl bison flex

To continue the installation you will be asked to type 'y' key. This will install all required missing packages including their dependencies as shown .

OpenSips Dependencies

Still few more dependencies left that need to be installed, to do so run the following command.

# apt-get install perl libdbi-perl libdbd-mysql-perl libdbd-pg-perl libfrontier-rpc-perl libterm-readline-gnu-perl libberkeleydb-perl ncurses-dev

Opesips dependencies

3) Installing MySQL Server:

In order setup database for the OpenSIPS server we need a Database server. So, we are going to use MySQL-Server by using the community repository. Let's run the following commands to install MySQL server and it development libraries.

# apt-get install mysql-server libmysqlclient-dev

Installing Mysql

Now you will be able to install the MySQL local server and MySQL headers by press the 'y' key. During its setup you will be asked to configure the root password for MySQL server, so type your secure password and press 'OK' to proceed.

set mysql password

4) Download OpenSIPS Package:

Open the Official OpenSIPS Source Page to download the package.

OpenSIPS Source

We are going to download the package into the following directory using 'wget' command and the extract within th esame directory.

# cd /usr/src

# wget http://opensips.org/pub/opensips/latest/opensips-2.1.2.tar.gz

# tar -zxvf opensips-2.1.2.tar.gz

download opensips

5) Compiling OpenSIPS Source:

Moving step ahead let's move into the opensips directory and run the command below to start the compilation process.

# cd opensips-2.1.2/
# make all

Compiling Opensips

6) Installing OpenSIPS Source:

Once the compilation process completes, you can start making its installation as shown below.

# make install

make install

7) OpenSIPS Configuration:

The OpenSIPS has been installed, now we are going to configure some of its basic parameters and startup script. Let's first create a new directory for the OpenSIPS run files.

# mkdir /var/run/opensips

Now move to the following 'debians' directory and list the files in it.

# cd packaging/debian/

Debian Files

Here you see the opensips default and init files that we will copying to the '/etc/default/' directory using the following commands.

# cp opensips.default /etc/default/opensips
# cp opensips.init /etc/init.d/opensips

Then run the following commands to give executable permissions to the opensips startup script, create and new user and then update its default boot configurations as shown below.

# chmod +x /etc/init.d/opensips
# useradd opensips
# update-rc.d opensips defaults 99

Opensips settings

Open the default file of Opensips using any of your editor to configure its startup options.

# vim /etc/default/opensips

Here you need to replace the 'RUN_OpenSIPS' to 'Yes'. You can also change the user and group and name that you wish to use for the Opensips services and also change the shared memory to minimum 128 which is recommended for the OpenSIPS server.

Opensips Statup

we also need to update the daemon on OpenSIP and change it location in its startup script and update its state from 'off' to 'on' and then close the file after making changes as shown in the below image.

# vim /etc/init.d/opensips

opensips daemon

Starting OpenSIPS Service:

All necessary configurations has been setup to proceed on starting OpenSIPS service. Simply run the following command to start OpenSIPS and the check its status, that should be active and running as shown in the image.

# /etc/init.d/opensips start

# systemctl status opensips

start opensips

You can also check the state of OpenSIPS services and the port on which its running that is '5060' by using the below commands.

# ps -ef | grep opensips
# netstat -alnp | grep opensips

opensips processes

Conclusion

OpenSIPS server has been installed successfully on Ubuntu 15.04 including of its required dependencies. But there are alot of things to work on and explore. In the next article we show you its web control panel installation. We have you enjoyed following this article and did not face any issue. Feel free to comment us back in case of any difficulty and leave you valuable suggestions.

조회 수 :
25978
등록일 :
2017.09.01
18:59:53 (*.160.88.18)
엮인글 :
http://webs.co.kr/index.php?document_srl=3311715&act=trackback&key=17a
게시글 주소 :
http://webs.co.kr/index.php?document_srl=3311715
List of Articles
번호 제목 글쓴이 조회 수 추천 수 날짜sort
78 Opensips TM module enables stateful processing of SIP transactions admin 44758   2014-10-04
 
77 Script Function , Module Index v1.11 함수 모듈 opensips admin 35092   2014-10-14
 
76 A Survey of Open Source Products for Building a SIP Communication Platform admin 39407   2014-10-18
 
75 Jitsi Videobridge meets WebRTC admin 44470   2014-10-18
 
74 A2Billing and OpenSIPS config admin 37513   2014-10-20
 
73 opensips.cfg for Asterisk admin 36683   2014-10-20
 
72 SIP Signaling-Messages OpenSIPS Running On Multicore Server file admin 41356   2014-11-02
 
71 Service Provision Using Asterisk & OpenSIPS - AstriCon 2014 admin 32743   2015-02-25
 
70 OpenSIPS 2.1 (rc) is available, download now! admin 23873   2015-03-22
 
69 WebSocket Support in OpenSIPS 2.1 admin 30829   2015-04-04
 
68 WebRTC with OpenSIPS WebSocket is a protocol provides full-duplex admin 32119   2015-04-04
 
67 Opensips sip capture re designed admin 20503   2017-07-16
 
66 OpenSIPS Control Panel and Homer integration admin 42158   2017-08-17
 
65 The timeline for OpenSIPS 2.3 is admin 21164   2017-08-17
 
64 OpenSIPS 2.3 philosophy admin 20856   2017-08-17
 
63 A2Billing and OpenSIPS – Part 3 admin 20578   2017-08-29
 
62 A2Billing and OpenSIPS – Part 2 admin 33295   2017-08-29
 
61 A2Billing and OpenSIPS – Part 1 admin 31231   2017-08-29
 
60 WebSocket Transport using OpenSIPS admin 23625   2017-09-01
 
59 JsSIP: The JavaScript SIP Library admin 19990   2017-09-01
 
58 OpenSIPS 2.3 install admin 23810   2017-09-01
 
57 Opensips 2.32 download admin 17734   2017-09-01
 
» How to Install OpenSIPS 2.1.2 Server on Ubuntu 15.04 admin 25978   2017-09-01
https://linoxide.com/ubuntu-how-to/install-opensips-server-ubuntu-15-04/ OpenSIPS is an open source SIP Proxy program that runs on Linux platforms and play in the infrastructure of an Internet Telephony S...  
55 You can install CDRTool in the following ways: admin 19862   2017-09-01
 
54 How to 2.3 download , OpenSIPS new apt repository. DEBs for Debian / Ubuntu admin 18335   2017-09-02
 
53 Using TLS in OpenSIPS v2.2.x configuration admin 46595   2017-09-04
 
52 How to install Mediaproxy 2.5.2 on CentOS 6 64 bit admin 142421   2017-09-04
 
51 ubuntu 安装配置opensips,rtpproxy,mediaproxy admin 23280   2017-09-04
 
50 What is new in 2.3.0 opensips admin 243513   2017-09-04
 
49 Build-Depends debian 8.8 opensips 2.3 admin 63859   2017-09-04