한국어

소프트스위치

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


조회 수 :
37076
등록일 :
2014.08.10
07:29:15 (*.160.88.200)
엮인글 :
http://webs.co.kr/index.php?document_srl=191036&act=trackback&key=feb
게시글 주소 :
http://webs.co.kr/index.php?document_srl=191036
List of Articles
번호 제목 글쓴이 조회 수 추천 수 날짜sort
172 opensips Rtpengine installation configuration admin 12   2024-05-22
 
171 Asterisk 에서 FreeSWITCH 전환 admin 2050   2024-04-09
 
170 OpenSIPS 이해 서비스 지원 admin 2046   2024-04-09
 
169 OpenSIPS install configuration support admin 2106   2024-04-09
 
168 opensips basic route script configuration admin 8775   2023-08-13
 
167 opensips-cli command admin 9091   2023-08-07
 
166 string trans opensips admin 7240   2023-08-05
 
165 opensips Push Notification configuration admin 7326   2023-07-29
 
164 opensips Call pickup configuration admin 7224   2023-07-27
 
163 t_relay opensips admin 7144   2023-07-25
 
162 debian 11 opensips 3.2 install command admin 11499   2023-06-25
 
161 Opensips Gateway between SIP and SMPP messages admin 268782   2019-02-19
 
160 smpp sms opensips admin 13515   2019-02-19
 
159 Busy Lamp Field (BLF) feature on Opensips 2.4.0 with Zoiper configuration admin 23042   2018-05-29
 
158 Documentation -> Tutorials -> WebSocket Transport using OpenSIPS admin 19662   2018-05-17
 
157 List of SIP response codes admin 43410   2017-12-20
 
156 opensips/modules/event_routing/ Push Notification Call pickup admin 16294   2017-12-20
 
155 opensips push notification How to detail file admin 26659   2017-12-20
 
154 OpenSIPS routing logic admin 48213   2017-12-12
 
153 OpenSIPS example configuration admin 20309   2017-12-12
 
152 opensips complete configuration example admin 43639   2017-12-10
 
151 Opensips1.6 ebook detail configuration and SIP signal and NAT etc file admin 73953   2017-12-10
 
150 dictionary.opensips radius admin 97393   2017-12-09
 
149 what is record_route() in opensips ? admin 26202   2017-12-09
 
148 what is loose_route() in opensips ? file admin 25479   2017-12-09
 
147 in opensips what is lookup(domain [, flags [, aor]]) admin 93319   2017-12-09
 
146 in opensips db_does_uri_exist() what is admin 20091   2017-12-09
 
145 in opensips what is has_totag() admin 23847   2017-12-09
 
144 opensips exec module admin 20499   2017-12-08
 
143 opensips push notification How to admin 23292   2017-12-07