Skip to content

Commit 15ce5ed

Browse files
fix some small issues on installation
1 parent 81ef236 commit 15ce5ed

File tree

5 files changed

+10
-1
lines changed

5 files changed

+10
-1
lines changed

app/model/User.js

+3
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ Ext.define('MBilling.model.User', {
192192
}, {
193193
name: 'sip_count',
194194
type: 'int'
195+
}, {
196+
name: 'inbound_call_limit',
197+
type: 'int'
195198
}, {
196199
name: 'dist',
197200
type: 'string'

build/MagnusBilling-current.tar.gz

547 Bytes
Binary file not shown.

protected/commands/clear_memory

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
#
33
# Salve este script no diretó /etc/cron.hourly e dêermissã# de execuç a ele. Desse modo a cada hora sera verificada se a
44
# porcentagem de memó utilizada pelo sistema atingiu o valor definido

protected/extensions/phpAGI/AGI_AsteriskManager.php

+5
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,12 @@ public function connect($server = null, $username = null, $secret = null, $event
373373
// connect the socket
374374
$errno = $errstr = null;
375375
$this->socket = stream_socket_client("tcp://" . $this->server . ":" . $this->port, $errno, $errstr, 3);
376+
377+
if ( ! is_resource($this->socket)) {
378+
return false;
379+
}
376380
stream_set_timeout($this->socket, 5);
381+
377382
if ( ! $this->socket) {
378383
restore_error_handler();
379384
$this->log("Unable to connect to manager {$this->server}:{$this->port} ($errno): $errstr");

script/install.sh

+1
Original file line numberDiff line numberDiff line change
@@ -992,6 +992,7 @@ if [ ${DIST} = "DEBIAN" ]; then
992992
echo "
993993
[sshd]
994994
enablem=true
995+
backend=systemd
995996
996997
[mbilling_ddos]
997998
enabled = true

0 commit comments

Comments
 (0)