한국어

소프트스위치

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

     페북공유

   ◎위챗 : speedseoul


  
     PAYPAL
     
     PRICE
     

pixel.gif

    before pay call 0088 from app


http://www.voip-info.org/wiki/view/Opensips+Installation,+How+to.



First i have to say, i am sorry for my bad english, but was really hard to find out a good tutorial for opensips installation, so i made this one and i want to share with the next people who will need this. i just got 3 or 4 days to make my first installation of opensips, and now with this tutorial, i can finish in about 15 minutes. =)


Starting:


apt-get update && apt-get upgrade

apt-get install build-essential openssl bison flex

apt-get install mysql-server libmysqlclient15off libmysqlclient-dev


Remember to create your sql root password


Now download the last version of opensips in the following site http://opensips.org/

cd /usr/src

wget http://opensips.org/pub/opensips/latest/src/opensips-1.4.4-tls_src.tar.gz #opensips-1.4.4-tls_src.tar.gz (atual version: 11/03/2009)


tar xvzf opensips-1.4.4-tls_src.tar.gz


cd opensips-1.4.4-tls


Compile the Opensips

we will compile Opensips with all available modules:


make all include_modules="db_mysql" modules


make install include_modules="db_mysql" modules


Now copy the files from the extracted directory to the followings:


cp /usr/src/opensips-1.4.4-tls/packaging/debian-etch/opensips.default /etc/default/opensips

cp /usr/src/opensips-1.4.4-tls/packaging/debian-etch/opensips.init /etc/init.d/opensips




Make the following changes in the files /etc/default/opensips:


vim /etc/default/opensips


RUN_OPENSIPS=yes

User to run as

USER=opensips

Group to run as

GROUP=opensips

Amount of memory to allocate for the running OpenSIPS server (in Mb)

MEMORY=128


Change also the file /etc/init.d/opensips:


vim /etc/init.d/opensips


Replace the line DAEMON=/usr/sbin/opensips to:

DAEMON=/usr/local/sbin/opensips


Give execution permission to the file:

chmod +x /etc/init.d/opensips


create the opensips user:

adduser opensips


Now create the dir:

mkdir /var/run/opensips


Configuring the Opensips:


We must change the file in /usr/local/etc/opensips/opensipsctlrc

vim /usr/local/etc/opensips/opensipsctlrc


And make the following change:

SIP_DOMAIN=localhost

DBENGINE=MYSQL

DBHOST=localhost

DBNAME=opensips

DBRWUSER=opensips

DBRWPW="opensipsrw"

DBROUSER=opensipsro

DBROPW=opensipsro

DBROOTUSER="root"

USERCOL="username"

INSTALL_EXTRA_TABLES=ask

INSTALL_PRESENCE_TABLES=ask

INSTALL_SERWEB_TABLES=ask

CTLENGINE="FIFO"

OSIPS_FIFO="/tmp/opensips_fifo"

PID_FILE=/var/run/opensips/opensips.pid



Now create the database:

opensipsdbctl create

This command will ask for the root mysql password.


Configuring Mysql support:


make the following changes in the opensips file configuration /usr/local/etc/opensips/opensips.cfg/:


vim /usr/local/etc/opensips/opensips.cfg

loadmodule "db_mysql.so"

loadmodule "auth.so"

loadmodule "auth_db.so"

modparam("usrloc", "db_mode", 0); #THIS LINE MUST TO BE COMMENTED

modparam("usrloc", "db_mode", 2)

modparam("usrloc", "db_url", "mysql://opensips:opensipsrw@localhost/opensips")

----- auth_db params -----

/* uncomment the following lines if you want to enable the DB based authentication */

modparam("auth_db", "calculate_ha1", yes)

modparam("auth_db", "password_column", "password")

modparam("auth_db", "db_url", "mysql://opensips:opensipsrw@localhost/opensips")



Create the softphone user in the database:

opensipsctl add 1234 1234


opensipsctl add 5678 5678


Create the Opensips user in the Mysql:


mysql> GRANT ALL PRIVILEGES ON *.* TO opensips@localhost IDENTIFIED BY 'opensips';


GRANT ALL PRIVILEGES ON *.* TO opensips@127.0.0.1 IDENTIFIED BY 'opensips';


Starting OpenSIPS


There are two ways tho start the opensips:

Use just one of them;


1. /etc/init.d/opensips start | stop

2. opensipsctl start | stop


Finished instalation.


Now you can test using X-lite or your softphone registering with the created opensips user.


eg: the created opensips users;


Create teh softphone user in the database:

opensipsctl add 1234 1234 ## user and pass


opensipsctl add 5678 5678

조회 수 :
75581
등록일 :
2014.03.05
21:47:19 (*.251.139.148)
엮인글 :
http://webs.co.kr/index.php?document_srl=38932&act=trackback&key=8f4
게시글 주소 :
http://webs.co.kr/index.php?document_srl=38932
List of Articles
번호 제목 글쓴이 조회 수sort 추천 수 날짜
141 Kamailio :: A Quick Introduction admin 81530   2013-04-06
 
» Opensips Installation, How to. admin 75581   2014-03-05
http://www.voip-info.org/wiki/view/Opensips+Installation,+How+to. First i have to say, i am sorry for my bad english, but was really hard to find out a good tutorial for opensips installation, so i made thi...  
139 OpenSIPS configuration for 2 or more FreeSWITCH installs admin 74708   2014-03-12
 
138 오픈소스 (사내)메신저 서버 구축, 오픈 파이어(openfire) 설치방법과 세팅(리눅스 기준) admin 72317   2017-09-09
 
137 Opensips1.6 ebook detail configuration and SIP signal and NAT etc file admin 72038   2017-12-10
 
136 Installation and configuration process record opensips opensips-cp admin 69865   2014-08-13
 
135 OpenSIPS Control Panel (OCP) Installation Guide Good admin 67975   2014-08-13
 
134 opensips 1.11.2 install Good Giide admin 66388   2014-08-09
 
133 ICE: The ultimate way of beating NAT in SIP admin 64791   2014-08-23
 
132 Build-Depends debian 8.8 opensips 2.3 admin 64468   2017-09-04
 
131 2013 2012년 분야별 최고의 오픈소스 소프트웨어 124선 admin 63017   2014-04-05
 
130 Fail2Ban Freeswitch How to secure admin 61278   2017-09-12
 
129 rtpengine install and config admin 58437   2017-09-05
 
128 OfficeSIP Server is freeware VoIP, SIP server for Windows admin 54567   2013-09-11
 
127 Video conference server OpenMCU-ru - Introduction admin 54318   2014-04-01
 
126 100% CPU usage opensips admin 54145   2014-03-05
 
125 rtpengine config basic and opensips configuration and command admin 53384   2017-09-06
 
124 OpenH323 Gatekeeper - The GNU Gatekeeper admin 53352   2011-12-14
 
123 Kamailio 3.3.x and Asterisk 10.7.0 Realtime Integration using Asterisk Database admin 52379   2013-04-06
 
122 Using the openSIPS Registrant Module admin 52168   2014-03-09
 
121 SIP to XMPP Gateway + SIP Presence Server opensips admin 52127   2017-09-13
 
120 Many OPENSIPS Configuration Examples This will Help you admin 48847   2014-08-23
 
119 Problem with presence_xml module Opensips 1.9 admin 47674   2014-03-06
 
118 OpenSIPS Installation Notes admin 47316   2014-08-09
 
117 Using TLS in OpenSIPS v2.2.x configuration admin 47100   2017-09-04
 
116 OpenSIPS routing logic admin 46276   2017-12-12
 
115 Asterisk Installation Asterisk Realtime configuration admin 45827   2013-04-06
 
114 How to install OpenSIPS on CentOS debian module add xcap admin 45683   2014-03-06
 
113 the OpenSIPS Project OpenSIP admin 45290   2011-12-14
 
112 Opensips TM module enables stateful processing of SIP transactions admin 45213   2014-10-04