diff --git a/install.php b/install.php
index 6411627..c4f26e8 100644
--- a/install.php
+++ b/install.php
@@ -247,8 +247,9 @@ function Get_DB_config($sccp_compatible) {
'_hwlang' => array('create' => 'varchar(12) NULL DEFAULT NULL'),
'_loginname' => array('create' => 'varchar(20) NULL DEFAULT NULL AFTER `_hwlang`'),
'_profileid' => array('create' => "INT(11) NOT NULL DEFAULT '0' AFTER `_loginname`"),
+ '_dialrules' => array('create' => "VARCHAR(255) NULL DEFAULT NULL AFTER `_profileid`"),
- 'useRedialMenu' => array('create' => "VARCHAR(5) NULL DEFAULT 'no' AFTER `_profileid`"),
+ 'useRedialMenu' => array('create' => "VARCHAR(5) NULL DEFAULT 'no' AFTER `_dialrules`"),
//'dtmfmode' => array('create' => "VARCHAR(10) default 'outofband'", 'modify' => "VARCHAR(10)", 'def_modify'=> 'outofband'),
'dtmfmode' => array('drop' => "yes"),
// 'force_dtmfmode' => array('create' => "VARCHAR(10) default 'auto'", 'modify' => "VARCHAR(10)", 'def_modify'=> 'auto'),
@@ -337,6 +338,7 @@ function Get_DB_config($sccp_compatible) {
'_description' => array('rename' => "description"),
'_loginname' => array('drop' => "yes"),
'_profileid' => array('drop' => "yes"),
+ '_dialrules' => array('create' => "VARCHAR(255) NULL DEFAULT NULL AFTER `_profileid`"),
'transfer_on_hangup' => array('create' => "enum('on','off') NULL DEFAULT NULL", 'modify' => "enum('on','off')"),
),
'sccpline' => array(
@@ -659,7 +661,9 @@ function InstallDB_fillsccpdevmodel() {
"('S60', 'NOKIA', 0, 1, '', 'loadInformation376', 0, ''), ('9971', 'CISCO', 1, 1, '', 'loadInformation493', 0, ''), ('9951', 'CISCO', 1, 1, '', 'loadInformation537', 0, ''), ('8961', 'CISCO', 1, 1, '', 'loadInformation540', 0, ''), ('Iphone', 'APPLE', 0, 1, '', 'loadInformation562', 0, ''), ('Android', 'ANDROID', 0, 1, '', 'loadInformation575', 0, ''), ('7926', 'CISCO', 1, 1, 'CP7926G-1.4.5.3', 'loadInformation577', 0, ''), ('7821', 'CISCO', 1, 1, '', 'loadInformation621', 0, ''), ('7841', 'CISCO', 1, 1, '', 'loadInformation622', 0, ''), ('7861', 'CISCO', 1, 1, '', 'loadInformation623', 0, ''), ('VXC 6215', 'CISCO', 1, 1, '', 'loadInformation634', 0, ''), ('8831', 'CISCO', 1, 1, '', 'loadInformation659', 0, ''), ('8841', 'CISCO', 1, 1, '', 'loadInformation683', 0, ''), ('8851', 'CISCO', 1, 1, '', 'loadInformation684', 0, ''), ('8861', 'CISCO', 1, 1, '', 'loadInformation685', 0, ''), ".
"('Analog', 'CISCO', 1, 1, '', 'loadInformation30027', 0, ''), ('ISDN', 'CISCO', 1, 1, '', 'loadInformation30028', 0, ''), ('SCCP GW', 'CISCO', 1, 1, '', 'loadInformation30032', 0, ''), ('IP-STE', 'CISCO', 1, 1, '', 'loadInformation30035', 0, ''), ".
"('SPA 521S', 'CISCO', 1, 1, '', 'loadInformation80000', 0, ''), ('SPA 502G', 'CISCO', 1, 1, '', 'loadInformation80003', 0, ''), ('SPA 504G', 'CISCO', 1, 1, '', 'loadInformation80004', 0, ''), ('SPA 525G', 'CISCO', 1, 1, '', 'loadInformation80005', 0, ''), ('SPA 525G2', 'CISCO', 1, 1, '', 'loadInformation80009', 0, ''), ('SPA 303G', 'CISCO', 1, 1, '', 'loadInformation80011', 0, ''),".
- "('IP Communicator', 'CISCO', 1, 1, '', 'loadInformation30016', 0, NULL), ('Nokia E', 'Nokia', 1, 28, '', 'loadInformation275', 0, NULL), ('VGC Phone', 'CISCO', 1, 1, '', 'loadInformation10', 0, NULL), ('VGC Virtual', 'CISCO', 1, 1, '', 'loadInformation11', 0, NULL);";
+ "('IP Communicator', 'CISCO', 1, 1, '', 'loadInformation30016', 0, NULL), ('Nokia E', 'Nokia', 1, 28, '', 'loadInformation275', 0, NULL), ('VGC Phone', 'CISCO', 1, 1, '', 'loadInformation10', 0, NULL),".
+ "('7911-sip', 'CISCO-SIP', 1, 1, 'SIP11.9-2-1S', 'loadInformation307', 1, 'SEP0000000000.cnf.xml_791x_sip_template'),".
+ "('VGC Virtual', 'CISCO', 1, 1, '', 'loadInformation11', 0, NULL);";
$check = $db->query($sql);
if (db::IsError($check)) {
die_freepbx("Can not create sccpdevmodel table, error:$check\n");
diff --git a/uninstall.php b/uninstall.php
index 6090e0f..e43b4be 100644
--- a/uninstall.php
+++ b/uninstall.php
@@ -58,12 +58,14 @@ if (!defined('FREEPBX_IS_AUTH')) { die('No direct script access allowed'); }
/* Comment: Maybe save in sccpsettings, if the chan_sccp tables already existed in the database or if they were created by install.php */
/* So that you know if it is save to drop/delete them */
-/* DROP VIEW `sccpdeviceconfig`;
- DROP TABLE `sccpbuttonconfig`;
- DROP TABLE `sccpdevice`;
- DROP TABLE `sccpdevmodel`;
- DROP TABLE `sccpline`;
- DROP TABLE `sccpsettings`;
+/* DROP VIEW IF EXISTS`sccpdeviceconfig`;
+ DROP TABLE IF EXISTS `sccpbuttonconfig`;
+ DROP TABLE IF EXISTS `sccpdevice`;
+ DROP TABLE IF EXISTS `sccpdevmodel`;
+ DROP TABLE IF EXISTS `sccpline`;
+ DROP TABLE IF EXISTS `sccpsettings`;
+ DROP TABLE IF EXISTS `sccpuser`;
+ *
*/
}
diff --git a/views/form.sbuttons.php b/views/form.sbuttons.php
index ff0b69e..67a4f0b 100644
--- a/views/form.sbuttons.php
+++ b/views/form.sbuttons.php
@@ -11,7 +11,8 @@ $forminfo =array(
);
//$buttons_type= array("empty","line","service","feature","speeddial");
// "feature","service" -- Add leter !
-$buttons_type= array("empty","line","silent","monitor","speeddial","feature","adv.line");
+//$buttons_type= array("empty","line","silent","monitor","speeddial","feature","adv.line");
+$buttons_type= array("empty","line","speeddial");
$feature_list= array('parkinglot'=>'Park Slots','monitor'=> "Record Calls",'devstate'=> "Change Status");
//$lines_list = $this->dbinterface->get_db_SccpTableData('SccpExtension');
diff --git a/views/server.info.php b/views/server.info.php
index d783e61..e2def53 100644
--- a/views/server.info.php
+++ b/views/server.info.php
@@ -100,7 +100,7 @@ if ($mysql_info['Value'] <= '2000') {
}
global $amp_conf;
// ************************************************************************************
-
+/*
//$tmp_data_list = $this->getSccp_model_information('enabled', $validate = TRUE);
//$tmp_data_list = $amp_conf;
//$tmp_data_list=FreePBX::create()->Sipsettings->getConfig('bindport');
@@ -109,20 +109,16 @@ if ($mysql_info['Value'] <= '2000') {
// $tmp_data_list=$this->dbinterface->get_db_SccpTableData('SccpExtension');
// $tmp_data_list=$this->dbinterface->get_db_SccpTableData('SccpDevice', array('type'=>'cisco-sip'));
// $tmp_data_list= FreePBX::Sipsettings()->getChanSipDefaults();
-$file_ext = array('.loads', '.sbn', '.bin', '.zup');
-$dir = '/tftpboot';
//$tmp_data_list = $this->find_all_files($dir, $file_ext, 'fileonly');
print_r("
Help Info:
");
print_r("
");
print_r($tmp_data_list);
//$tmp_data_list = FreePBX::Sipsettings()->getChanSipDefaults();
- $tmp_data_list = FreePBX::Sipsettings()->getBinds();
// $tmp_data_list = \FreePBX::Sipsettings()->getSipPortOwner();
//print_r($buton_list);
print_r("
");
print_r($this->sccp_conf_init);
//$tmp_data_list=$this->sipconfigs->get_db_sip_TableData('Device');
- print_r($this->srvinterface->sccp_list_keysets());
print_r("
");
// print_r("DIRECT START");
// print_r($this->sccpvalues['ccm_address']);