From 96e71eadf7b161efebcd8889ac060029a652b742 Mon Sep 17 00:00:00 2001 From: "Harry G. Coin" Date: Mon, 25 Apr 2016 20:40:23 -0500 Subject: [PATCH] ensure the directory variable actually has a directory name. --- app/dialplan_outbound/app_defaults.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/dialplan_outbound/app_defaults.php b/app/dialplan_outbound/app_defaults.php index 879b292ed7..62d182909d 100644 --- a/app/dialplan_outbound/app_defaults.php +++ b/app/dialplan_outbound/app_defaults.php @@ -26,6 +26,7 @@ //make sure that enum uses sofia internal in the enum.conf.xml file if ($domains_processed == 1) { + $switch_conf_dir = $_SESSION['switch']['conf']['dir']; $file_contents = file_get_contents($switch_conf_dir."/autoload_configs/enum.conf.xml"); $file_contents_new = str_replace("service=\"E2U+SIP\" regex=\"sip:(.*)\" replace=\"sofia/\${use_profile}/\$1", "service=\"E2U+SIP\" regex=\"sip:(.*)\" replace=\"sofia/internal/\$1", $file_contents); if ($file_contents != $file_contents_new) {