diff --git a/build/MagnusBilling-current.tar.gz b/build/MagnusBilling-current.tar.gz index 8a4f5d191..ce901f35e 100644 Binary files a/build/MagnusBilling-current.tar.gz and b/build/MagnusBilling-current.tar.gz differ diff --git a/protected/controllers/CallFailedController.php b/protected/controllers/CallFailedController.php index a57befc03..73b52f1da 100755 --- a/protected/controllers/CallFailedController.php +++ b/protected/controllers/CallFailedController.php @@ -499,7 +499,12 @@ public function actionCallInfo() $lines = LinuxAccess::exec('grep ' . $model->calledstation . ' /var/log/asterisk/magnus'); - $lines = htmlentities($lines); + if ( ! isset($lines[0])) { + echo "Log not found"; + exit; + } + + $lines = htmlentities($lines[0]); $ora_books = preg_split('/\n/', $lines); diff --git a/script/install.sh b/script/install.sh index 0e0ce8cde..a9df393db 100755 --- a/script/install.sh +++ b/script/install.sh @@ -839,14 +839,7 @@ install_fail2ban() { if [ ${DIST} = "CENTOS" ]; then yum install -y iptables-services - - rm -rf /etc/fail2ban - cd /tmp - git clone https://github.com/fail2ban/fail2ban.git - cd /tmp/fail2ban - python setup.py install - - + yum install -y fail2ban systemctl mask firewalld.service systemctl enable iptables.service systemctl enable ip6tables.service