{"id":19177223,"url":"https://github.com/mahdi22/ansible-install-asterisk","last_synced_at":"2025-05-07T20:40:52.939Z","repository":{"id":133216838,"uuid":"299342285","full_name":"mahdi22/ansible-install-asterisk","owner":"mahdi22","description":"Role Ansible Installation Asterisk on CentOS 7, CentOS 8 ,configuration of the cdr connection to mysql or Mssql database, configuration firewalld and fail2ban ","archived":false,"fork":false,"pushed_at":"2020-11-27T13:26:03.000Z","size":14,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T14:03:52.235Z","etag":null,"topics":["ansible","asterisk","callcenter","cdr","cdr-database","centos","fail2ban","firewall","linux","linux-server","mssql","redhat","sql","telephony","voip"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/mahdi22/install_asterisk","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mahdi22.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-28T14:54:02.000Z","updated_at":"2023-05-12T17:00:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"7b1a7894-281a-4e3d-858b-2cf39c0d1fb6","html_url":"https://github.com/mahdi22/ansible-install-asterisk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahdi22%2Fansible-install-asterisk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahdi22%2Fansible-install-asterisk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahdi22%2Fansible-install-asterisk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahdi22%2Fansible-install-asterisk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mahdi22","download_url":"https://codeload.github.com/mahdi22/ansible-install-asterisk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252954128,"owners_count":21830893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","asterisk","callcenter","cdr","cdr-database","centos","fail2ban","firewall","linux","linux-server","mssql","redhat","sql","telephony","voip"],"created_at":"2024-11-09T10:32:34.422Z","updated_at":"2025-05-07T20:40:52.930Z","avatar_url":"https://github.com/mahdi22.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003eansible-install-asterisk\u003c/h1\u003e\nThis is an ansible role to install Asterisk on Redhat/CentOS 7 and 8 distribution, installed from cd image version minimal install.Specifically, the responsibilities of this role are to:\n\n- Update server and reboot\n- Install Asterisk dependency\n- Install Dahdi package from source\n- Install Asterisk Package from source\n- Install libpri from source\n- Configure Fail2ban\n- Condigure Firewalld\n- Configure Selinux\n- Configure Asterisk CDR ODBC (optional)\n- Configure Asterisk\n\n# Requirements\n\n- CentOS 7.x\n- CentOS 8.x\n- Ansible \u003e= 2.7\n- Asterisk 12\n- Asterisk 13\n- Asterisk 14\n\n# Installation\n\nansible-galaxy install mahdi22.ansible_install_asterisk\n\n# Role Variables\nfile: defaults/main.yml\nSet configure_cdr_odbc: true to configure asterisk CDR ODBC. Only ODBC supported with this role:\n  - Mysql/MariaDB\n  - MSSQL\nSet configure_cdr_odbc: false to not configure asterisk CDR ODBC.\nExample:\n```yaml\nconfigure_cdr_odbc: true\n```\nfile: vars/main.yml\n* line 57\n  - variable name: Driver\n  - variable value: MSSQL # MSSQL if your cdr satabase server is MSSQL server\n  - variable value: MYSQL # MYSQL if your cdr database server is Mysql Server or Mariadb Server\n* line 58\n  - variable name: SQL_HOST\n  - variable value: localhost # Replace localhost with you database server name or IP address\n* line 59\n  - variable name: SQL_USER\n  - variable value: dbuser # Replace dbuser with you sql user\n* line 60\n  - variable name: SQL_PASSWORD\n  - variable value: dbpassword # Replace dbpassword with sql user password\n* line 61\n  - variable name: SQL_DATABASE\n  - variable value: asterisk # Replace asterisk with the cdr database name\n* line 62\n  - variable name: SQL_TABLE\n  - variable value: cdr # Replace cdr with your cdr table name\n\n# Example Playbook\n```sh\n- hosts: servers\n  roles:\n    - role: mahdi22.asterisk\n      become: yes\n```\n# Tests\nThis role was tested on Redhat end CentOS verion 7 and 8","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahdi22%2Fansible-install-asterisk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmahdi22%2Fansible-install-asterisk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahdi22%2Fansible-install-asterisk/lists"}