Begin resample Sccp_manager
changed the suffix of the configuration file name
This commit is contained in:
parent
90c97a4332
commit
24e0f2404c
|
@ -68,7 +68,7 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
|||
// private $SCCP_LANG_DICTIONARY = 'SCCP-dictionary.xml'; // CISCO LANG file search in /tftp-path
|
||||
private $SCCP_LANG_DICTIONARY = 'be-sccp.jar'; // CISCO LANG file search in /tftp-path
|
||||
private $pagedata = null;
|
||||
private $sccp_driver_ver = '11.2';
|
||||
private $sccp_driver_ver = '11.21';
|
||||
private $tftpLang = array();
|
||||
private $hint_context = '@ext-local'; /// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Get it from Config !!!
|
||||
private $val_null = 'NONE'; /// REPLACE to null Field
|
||||
|
|
|
@ -135,9 +135,9 @@ class srvinterface {
|
|||
return 0;
|
||||
}
|
||||
if ($res["vCode"] >= 431) {
|
||||
return 11;
|
||||
return '4.3.1';
|
||||
} else {
|
||||
return 10;
|
||||
return '4.3.0';
|
||||
}
|
||||
// return $res["vCode"];
|
||||
}
|
||||
|
|
|
@ -72,15 +72,23 @@ class Sccp extends \FreePBX\modules\Core\Driver {
|
|||
$sqlv = 'values ("'.$id.'"';
|
||||
foreach($this->data_fld as $key => $val) {
|
||||
switch ($key) {
|
||||
case 'incominglimit':
|
||||
$sql .= ', '.$key;
|
||||
if (!empty($settings[$val]['value'])){
|
||||
$sqlv .= ", '".$settings[$val]['value']."' ";
|
||||
} else {
|
||||
$sqlv .= ", DEFAULT(`".$key."`)";
|
||||
}
|
||||
break;
|
||||
case 'secondary_dialtone_digits':
|
||||
case 'secondary_dialtone_tone':
|
||||
// case 'incominglimit':
|
||||
case 'dnd':
|
||||
$sql .= ', '.$key;
|
||||
if (!empty($settings[$val]['value'])){
|
||||
$sqlv .= ", '".$settings[$val]['value']."' ";
|
||||
} else {
|
||||
$sqlv .= ", NULL ";
|
||||
// $sqlv .= ", DEFAULT(`".$key."`)";
|
||||
}
|
||||
break;
|
||||
default:
|
|
@ -226,7 +226,7 @@ $db_config_v3 = array(
|
|||
'audio_cos' => array('drop' => "yes"),
|
||||
'video_tos' => array('drop' => "yes"),
|
||||
'video_cos' => array('drop' => "yes"),
|
||||
'incominglimit' =>array('create' => "INT(11) NOT NULL DEFAULT '6'", 'modify' =>'INT(11)', 'def_modify' => "6"),
|
||||
'incominglimit' =>array('create' => "INT(11) DEFAULT '6'", 'modify' =>'INT(11)', 'def_modify' => "6"),
|
||||
'transfer' =>array('create' => "enum('on','off') NOT NULL default 'on'",'modify' => "enum('on','off')"),
|
||||
'vmnum' =>array('def_modify' => "*97"),
|
||||
'musicclass' =>array('def_modify' => "default"),
|
||||
|
|
Loading…
Reference in a new issue