mwolff44.freeswitch-mw

Freeswitch-mw

Build Status Galaxy

Ansible role for FreeSwitch 1.6

Requirements

  • Works with Ansible version 2.0 or higher.

Installing Ansible via pip

You can install Ansible using the following command:

sudo apt-get install -y ansible

Role Variables

Here are the role variables and their default values.

FreeSwitch Settings

  • freeswitch_conf_dir: Location of the configuration files (e.g., /etc/freeswitch).
  • freeswitch_symlinks: Create symbolic links in the default FS location (/usr/local/freeswitch) - set to True.
  • freeswitch_install_conf: Allow configuration files to be installed - set to True.
  • freeswitch_conf_backup_dir: Backup directory for configuration files.
  • freeswitch_config_template_dir: Directory for configuration templates.
  • freeswitch_config_list: List of configuration template files ending with .j2.

FreeSwitch Configuration Options

  • freeswitch_log_mapping: Log mapping options.
  • freeswitch_max_sessions: Maximum concurrent sessions allowed (default is 1000).
  • freeswitch_global_loglevel: Default log level (e.g., debug, info).
  • freeswitch_rtp_start_port: Starting RTP port (default is 16384).
  • freeswitch_rtp_end_port: Ending RTP port (default is 32768).

ODBC Settings

  • odbc_install: Set to false by default.
  • odbc_server: Database server address (default is 127.0.0.1).
  • odbc_database: Name of the database to connect to.
  • odbc_user: Username for the database connection.
  • odbc_password: Password for the database user.

Fail2ban Configuration

  • fail2ban_install: Set to false by default.
  • fail2ban_local_jail_file: Path to the local jail file for FreeSwitch.

Other Configurations

  • sngrep_install: Set to false by default (sngrep won't be installed).
  • ntp_install: Set to false by default (NTP sync won't be configured).

Dependencies

None required.

How to Use

To use this Ansible role, add mwolff44.freeswitch-mw to your roles and set the appropriate variables in your playbook file. Here’s an example:

- hosts: all
  vars_files:
    - 'defaults/main.yml'
  tasks:
    - include: 'tasks/main.yml'
  handlers:
    - include: 'handlers/main.yml'

License

Licensed under the GPL v3 license. Check the LICENSE file for more details.

Contributor

Special thanks to: Bruno SALZANO / [email protected]

Author Information

Mathias WOLFF / Blog des télécoms - PyFreeBilling

Informazioni sul progetto

FreeSwitch installation and management

Installa
ansible-galaxy install mwolff44.freeswitch-mw
Licenza
gpl-3.0
Download
80
Proprietario