diff --git a/platon.yml b/platon.yml index dc57bc2..0eefe60 100644 --- a/platon.yml +++ b/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: