Set up configuration templates for Asterisk
This commit is contained in:
parent
49a5224e83
commit
9a5303c216
1 changed files with 24 additions and 0 deletions
24
platon.yml
24
platon.yml
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue