Skip to content

Commit

Permalink
fix call failed details
Browse files Browse the repository at this point in the history
  • Loading branch information
callcenter-magnus committed Jan 22, 2024
1 parent a0d1da0 commit 16f86e7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
Binary file modified build/MagnusBilling-current.tar.gz
Binary file not shown.
7 changes: 6 additions & 1 deletion protected/controllers/CallFailedController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
9 changes: 1 addition & 8 deletions script/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 16f86e7

Please sign in to comment.