한국어

소프트스위치

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


조회 수 :
38450
등록일 :
2014.08.10
07:29:15 (*.160.88.200)
엮인글 :
http://webs.co.kr/index.php?document_srl=191036&act=trackback&key=f6e
게시글 주소 :
http://webs.co.kr/index.php?document_srl=191036
List of Articles
번호 제목 글쓴이 조회 수 추천 수 날짜sort
82 OpenSIPS Consultancy Pricing module install Server 판매 또는 설치및 컨설팅 가이드 admin 43493   2014-08-23
 
81 ICE: The ultimate way of beating NAT in SIP admin 68329   2014-08-23
 
80 Many OPENSIPS Configuration Examples This will Help you admin 51660   2014-08-23
 
79 Real-time Charging System for Telecom & ISP environments admin 42288   2014-08-23
 
78 OPENSIPS EBOOK admin 40494   2014-08-21
 
77 Opensips Documentation Function admin 43298   2014-08-21
 
76 Presence Tutorial OpenXCAP setup admin 42875   2014-08-18
 
75 Opensips Modules Documentation admin 44330   2014-08-18
 
74 A lightweight RPC library based on XML and HTTP admin 42373   2014-08-18
 
73 opensips Nat script with RTPPROXY - English Good perfect admin 39393   2014-08-15
 
72 OpenSIPS Control Panel (OCP) Installation Guide Good admin 70952   2014-08-13
 
71 Installation and configuration process record opensips opensips-cp admin 72551   2014-08-13
 
70 OpenSIPS as Homer Capture server admin 38977   2014-08-13
 
69 OpenSIPS , default script , Types of Routs , Routing in SIP, Video lecture admin 42726   2014-08-13
 
68 Configuracion de Kamailio 3.3 con NAT Traversal y XCAP. admin 38731   2014-08-12
 
67 Under RHEL6.5 install OpenSIPS 1.11.1 tls admin 40504   2014-08-12
 
66 OpenSIPS/OpenSER-a versatile SIP Server cfg admin 39677   2014-08-11
 
65 Kamailio Nat Traversal using RTPProxy admin 38747   2014-08-11
 
64 MediaProxy wiki page install configuration admin 44905   2014-08-11
 
63 오픈소스 (사내)메신저 서버 구축, 오픈 파이어(openfire) 설치방법과 세팅 admin 107862   2014-08-11
 
62 MediaProxy Installation Guide admin 41192   2014-08-10
 
61 RTPProxy 1.2.x Installation & Integration with OpenSIPS 1.5x admin 43026   2014-08-10
 
» Opensips Installation, How to. Good guide wiki page admin 38450   2014-08-10
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 open...  
59 OpenSIPS Installation Notes admin 49633   2014-08-09
 
58 Installation and configuration process record opensips 1.9.1 admin 100687   2014-08-09
 
57 opensips 1.11.2 install Good Giide admin 69308   2014-08-09
 
56 fusionPBX install debian wheezy admin 40212   2014-08-09
 
55 opensips 1.11.2 install guide good 인스톨 가이드 admin 46431   2014-08-09
 
54 SigIMS IMS Platform admin 42821   2014-05-24
 
53 2013 2012년 분야별 최고의 오픈소스 소프트웨어 124선 admin 68396   2014-04-05