Add code to change switch gateways dir to switch sip_profiles dir. Update the domain settings.

This commit is contained in:
Mark Crane
2014-03-22 01:00:46 +00:00
parent 46ccbe6826
commit 3153315da2
3 changed files with 43 additions and 12 deletions

View File

@@ -111,6 +111,19 @@ if ($domains_processed == 1) {
}
}
//set the sip_profiles directory for older installs
if (isset($_SESSION['switch']['gateways']['dir'])) {
$orm = new orm;
$orm->name('default_settings');
$orm->uuid($_SESSION['switch']['gateways']['uuid']);
$array['default_setting_category'] = 'switch';
$array['default_setting_subcategory'] = 'sip_profiles';
$array['default_setting_name'] = 'dir';
//$array['default_setting_value'] = '';
//$array['default_setting_enabled'] = 'true';
$orm->save($array);
unset($array);
}
}
?>