Override chan-sccp default context
This commit is contained in:
parent
71fef35ebd
commit
2a98d8cfdb
|
@ -998,16 +998,20 @@ function cleanUpSccpSettings() {
|
|||
unset($settingsFromDb[$valueArray['Name']]);
|
||||
}
|
||||
} else {
|
||||
($sysConfiguration[$valueArray['Name']]['DefaultValue'] == '(null)') ? '' : $sysConfiguration[$valueArray['Name']]['DefaultValue'];
|
||||
$sysConfiguration[$valueArray['Name']] = $valueArray;
|
||||
if (array_key_exists($valueArray['Name'],$settingsFromDb)) {
|
||||
if (!empty($sysConfiguration[$valueArray['Name']]['DefaultValue'])) {
|
||||
// Preserve sequence and type
|
||||
$settingsFromDb[$valueArray['Name']]['systemdefault'] = $sysConfiguration[$valueArray['Name']]['DefaultValue'];
|
||||
}
|
||||
} else {
|
||||
|
||||
$settingsFromDb[$valueArray['Name']] = array('keyword' => $valueArray['Name'], 'seq' => 0, 'type' => 0, 'data' => '', 'systemdefault' => $sysConfiguration[$valueArray['Name']]['DefaultValue']);
|
||||
}
|
||||
}
|
||||
// Override certain chan-sccp defaults as they are based on a non-FreePbx system
|
||||
$settingsFromDb['context']['systemdefault'] = 'from-internal'
|
||||
|
||||
unset($sysConfiguration[$key]);
|
||||
}
|
||||
unset($sysConfiguration['Options']);
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
<tr>
|
||||
<th data-checkbox="true"></th>
|
||||
<th data-sortable="true" data-field="mac"><?php echo _('Device SEP ID') ?></th>
|
||||
<th data-sortable="true" data-field="description"><?php echo _('Device Descriptions') ?></th>
|
||||
<th data-sortable="true" data-field="description"><?php echo _('Device Description') ?></th>
|
||||
<th data-sortable="true" data-formatter="DispayTypeFormatter" data-field="type"><?php echo _('Device type') ?></th>
|
||||
<th data-sortable="true" data-field="button" data-formatter="LineFormatter"><?php echo _('Line') ?></th>
|
||||
<th data-sortable="true" data-field="status"><?php echo _('Status') ?></th>
|
||||
|
|
Loading…
Reference in a new issue