From 7a01104700c8ac5f5492eec42d51ed7c965fe08a Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 24 Jun 2014 06:40:29 +0000 Subject: [PATCH] Ensure the gateway_uuid is lower case --- .../resources/scripts/configuration/sofia.conf.lua | 2 +- resources/switch.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/install/scripts/app/xml_handler/resources/scripts/configuration/sofia.conf.lua b/resources/install/scripts/app/xml_handler/resources/scripts/configuration/sofia.conf.lua index c057c0e41b..ee94c9b6ca 100644 --- a/resources/install/scripts/app/xml_handler/resources/scripts/configuration/sofia.conf.lua +++ b/resources/install/scripts/app/xml_handler/resources/scripts/configuration/sofia.conf.lua @@ -123,7 +123,7 @@ end x = 0; dbh:query(sql, function(field) - table.insert(xml, [[ ]]); + table.insert(xml, [[ ]]); if (string.len(field.username) > 0) then table.insert(xml, [[ ]]); diff --git a/resources/switch.php b/resources/switch.php index 95d76d8a5c..d1f976448d 100644 --- a/resources/switch.php +++ b/resources/switch.php @@ -1778,10 +1778,10 @@ function save_gateway_xml() { $profile = "external"; } //open the xml file - $fout = fopen($_SESSION['switch']['sip_profiles']['dir']."/".$profile."/v_".$row['gateway_uuid'].".xml","w"); + $fout = fopen($_SESSION['switch']['sip_profiles']['dir']."/".$profile."/v_".strtolower($row['gateway_uuid']).".xml","w"); //build the xml $xml .= "\n"; - $xml .= " \n"; + $xml .= " \n"; if (strlen($row['username']) > 0) { $xml .= " \n"; }