From 399f968e292488e12da9a613878df20c3c1276bc Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Fri, 21 Mar 2014 23:45:05 +0000 Subject: [PATCH] Switch $_SESSION['switch']['gateways']['dir'] to $_SESSION['switch']['sip_profiles']['dir']. --- resources/switch.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/switch.php b/resources/switch.php index dae5751e27..647ed80a3b 100644 --- a/resources/switch.php +++ b/resources/switch.php @@ -1780,7 +1780,7 @@ function save_gateway_xml() { else { $v_needle = 'v_'; } - $gateway_list = glob($_SESSION['switch']['gateways']['dir'] . "/*/".$v_needle."*.xml"); + $gateway_list = glob($_SESSION['switch']['sip_profiles']['dir'] . "/*/".$v_needle."*.xml"); foreach ($gateway_list as $gateway_file) { unlink($gateway_file); } @@ -1799,7 +1799,7 @@ function save_gateway_xml() { $profile = "external"; } //open the xml file - $fout = fopen($_SESSION['switch']['gateways']['dir']."/".$profile."/v_".$row['gateway_uuid'].".xml","w"); + $fout = fopen($_SESSION['switch']['sip_profiles']['dir']."/".$profile."/v_".$row['gateway_uuid'].".xml","w"); //build the xml $xml .= "\n"; $xml .= " \n";