한국어

소프트스위치

온누리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:
조회 수 :
82508
등록일 :
2014.03.09
13:33:40 (*.251.139.148)
엮인글 :
http://webs.co.kr/index.php?document_srl=38994&act=trackback&key=ce1
게시글 주소 :
http://webs.co.kr/index.php?document_srl=38994
List of Articles
번호 제목 글쓴이 날짜 조회 수sort
51 Opensips Installation, How to. Good guide wiki page admin 2014-08-10 36433
50 Script Function , Module Index v1.11 함수 모듈 opensips admin 2014-10-14 35679
49 A2Billing and OpenSIPS – Part 2 admin 2017-08-29 33897
48 Advanced SIP scenarios with Event-based-Routing admin 2017-09-11 33447
47 Service Provision Using Asterisk & OpenSIPS - AstriCon 2014 admin 2015-02-25 33308
46 WebRTC with OpenSIPS WebSocket is a protocol provides full-duplex admin 2015-04-04 32718
45 Installing RTPEngine on Ubuntu 14.04 admin 2017-09-05 32402
44 A2Billing and OpenSIPS – Part 1 admin 2017-08-29 31864
43 WebSocket Support in OpenSIPS 2.1 admin 2015-04-04 31391
42 opensips tls cfg admin 2017-09-14 29992
41 How to Install OpenSIPS 2.1.2 Server on Ubuntu 15.04 admin 2017-09-01 26648
40 opensips push notification How to detail file admin 2017-12-20 25070
39 Documentation -> Tutorials -> TLS opensips.cfg admin 2017-09-14 24940
38 what is record_route() in opensips ? admin 2017-12-09 24614
37 OpenSIPS 2.3 install admin 2017-09-01 24452
36 OpenSIPS 2.1 (rc) is available, download now! admin 2015-03-22 24423
35 opensips.cfg. sample admin 2017-09-12 24282
34 WebSocket Transport using OpenSIPS admin 2017-09-01 24233
33 openssl 을 이용한 인증서 생성 절차를 정리한다. 개인키 CSR SSL 인증서 파일 생성 admin 2017-09-14 23945
32 what is loose_route() in opensips ? file admin 2017-12-09 23941
31 ubuntu 安装配置opensips,rtpproxy,mediaproxy admin 2017-09-04 23887
30 in opensips what is has_totag() admin 2017-12-09 22251
29 The timeline for OpenSIPS 2.3 is admin 2017-08-17 22124
28 opensips configuration config explain easy basic 오픈쉽스 컨피그레이션 기본 설명 file admin 2017-12-07 22113
27 opensips push notification How to admin 2017-12-07 21707
26 Busy Lamp Field (BLF) feature on Opensips 2.4.0 with Zoiper configuration admin 2018-05-29 21549
25 OpenSIPS 2.3 philosophy admin 2017-08-17 21467
24 A2Billing and OpenSIPS – Part 3 admin 2017-08-29 21173
23 WebSocket Transport using OpenSIPS configuration 웹 소켓 컨피그레이션 기본 admin 2017-09-06 21155
22 Opensips sip capture re designed admin 2017-07-16 21090