한국어

소프트스위치

온누리070 플레이스토어 다운로드
    acrobits softphone
     온누리 070 카카오 프러스 친구추가온누리 070 카카오 프러스 친구추가친추
     카카오톡 채팅 상담 카카오톡 채팅 상담카톡
    
     라인상담
     라인으로 공유

     페북공유

   ◎위챗 : speedseoul


  
     PAYPAL
     
     PRICE
     

pixel.gif

    before pay call 0088 from app


OpenSIPs installation on Debian


http://nil.uniza.sk/sip/opensips/opensips-installation-debian

http://nil.uniza.sk/taxonomy/term/16%20112%20116%2093%20105%2097%2072%2039%20108%20106%2040%2095%2069%2070%2090%2041%2056%2091%20117%2071


Installation of openSIPs on Debian(sqeeze) - 32bit:

Edit sources.list to use new repository: 

    joe /etc/apt/sources.list
    deb http://www.opensips.org/apt/ lenny main

#Following 2 lines are not needed in lenny:
    deb http://ftp.sk.debian.org/debian/ lenny main  
    deb-src http://ftp.sk.debian.org/debian/ lenny main

Update:   

    apt-get update
    apt-get upgrade

Download:

    apt-get install gcc bison flex make openssl libmysqlclient-dev 
        libradiusclient-ng2 libradiusclient-ng-dev mysql-server libxmlrpc-c3-dev

Install openSIPs and modules:

    apt-get install opensips opensips-mysql-module opensips-postgres-module opensips-unixodbc-module 
                    opensips-jabber-module opensips-cpl-module opensips-radius-modules opensips-presence-modules 
                    opensips-xmlrpc-module opensips-perl-modules opensips-snmpstats-module opensips-xmpp-module 
                    opensips-carrierroute-module opensips-berkeley-module opensips-ldap-modules opensips-geoip-module 
                    opensips-regex-module opensips-identity-module opensips-b2bua-module opensips-dbhttp-module opensips-console

 

Now do changes in following files:

     joe /etc/opensips/opensips.cfg
        alias=a.local  #{"your domain"}

     joe /etc/opensips/opensipsctlrc
        #uncomment and set domain
        SIP_DOMAIN=a.local 

Run OpenSIPs:

     joe /etc/default/opensips
        RUN_OPENSIPS=yes

 

Now you can make call with any user because the authentication is not working yet.
 

Let's set up authentication with mysql:

Uncomment following lines:

   joe /etc/opensips/opensipsctlrc
      SIP_DOMAIN=a.local #your domain
        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
       CTLENGINE="FIFO"
        OSIPS_FIFO="/tmp/opensips_fifo"
        PID_FILE=/var/run/opensips/opensips.pid 

Create databese:         

    opensipsdbctl create

Now you need to set openSIPs server to use mysql database to authenticate users:
In file:    

    joe /etc/opensips/opensips.cfg

change (COMMENT/UNCOMMENT) this lines:       

        loadmodule "db_mysql.so"
        loadmodule "auth.so"
        loadmodule "auth_db.so"
        !!! COMMENT #modparam("usrloc", "db_mode",   0)
        modparam("usrloc", "db_mode",   2)
        modparam("usrloc", "db_url","mysql://opensips:opensipsrw@localhost/opensips")
        modparam("auth_db", "calculate_ha1", yes)
        modparam("auth_db", "password_column", "password")
        modparam("auth_db", "db_url","mysql://opensips:opensipsrw@localhost/opensips")

and the same file down in routing logic UNCOMMENT:       

    if (is_method("REGISTER"))
            {
                    # authenticate the REGISTER requests (uncomment to enable auth)
                    if (!www_authorize("IP_ADDRESS", "subscriber"))
                    {
                            www_challenge("IP_ADDRESS", "0");
                            exit;
                    }

where IP_ADDRESS part is the IP adrress of your openSIPs server.

 

To make call two users are needed. You will add them with command:   

    opensipsctl add "login" "password"
    #Example: opensipsctl add miso miso

Now restart openSIPs server:        

    opensipsctl restart

The authentication is now enabled.

The next service we can install on OpenSIPs server is PRESENCE. There are two options how to configure presence: with or without XCAP server.

Presence without XCAP server:

 

Uncomment following lines in config file /etc/opensips/opensips.cfg

    loadmodule "presence.so"
    loadmodule "presence_xml.so"

    modparam("presence|presence_xml", "db_url","mysql://opensips:opensipsrw@localhost/opensips")
    modparam("presence_xml", "force_active", 1)

 And again it's necessary to set the address and port your OpenSIPs server is listening on (example: 158.193.139.80) in /etc/opensips/opensips.cfg

    modparam("presence", "server_address", "sip:158.193.139.80:5060")

Finally some changes are needed in routing logic in /etc/opensips/opensips.cfg

Uncomment:

    if( is_method("PUBLISH|SUBSCRIBE"))
         route(2);

Comment:

    #if (is_method("PUBLISH"))
    #{
    #       sl_send_reply("503", "Service Unavailable");
    #       exit;
    #}

and uncomment route(2):

    route[2] 
    { 
        if (!t_newtran()) { 
              sl_reply_error(); 
              exit; 
        };
        if(is_method("PUBLISH"))
        {
                handle_publish();
        }
        else
        if( is_method("SUBSCRIBE"))
        {
                handle_subscribe();
        }

        exit;
    }

The presence service is now working. The client should be set to presence-agent mode.

 

NOW: TESTING PRESENCE WITH XCAP SERVER

Groups:
조회 수 :
80997
등록일 :
2014.03.09
13:33:40 (*.251.139.148)
엮인글 :
http://webs.co.kr/index.php?document_srl=38994&act=trackback&key=4e8
게시글 주소 :
http://webs.co.kr/index.php?document_srl=38994
List of Articles
번호 제목 글쓴이 날짜 조회 수sort
168 OpenSIPS Control Panel (OCP) Installation Guide admin 2014-03-06 278028
167 Opensips Gateway between SIP and SMPP messages admin 2019-02-19 265271
166 What is new in 1.8.0 opensip admin 2012-05-21 250757
165 What is new in 2.3.0 opensips admin 2017-09-04 243480
164 Using SIP Devices behind NAT OPensip Asterisk IPPhone SIP Telephony file admin 2013-03-31 223661
163 OpenSIPS vs Asterisk admin 2013-04-06 218088
162 PUSH SERVER 푸시서버 안드로이드 애플 admin 2017-09-11 207144
161 MediaProxy Installation Guide admin 2014-03-06 179339
160 telepresence: Open Source SIP Telepresence/MCU admin 2014-03-12 177875
159 RTPproxy Frequentry Asked Questions (FAQ) ¶ admin 2014-03-07 174400
158 SIP PBX - OpenSIPS and Asterisk configuration admin 2014-03-12 160222
157 Asterisk v1.4x built on FreeBSD v7.1 UNIX admin 2012-01-06 148165
156 사설 망 환경에서 SIP 의 NAT Traversal 문제 admin 2011-12-23 142771
155 How to install Mediaproxy 2.5.2 on CentOS 6 64 bit admin 2017-09-04 142387
154 SIP 트래픽 생성 테스트 툴 admin 2011-12-23 135564
153 opensips command /sbin/opensipsctl detail admin 2017-09-04 123927
152 How to setup a Jabber / XMPP server on Debian 8 (jessie) using ejabberd admin 2017-09-13 123155
151 Opensips_1.9 install guide this is great I like this admin 2014-03-04 106632
150 OpenSIPS basic configuration script 기본 컨피그 admin 2017-09-05 104221
149 Welcome to the Smartvox Knowledgebase admin 2013-04-06 103860
148 Installing RTPproxy Start RTPproxy in Bridged mode very good admin 2014-03-07 101083
147 오픈소스 (사내)메신저 서버 구축, 오픈 파이어(openfire) 설치방법과 세팅 admin 2014-08-11 100622
146 Flooding Asterisk, Freeswitch and Kamailio with Metasploit admin 2013-04-06 98779
145 OpenSIPS Control Panel install guide admin 2014-03-06 95184
144 dictionary.opensips radius admin 2017-12-09 93984
143 Installation and configuration process record opensips 1.9.1 admin 2014-08-09 93702
142 My new toy: Bluebox-ng admin 2013-04-06 90772
141 in opensips what is lookup(domain [, flags [, aor]]) admin 2017-12-09 90294
140 Conference Support in Kamailio (OpenSER) admin 2014-03-12 84074
» Kamailo OpenSIPs installation on Debian admin 2014-03-09 80997