Set up configuration templates for Asterisk

This commit is contained in:
Stefan Haun 2022-08-03 22:46:22 +02:00
parent 49a5224e83
commit 9a5303c216

View file

@ -245,6 +245,30 @@
mode: "0644"
notify: restart rsyslog
### Asterisk
- name: Set up SIP settings for asterisk
# This uses the variable gatekeeper_sip_registration
ansible.builtin.template:
src: templates/platon/sip.conf.j2
dest: /etc/asterisk/sip.conf
owner: root
group: root
mode: "0644"
notify: restart asterisk
- name: Set up extensions for asterisk
# This uses the variables gatekeeper_user and door_open_command
ansible.builtin.template:
src: templates/platon/extensions.conf.j2
dest: /etc/asterisk/extensions.conf
owner: root
group: root
mode: "0644"
notify: restart asterisk
handlers:
- name: restart mosquitto
service: