한국어

소프트스위치

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

     페북공유

   ◎위챗 : speedseoul


  
     PAYPAL
     
     PRICE
     

pixel.gif

    before pay call 0088 from app


http://opensips-cp.sourceforge.net/



OpenSIPS Control Panel (OCP) Installation Guide
-----------------------------------------------


OCP has been tested and developed mostly on Debian and Redhat Linux , but, being
a web portal qualifies it to work also with other Linux distros and operating
systems as well. Most of the paths and commands in this INSTALL guide are be
debian/redhat specific.   


You Will Need:
1. a web server (this tutorial focuses only on Apache Web Server)
2. PHP and some of it's extensions
3. DB (mysql/postgres/sqlite/oracle etc)

This tutorial assumes that your web directory is /var/www/ and the OCP files are
located in /var/www/opensips-cp/ folder

Apache
------

1. Install Apache
- debian: apt-get install apache2 libapache2-mod-php5
- redhat: yum install httpd

2. Configure Apache
- you can add the configuration below into one of Apache's existent VHOSTs or
  create a new one:

        <Directory /var/www/opensips-cp/web>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

        <Directory /var/www/opensips-cp>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order deny,allow
                deny from all
        </Directory>

        Alias /cp /var/www/opensips-cp/web

- you can read more about Apache's VHOSTS here:
    http://httpd.apache.org/docs/current/vhosts/examples.html


2. Apache is going to need write permissions on some files / folders in the
   opensips-cp directory :

- so you can do:
    - for debian: chown -R www-data:www-data /var/www/opensips-cp/
    - for redhat: chown -R apache:apache /var/www/opensips-cp/

- or, at least chown the mandatory files:
    - for debian: chown -R www-data:www-data /var/www/opensips-cp/web/tools/system/smonitor/generated
                  chown  www-data:www-data /var/www/opensips-cp/config/tools/system/drouting/group_ids.txt
                  chown  www-data:www-data /var/www/opensips-cp/config/tools/system/drouting/gw_types.txt
 
    - for redhat: chown -R apache:apache /var/www/opensips-cp/web/tools/system/smonitor/generated
                  chown  apache:apache /var/www/opensips-cp/config/tools/system/drouting/group_ids.txt
                  chown  apache:apache /var/www/opensips-cp/config/tools/system/drouting/gw_types.txt




PHP
---


You must have PHP installed and enabled in the web server.

In order to do that you will have to install php and some of it's extensions.

- on debian distros do:
    apt-get install php5 php5-gd php5-mysql php5-xmlrpc php-pear php5-cli
- on redhat distros do:
    yum install php php-gd php-mysql php-xmlrpc php-pear


Check if these extensions are enabled :
- for debian distros check /etc/php5/conf.d/ for mysql.ini, gd.ini, xmlrpc.ini
- for redhat distros check /etc/php.d/ for mysql.ini, gd.ini, xmlrpc.ini

If these are not there plese check if you have installed them correctly

Do not forget to set in your php.ini :
short_open_tag = On ;  

4. MDB2 package needs to be installed with the appropriate DB driver
   (mysql / postgresql / mssql / sqlite etc.)

    pear install MDB2
    pear install MDB2#mysql //should you choose to go with the mysql database
    pear install log



Database server
----------------

The OpenSIPS Control Panel can connect to a remote database server,
so the DB server can be used from the SIP Server machine or another
machine in the network.



* You will need the opensips database schema from the opensips distribution.
  (www.opensips.org)
(OCP is made for it)


* Additional steps:

    * For the admin tool you must add a table.

        Follow these steps:
    
        1. install the ocp_admin_privileges table schema (we only provide the
           schema for mysql and pgsql)
            - from the opensips-cp folder run:
                mysql -Dopensips -p < config/tools/admin/add_admin/ocp_admin_privileges.mysql
                    or
                psql -h host_name -U postgres_username -d opensips < config/tools/admin/add_admin/ocp_admin_privileges.pgsql
    
        2. For being able to login create an admin account with the following
           username and password: admin/admin. Add it into the database:

            INSERT INTO ocp_admin_privileges (username,password,ha1,available_tools,permissions) values ('admin','admin',md5('admin:admin'),'all','all');        

    
    * For the cdrviewer tool you must add a table of use one that is already in
      your OpenSIPS Database (in case your OpenSIPS Server generates & stores
      CDRs in DB)

        Follow these steps (in case you do not have already a cdrs table in your
        opensips DB):    
     
            mysql -Dopensips -p < config/tools/system/cdrviewer/cdrs.mysql
                or
            psql -h host_name -U postgres_username -d opensips < config/tools/system/cdrviewer/cdrs.pgsql
    

    
    * For the smonitor module: you must add two tables to the OpenSIPS database

        Follow these steps:    
            1. Install the monitored_stats and monitoring_stats tables.
                mysql -Dopensips -p < config/tools/system/smonitor/tables.mysql
                    or
                psql -h host_name -U postgres_username -d opensips < config/tools/system/smonitor/tables.pgsql
    
            2. Edit the cron_job/get_opensips_stats.php file and change:
                $path_to_smonitor="/var/www/opensips-cp/web/tools/system/smonitor"; to the actual path of your OpenSIPS CP
       
            3. Add a cron job that collects data from the opensips machine(s).
    
                Here's a cron job that collects data at 1 minute interval:
                * * * * *   root   php /var/www/opensips-cp/cron_job/get_opensips_stats.php > /dev/null
    
    

Configuration files
-------------------

* DB Configuration files are split in:
    1) global(config/db.inc.php)
    2) local(config/tools/(admin|users|system)/module_name/db.inc.php)    

    NOTE:   
        If all modules pull out data from the same database, there should be
        used only the global config file and the local config files should be
        left as they are defined by default.
        If modules draw out data from different databases, in the local config
        files all the fields should be uncommented and provisioned accordingly
        ( host, database name, port -if necessary - user, password ).

* Configuration files:
    1) globals.php (config/globals.php)
    2) boxes.global.inc.php (config/boxes.global.inc.php)
    3) modules.inc.php (config/modules.inc.php)

    1)The globals.php file is used for parameters that are being accessed in
        more then one module.
       
        *$config->permissions
    
        The permissions parameter is used by all modules, when setting the
        modules permissions for a certain admin.
       
        This array has 2 values that will remain unchanged:
            read-only and read-write.

            $config->permissions = array("read-only","read-write");

        *$config->admin_passwd_mode
        You can use this parameter if you want your passwords to be
        encrypted (1) or left in plain text mode (0)

    2) The boxes.global.inc.php contains some important parameters like :
        - box_id - this is an integer unique ID of the box your are configuring
        - MI (management interface) connector - gives OpenSIPS Control Panel
          the ability to "talk" to OpenSIPS proxy via fifo, udp, xmlrpc and
          http json
        - Monit configuration - OpenSIPS CP can be integrated with Monit
          (see https://mmonit.com/monit/)
        - enable / disable Smonitor charts generator (you can choose to sample
          charts data on a box - be careful to configure the cron scripts)
        - choose the system id associated to the box
      
      You can define multiple boxes and group them into systems (see commented
          part of the file).

    3) The modules.inc.php file is used to configure what tools (modules)
       and/or groups of tools should appear in the main menu
        For example :

           "users"         => array (
                                                    "enabled"   => true,
                                                    "name"      => "Users",
                                                    "modules"   => array (
                                                                        "acl_management"    => array (
                                                                                                    "enabled"   => true,
                                                                                                    "name"      => "ACL Management"
                                                                        "alias_management"  => array (
                                                                                                    "enabled"   => false,
                                                                                                    "name"      => "Alias Management"
                                                                                            ),

        Above you can see that the Users tool group is enabled and the
        "ACL Management" module are enabled but the "Alias Management" is not
        enabled so it will not show up in the main menu.

조회 수 :
67601
등록일 :
2014.08.13
13:16:23 (*.160.88.200)
엮인글 :
http://webs.co.kr/index.php?document_srl=194118&act=trackback&key=101
게시글 주소 :
http://webs.co.kr/index.php?document_srl=194118
List of Articles
번호 제목 글쓴이 조회 수 추천 수 날짜sort
81 Opensips TM module enables stateful processing of SIP transactions admin 44849   2014-10-04
 
80 Script Function , Module Index v1.11 함수 모듈 opensips admin 35184   2014-10-14
 
79 A Survey of Open Source Products for Building a SIP Communication Platform admin 39490   2014-10-18
 
78 Jitsi Videobridge meets WebRTC admin 44559   2014-10-18
 
77 A2Billing and OpenSIPS config admin 37597   2014-10-20
 
76 opensips.cfg for Asterisk admin 36764   2014-10-20
 
75 SIP Signaling-Messages OpenSIPS Running On Multicore Server file admin 41467   2014-11-02
 
74 Service Provision Using Asterisk & OpenSIPS - AstriCon 2014 admin 32827   2015-02-25
 
73 OpenSIPS 2.1 (rc) is available, download now! admin 23953   2015-03-22
 
72 WebSocket Support in OpenSIPS 2.1 admin 30925   2015-04-04
 
71 WebRTC with OpenSIPS WebSocket is a protocol provides full-duplex admin 32216   2015-04-04
 
70 Opensips sip capture re designed admin 20603   2017-07-16
 
69 OpenSIPS Control Panel and Homer integration admin 42391   2017-08-17
 
68 The timeline for OpenSIPS 2.3 is admin 21237   2017-08-17
 
67 OpenSIPS 2.3 philosophy admin 20943   2017-08-17
 
66 A2Billing and OpenSIPS – Part 3 admin 20648   2017-08-29
 
65 A2Billing and OpenSIPS – Part 2 admin 33391   2017-08-29
 
64 A2Billing and OpenSIPS – Part 1 admin 31371   2017-08-29
 
63 WebSocket Transport using OpenSIPS admin 23702   2017-09-01
 
62 JsSIP: The JavaScript SIP Library admin 20088   2017-09-01
 
61 OpenSIPS 2.3 install admin 23902   2017-09-01
 
60 Opensips 2.32 download admin 17828   2017-09-01
 
59 How to Install OpenSIPS 2.1.2 Server on Ubuntu 15.04 admin 26073   2017-09-01
 
58 You can install CDRTool in the following ways: admin 19968   2017-09-01
 
57 How to 2.3 download , OpenSIPS new apt repository. DEBs for Debian / Ubuntu admin 18408   2017-09-02
 
56 Using TLS in OpenSIPS v2.2.x configuration admin 46718   2017-09-04
 
55 How to install Mediaproxy 2.5.2 on CentOS 6 64 bit admin 142755   2017-09-04
 
54 ubuntu 安装配置opensips,rtpproxy,mediaproxy admin 23361   2017-09-04
 
53 What is new in 2.3.0 opensips admin 244273   2017-09-04
 
52 Build-Depends debian 8.8 opensips 2.3 admin 64035   2017-09-04