From 573a2c9811dd519fdd22c4a95d876f521b074b4c Mon Sep 17 00:00:00 2001 From: PhantomVl Date: Mon, 1 Apr 2019 09:33:13 +0300 Subject: [PATCH] Initial add of feature mobility user table: - Add extra user fields and sccp_config entries - Create new buttonconfig table - Add PhoneCodepages like cp1251 - Add BackUp Config before Install --- Sccp_manager.class.php | 2 +- Technical.notes/freepbx.txt | 1 + conf/sccpgeneral.xml.v433 | 2 +- contrib/rewrite.rules | 8 ++++---- install.php | 2 +- 5 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 Technical.notes/freepbx.txt diff --git a/Sccp_manager.class.php b/Sccp_manager.class.php index c7e982f..f1b7e06 100644 --- a/Sccp_manager.class.php +++ b/Sccp_manager.class.php @@ -1945,7 +1945,7 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO { fclose($fh); $zip = new \ZipArchive(); - $filename = $result . "." . gethostname() . ".zip"; + $filename = $result . "." . gethostname() . ".zip"; if ($zip->open($filename, \ZIPARCHIVE::CREATE)) { $zip->addFile($result); $zip->addFile($backup_info); diff --git a/Technical.notes/freepbx.txt b/Technical.notes/freepbx.txt new file mode 100644 index 0000000..f5a405c --- /dev/null +++ b/Technical.notes/freepbx.txt @@ -0,0 +1 @@ +https://github.com/chan-sccp/chan-sccp/wiki/Monitor-and-Pickup-Incoming-Calls-via-Speeddial-Using-Custom-Devstate diff --git a/conf/sccpgeneral.xml.v433 b/conf/sccpgeneral.xml.v433 index e05a2dc..f65b27e 100644 --- a/conf/sccpgeneral.xml.v433 +++ b/conf/sccpgeneral.xml.v433 @@ -1590,7 +1590,7 @@ and open the template in the editor. Base Version before all crash :-) Help! - rouminglogin + roaminglogin off diff --git a/contrib/rewrite.rules b/contrib/rewrite.rules index 3d50a1e..036e6a3 100644 --- a/contrib/rewrite.rules +++ b/contrib/rewrite.rules @@ -106,10 +106,10 @@ ri ^(cmterm_7936.3-3-21-0.bin)$ firmware/7936/\1 ri ^(apps37sccp.1-4-5-7.bin)$ firmware/7937/\1 # 7940_7960 firmware (ancient) -ri ^(P0030801SR)(+\.bin)$ firmware/7940/\1 -ri ^(P0030801SR)(+\.loads)$ firmware/7940/\1 -ri ^(P0030801SR)(+\.sb2)$ firmware/7940/\1 -ri ^(P0030801SR)(+\.sbn)$ firmware/7940/\1 +ri ^(P0030801SR)(.+\.bin)$ firmware/7940/\1 +ri ^(P0030801SR)(.+\.loads)$ firmware/7940/\1 +ri ^(P0030801SR)(.+\.sb2)$ firmware/7940/\1 +ri ^(P0030801SR)(.+\.sbn)$ firmware/7940/\1 # 7941_7961 firmware (java-based) ri ^(apps41)(.+\.sbn)$ firmware/7941/\1\2 diff --git a/install.php b/install.php index f31ca9e..e8a2f61 100644 --- a/install.php +++ b/install.php @@ -503,7 +503,7 @@ function InstallDB_sccpusers() { `pin` VARCHAR(7) NULL DEFAULT NULL, `password` VARCHAR(7) NULL DEFAULT NULL, `description` VARCHAR(45) NULL DEFAULT NULL, - `rouminglogin` ENUM('on','off','multi') NULL DEFAULT 'off', + `roaminglogin` ENUM('on','off','multi') NULL DEFAULT 'off', `devicegroup` VARCHAR(20) NULL DEFAULT 'all', `auto_logout` ENUM('on','off') NULL DEFAULT 'off', `homedevice` VARCHAR(20) NULL DEFAULT NULL,