add asterisk etc dir to sccp settings

This commit is contained in:
steve-lad 2021-06-23 13:21:19 +02:00
parent d422776ad6
commit ec79925661
3 changed files with 3 additions and 1 deletions

View file

@ -140,6 +140,7 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
}
$this->sccpvalues = $this->dbinterface->get_db_SccpSetting(); // Overwrite Exist
$this->initializeSccpPath();
$this->initVarfromDefs();
$this->initTftpLang();

View file

@ -1007,6 +1007,7 @@ function checkTftpServer() {
copy($filename, $dst_path . basename($filename));
}
}
$settingsToDb['asterisk_etc_path'] =array( 'keyword' => 'asterisk_etc_path', 'seq' => 20, 'type' => 0, 'data' => $confDir);
foreach ($settingsToDb as $settingToSave) {
$sql = "REPLACE INTO sccpsettings (keyword, data, seq, type) VALUES ('{$settingToSave['keyword']}', '{$settingToSave['data']}', {$settingToSave['seq']}, {$settingToSave['type']});";

View file

@ -1,7 +1,7 @@
<module>
<rawname>sccp_manager</rawname>
<name>SCCP Manager</name>
<version>14.3.0.0</version>
<version>14.3.0.1</version>
<type>setup</type>
<category>SCCP Connectivity</category>
<publisher>Steve Lad, Alex GP</publisher>