한국어

소프트스위치

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

조회 수 :
75594
등록일 :
2014.03.05
21:47:19 (*.251.139.148)
엮인글 :
http://webs.co.kr/index.php?document_srl=38932&act=trackback&key=95f
게시글 주소 :
http://webs.co.kr/index.php?document_srl=38932
List of Articles
번호 제목 글쓴이 날짜sort 조회 수
51 2017 08 31 opensips 2.32 install debian8.8 module install compile err modules admin 2017-09-04 42209
50 opensips command /sbin/opensipsctl detail admin 2017-09-04 124863
49 compile only the textops module make modules=modules/textops modules admin 2017-09-05 19150
48 Installing RTPEngine on Ubuntu 14.04 admin 2017-09-05 32226
47 rtpengine install and config admin 2017-09-05 58468
46 OpenSIPS basic configuration script 기본 컨피그 admin 2017-09-05 105167
45 WebSocket Transport using OpenSIPS configuration 웹 소켓 컨피그레이션 기본 admin 2017-09-06 21006
44 rtpengine config basic and opensips configuration and command admin 2017-09-06 53400
43 오픈소스 (사내)메신저 서버 구축, 오픈 파이어(openfire) 설치방법과 세팅(리눅스 기준) admin 2017-09-09 72349
42 PUSH SERVER 푸시서버 안드로이드 애플 admin 2017-09-11 208300
41 Advanced SIP scenarios with Event-based-Routing admin 2017-09-11 33196
40 opensips.cfg. sample admin 2017-09-12 24157
39 Fail2Ban Freeswitch How to secure admin 2017-09-12 61295
38 OpenSIPS command line tricks admin 2017-09-13 45033
37 SIP to XMPP Gateway + SIP Presence Server opensips admin 2017-09-13 52149
36 How to setup a Jabber / XMPP server on Debian 8 (jessie) using ejabberd admin 2017-09-13 124017
35 opensips tls cfg admin 2017-09-14 29856
34 Using TLS in OpenSIPS v2.2.x admin 2017-09-14 44822
33 Documentation -> Tutorials -> TLS opensips.cfg admin 2017-09-14 24715
32 openssl 을 이용한 인증서 생성 절차를 정리한다. 개인키 CSR SSL 인증서 파일 생성 admin 2017-09-14 23719
31 opensips configuration config explain easy basic 오픈쉽스 컨피그레이션 기본 설명 file admin 2017-12-07 21904
30 OpenSIPS Module Interface admin 2017-12-07 42204
29 opensips push notification How to admin 2017-12-07 21459
28 opensips exec module admin 2017-12-08 18648
27 in opensips what is has_totag() admin 2017-12-09 21976
26 in opensips db_does_uri_exist() what is admin 2017-12-09 18236
25 in opensips what is lookup(domain [, flags [, aor]]) admin 2017-12-09 91163
24 what is loose_route() in opensips ? file admin 2017-12-09 23689
23 what is record_route() in opensips ? admin 2017-12-09 24326
22 dictionary.opensips radius admin 2017-12-09 95074