From 9a5303c216a018fa46219fca58073bd737b1d045 Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Wed, 3 Aug 2022 22:46:22 +0200 Subject: [PATCH] Set up configuration templates for Asterisk --- platon.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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: