razvancrainea.opensips_cp

OpenSIPS Control Panel (CP)

This role installs the OpenSIPS Control Panel tool.

Installation with Galaxy

You can install this role using Ansible Galaxy:

ansible-galaxy install razvancrainea.opensips_cp

Role Variables

You can adjust the following variables to change how the role installs the tool:

Variable Description Default
opensips_cp_version The version to install (from git) master
opensips_cp_dir Where the source files go /var/www/html/opensips-cp
opensips_cp_db_engine The database engine to use (mysql or postgres) mysql
opensips_cp_db_host Database host localhost
opensips_cp_db_port Database port Not used
opensips_cp_db_user Database username opensips
opensips_cp_db_pass Database password opensipsrw
opensips_cp_db Database name opensips
opensips_cp_pass Password for the default admin user opensips
opensips_cp_stats Whether to gather statistics true
opensips_cp_force_deploy Force deployment with the latest code false
opensips_cp_host_description Description of the OpenSIPS CP host SIP server
opensips_cp_system_name Name of the OpenSIPS CP system SIP Servers
opensips_cp_system_description Description of the OpenSIPS CP system OpenSIPS SIP server cluster
opensips_mi_host Host for OpenSIPS JSON-RPC listener 127.0.0.1
opensips_mi_port Port for OpenSIPS JSON-RPC listener 8888
opensips_mi_root Root for OpenSIPS JSON-RPC listener mi
opensips_cp_monit_host Host for the monit tool Same as opensips_mi_host
opensips_cp_monit_port Port for the monit tool 2812
opensips_cp_modules See Modules Configuration default_opensips_cp_modules

Modules Configuration

You can use the opensips_cp_modules variable to customize the modules in OpenSIPS CP. It should be a dictionary with each group of modules defined. Each group can have:

  • name: Name to show in the web interface
  • icon: Path to the group's icon
  • modules: A dictionary of each module to be used, e.g., { rtpproxy: RTPProxy, monit: Monit }

If any key is missing, it will use the value from the default_opensips_cp_modules variable, if defined, or '' otherwise. Each module can also be configured as a dictionary with:

  • name: Name of the module (default is used if missing)
  • path: Path to the module (if missing, path is not set)

Limitations

Known issues with the module:

  • Tools cannot be finely tuned - only the default configuration is available.
  • Only one instance can be set up.

Examples

Here is an example playbook that uses the opensips_cp role:

---
- hosts: all
  roles:
    - role: opensips_cp

Example opensips_cp_modules variable:

opensips_cp_modules:
  system:
    modules:
      rtpproxy: RTPProxy
      monit: Monit
      smonitor: Statistics

Example opensips_cp_modules with module paths:

opensips_cp_modules:
  system:
    modules:
      monit: Monit
      smonitor: Statistics
  media:
    name: Media
    icon: images/icon-media.svg
    modules:
      rtpproxy:
        name: RTPProxy
        path: system/rtpproxy

License

GPLv3

Informazioni sul progetto

Role to install OpenSIPS CP packages from official repositories

Installa
ansible-galaxy install razvancrainea.opensips_cp
Licenza
gpl-3.0
Download
5.9k