한국어

소프트스위치

온누리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.



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
  1. User to run as
USER=opensips
  1. Group to run as
GROUP=opensips
  1. 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"
  1. 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")
  1. ----- 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
Created by: lucasalesampaio, Last modification: Thu 12 of Mar, 2009 (12:00 UTC)


조회 수 :
37063
등록일 :
2014.08.10
07:29:15 (*.160.88.200)
엮인글 :
http://webs.co.kr/index.php?document_srl=191036&act=trackback&key=fed
게시글 주소 :
http://webs.co.kr/index.php?document_srl=191036
List of Articles
번호 제목 글쓴이 조회 수 추천 수 날짜
22 Open Source VOIP applications, both clients and servers. admin 45054   2013-11-20
 
21 OfficeSIP Server is freeware VoIP, SIP server for Windows admin 55585   2013-09-11
 
20 My new toy: Bluebox-ng admin 92664   2013-04-06
 
19 Flooding Asterisk, Freeswitch and Kamailio with Metasploit admin 101837   2013-04-06
 
18 Asterisk Installation Asterisk Realtime configuration admin 46793   2013-04-06
 
17 The SIP Router Project admin 46058   2013-04-06
 
16 Kamailio :: A Quick Introduction admin 82702   2013-04-06
 
15 Welcome to the Smartvox Knowledgebase admin 105970   2013-04-06
 
14 Kamailio 3.3.x and Asterisk 10.7.0 Realtime Integration using Asterisk Database admin 53372   2013-04-06
 
13 OpenSIPS vs Asterisk admin 223625   2013-04-06
 
12 OpenSER_from_an_asterisk_POV file admin 39773   2013-04-06
 
11 Using SIP Devices behind NAT OPensip Asterisk IPPhone SIP Telephony file admin 229074   2013-03-31
 
10 rfc5766-turn-server admin 42239   2013-03-21
 
9 OpenSIPS Kick Start‎: VIDEO admin 39696   2013-02-20
 
8 OPENSIP Training VIDEO admin 37983   2013-02-20
 
7 What is new in 1.8.0 opensip admin 255683   2012-05-21
 
6 Asterisk v1.4x built on FreeBSD v7.1 UNIX admin 152372   2012-01-06
 
5 SIP 트래픽 생성 테스트 툴 admin 138607   2011-12-23
 
4 사설 망 환경에서 SIP 의 NAT Traversal 문제 admin 146983   2011-12-23
 
3 the OpenSIPS Project OpenSIP admin 46527   2011-12-14
 
2 OpenH323 Gatekeeper - The GNU Gatekeeper admin 54511   2011-12-14
 
1 The FreeRADIUS Project admin 44987   2011-12-14