From 931c6902528f41bfd88da2f750ff7c9775538fb3 Mon Sep 17 00:00:00 2001 From: Artem Zavyalov Date: Mon, 30 Jul 2018 14:45:38 -0700 Subject: [PATCH 1/2] Configuring asterisk with pjprogect bundled as recomended here - https://blogs.asterisk.org/2016/03/16/asterisk-13-8-0-now-easier-pjsip-install-method/. Other wise it's not able to make on 13.20 --- freepbx-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/freepbx-install.sh b/freepbx-install.sh index 857d313..8fae00f 100644 --- a/freepbx-install.sh +++ b/freepbx-install.sh @@ -77,7 +77,8 @@ tar xvfz asterisk-13-current.tar.gz rm -f asterisk-13-current.tar.gz cd asterisk-* contrib/scripts/install_prereq install -./configure --libdir=/usr/lib64 --enable-sanitize=memory +# --with-pjproject-bundled -> https://blogs.asterisk.org/2016/03/16/asterisk-13-8-0-now-easier-pjsip-install-method/ +./configure --libdir=/usr/lib64 --enable-sanitize=memory --with-pjproject-bundled contrib/scripts/get_mp3_source.sh wait ${!} make menuselect.makeopts From a412da74eda5a951bb1efd972789920cfc9c885c Mon Sep 17 00:00:00 2001 From: Artem Zavyalov Date: Mon, 30 Jul 2018 14:46:16 -0700 Subject: [PATCH 2/2] Fixing small mistake --- freepbx-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freepbx-install.sh b/freepbx-install.sh index 8fae00f..f93043d 100644 --- a/freepbx-install.sh +++ b/freepbx-install.sh @@ -112,7 +112,7 @@ chown -R asterisk. /var/{lib,log,spool}/asterisk chown -R asterisk. /usr/lib64/asterisk chown -R asterisk. /var/www/ -sed -i 's/\(^upload_max_filesize = \).*/\256M/' /etc/php.ini +sed -i 's/\(^upload_max_filesize = \).*/\1 256M/' /etc/php.ini sed -i 's/^\(User\|Group\).*/\1 asterisk/' /etc/httpd/conf/httpd.conf sed -i 's/AllowOverride None/AllowOverride All/' /etc/httpd/conf/httpd.conf service httpd restart