From 1462863d03f0c52e67a427e33becd6e5452bd86a Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sat, 22 Mar 2014 02:03:04 +0000 Subject: [PATCH] Skip saving the sip profile xml if the directory is not set. --- resources/switch.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/switch.php b/resources/switch.php index 7287529a85..4f6eacf93d 100644 --- a/resources/switch.php +++ b/resources/switch.php @@ -3020,6 +3020,11 @@ if (!function_exists('xml_cdr_conf_xml')) { if (!function_exists('save_sip_profile_xml')) { function save_sip_profile_xml() { + //skip saving the sip profile xml if the directory is not set + if (strlen($_SESSION['switch']['sip_profiles']['dir']) == 0) { + return; + } + //get the global variables global $db, $domain_uuid;