aboutsummaryrefslogtreecommitdiffstats
path: root/config/freeswitch/freeswitch_extensions.tmp
diff options
context:
space:
mode:
authormcrane <mctch@yahoo.com>2009-07-04 04:10:55 -0600
committermcrane <mctch@yahoo.com>2009-07-04 04:27:38 -0600
commit578fda76bb2566d8cf9deeaee3569a35da6ba63e (patch)
treeb23be34bb00cef283f0578888a70f0c701fd1c54 /config/freeswitch/freeswitch_extensions.tmp
parent641bf230fc57b77feaadeca70da5b3511081e84a (diff)
downloadpfsense-packages-578fda76bb2566d8cf9deeaee3569a35da6ba63e.tar.gz
pfsense-packages-578fda76bb2566d8cf9deeaee3569a35da6ba63e.tar.bz2
pfsense-packages-578fda76bb2566d8cf9deeaee3569a35da6ba63e.zip
add sip-force-contact to advanced extension options, add ability to disable an extension without removing it
Diffstat (limited to 'config/freeswitch/freeswitch_extensions.tmp')
-rw-r--r--config/freeswitch/freeswitch_extensions.tmp7
1 files changed, 5 insertions, 2 deletions
diff --git a/config/freeswitch/freeswitch_extensions.tmp b/config/freeswitch/freeswitch_extensions.tmp
index 8ef415fd..b1db2702 100644
--- a/config/freeswitch/freeswitch_extensions.tmp
+++ b/config/freeswitch/freeswitch_extensions.tmp
@@ -38,8 +38,11 @@ $a_extensions = &$config['installedpackages']['freeswitchextensions']['confi
if ($_GET['act'] == "del") {
if ($_GET['type'] == 'extensions') {
- if ($a_extensions[$_GET['id']]) {
- unlink("/usr/local/freeswitch/conf/directory/default/".$_GET['extension'].".xml");
+ if ($a_extensions[$_GET['id']]) {
+ $tmp_file_name = "/usr/local/freeswitch/conf/directory/default/".$_GET['extension'].".xml";
+ if (file_exists($tmp_file_name)) {
+ unlink($tmp_file_name);
+ }
unset($a_extensions[$_GET['id']]);
write_config();
header("Location: freeswitch_extensions.php");