diff options
author | mcrane <mctch@yahoo.com> | 2009-07-04 04:10:55 -0600 |
---|---|---|
committer | mcrane <mctch@yahoo.com> | 2009-07-04 04:27:38 -0600 |
commit | 578fda76bb2566d8cf9deeaee3569a35da6ba63e (patch) | |
tree | b23be34bb00cef283f0578888a70f0c701fd1c54 /config/freeswitch/freeswitch_extensions.tmp | |
parent | 641bf230fc57b77feaadeca70da5b3511081e84a (diff) | |
download | pfsense-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.tmp | 7 |
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"); |