From b0fff8cc266d681bf84e5eeba752cdb25d594714 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 6 Aug 2021 21:02:02 -0400 Subject: [PATCH] Fix asterisk.yml & revise freepbx.yml experiment --- roles/pbx/tasks/asterisk.yml | 10 +++++----- roles/pbx/tasks/freepbx.yml | 4 +++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/roles/pbx/tasks/asterisk.yml b/roles/pbx/tasks/asterisk.yml index 4d185942d..1fd97d589 100644 --- a/roles/pbx/tasks/asterisk.yml +++ b/roles/pbx/tasks/asterisk.yml @@ -76,7 +76,7 @@ - name: Asterisk - Do a bit of menuselect configuration command: menuselect/menuselect --enable app_macro --enable format_mp3 menuselect.makeopts - # 2021-08-06: Let's standardize (ABOVE) if 5 extras (BELOW) aren't needed? + # 2021-08-06: Let's standardize (ABOVE) if 6 others (BELOW) aren't needed? # command: > # menuselect/menuselect --enable app_macro --enable format_mp3 # --enable CORE-SOUNDS-EN-WAV --enable CORE-SOUNDS-EN-G722 @@ -102,10 +102,10 @@ args: chdir: "{{ asterisk_src_dir }}" -# - name: Asterisk - Run 'make samples' -# command: make samples -# args: -# chdir: "{{ asterisk_src_dir }}" +- name: Asterisk - Run 'make samples' - this creates /etc/asterisk/asterisk.conf used below + command: make samples + args: + chdir: "{{ asterisk_src_dir }}" - name: Asterisk - Run 'ldconfig' command: ldconfig diff --git a/roles/pbx/tasks/freepbx.yml b/roles/pbx/tasks/freepbx.yml index 15bac0914..d13d46eba 100644 --- a/roles/pbx/tasks/freepbx.yml +++ b/roles/pbx/tasks/freepbx.yml @@ -137,7 +137,9 @@ # - killall -9 safe_asterisk # 2021-08-05: These 2 lines from PR #2912 attempted a brute force (not enough!) workaround for the #2908 annoyance on 1st # - killall -9 asterisk # install, of 'systemctl status freepbx' showing "Unable to run Pre-Asterisk hooks, because Asterisk is already running" # - /usr/sbin/asterisk -rx "core stop gracefully" - - fwconsole stop # 2021-08-06: #2915 EXPERIMENT + # - fwconsole reload # 2021-08-06: Insufficient + # - fwconsole stop # 2021-08-06: Insufficient + - fwconsole restart # 2021-08-06: #2915 EXPERIMENT # - fwconsole ma disablerepo commercial # - fwconsole ma installall # - fwconsole ma delete firewall