Change the path where the sip profiles defaults settings are picked up

This commit is contained in:
Mark Crane 2014-07-29 22:13:22 +00:00
parent eb70a35c73
commit a6fdcec63e
1 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,8 @@
$prep_statement->execute();
$row = $prep_statement->fetch(PDO::FETCH_ASSOC);
if ($row['num_rows'] == 0) {
$xml_list = glob($_SESSION['switch']['conf']['dir']."/sip_profiles/*.xml");
//$xml_list = glob($_SESSION['switch']['conf']['dir']."/sip_profiles/*.xml");
$xml_list = glob($_SERVER["DOCUMENT_ROOT"]."/".PROJECT_PATH."resources/templates/conf/sip_profiles/*.xml");
foreach ($xml_list as &$xml_file) {
//load the sip profile xml and save it into an array
$sip_profile_xml = file_get_contents($xml_file);