한국어

소프트스위치

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

조회 수 :
76581
등록일 :
2014.03.05
21:47:19 (*.251.139.148)
엮인글 :
http://webs.co.kr/index.php?document_srl=38932&act=trackback&key=ead
게시글 주소 :
http://webs.co.kr/index.php?document_srl=38932
List of Articles
번호 제목 글쓴이 날짜sort 조회 수
112 Opensips 2.32 download admin 2017-09-01 19448
111 OpenSIPS 2.3 install admin 2017-09-01 25135
110 JsSIP: The JavaScript SIP Library admin 2017-09-01 21507
109 WebSocket Transport using OpenSIPS admin 2017-09-01 24975
108 A2Billing and OpenSIPS – Part 1 admin 2017-08-29 32533
107 A2Billing and OpenSIPS – Part 2 admin 2017-08-29 34573
106 A2Billing and OpenSIPS – Part 3 admin 2017-08-29 21948
105 OpenSIPS 2.3 philosophy admin 2017-08-17 22201
104 The timeline for OpenSIPS 2.3 is admin 2017-08-17 23154
103 OpenSIPS Control Panel and Homer integration admin 2017-08-17 43601
102 Opensips sip capture re designed admin 2017-07-16 21817
101 WebRTC with OpenSIPS WebSocket is a protocol provides full-duplex admin 2015-04-04 33477
100 WebSocket Support in OpenSIPS 2.1 admin 2015-04-04 32097
99 OpenSIPS 2.1 (rc) is available, download now! admin 2015-03-22 25226
98 Service Provision Using Asterisk & OpenSIPS - AstriCon 2014 admin 2015-02-25 33981
97 SIP Signaling-Messages OpenSIPS Running On Multicore Server file admin 2014-11-02 42577
96 opensips.cfg for Asterisk admin 2014-10-20 37899
95 A2Billing and OpenSIPS config admin 2014-10-20 38705
94 Jitsi Videobridge meets WebRTC admin 2014-10-18 45695
93 A Survey of Open Source Products for Building a SIP Communication Platform admin 2014-10-18 40569
92 Script Function , Module Index v1.11 함수 모듈 opensips admin 2014-10-14 36339
91 Opensips TM module enables stateful processing of SIP transactions admin 2014-10-04 46044
90 kamailio.cfg configuration Example admin 2014-10-04 37505
89 opensips NAT Traversal Module admin 2014-10-02 37660
88 UAC Registrant Module admin 2014-09-28 39918
87 MediaProxy 2.3.x & OpenSIPS 1.5.x Integration admin 2014-08-24 40535
86 RTPPROXY Admin Guide admin 2014-08-24 41859
85 CANCEL MESSAGE not handled correctly admin 2014-08-23 39622
84 [Sipdroid] SIP data collection study tour admin 2014-08-23 39921
83 [OpenSIPS-Users] Opensips 1.10 NAT radius aaa admin 2014-08-23 37156