diff options
author | mcrane <mctch@yahoo.com> | 2009-07-04 04:24:59 -0600 |
---|---|---|
committer | mcrane <mctch@yahoo.com> | 2009-07-04 04:27:39 -0600 |
commit | d9f07bd4d5b9c5d69176d7badb07c8310ed38ddf (patch) | |
tree | 7cf0bd0e93486357a7c574bd6c8fb25d3412acc8 /config/freeswitch/freeswitch_gateways.tmp | |
parent | 578fda76bb2566d8cf9deeaee3569a35da6ba63e (diff) | |
download | pfsense-packages-d9f07bd4d5b9c5d69176d7badb07c8310ed38ddf.tar.gz pfsense-packages-d9f07bd4d5b9c5d69176d7badb07c8310ed38ddf.tar.bz2 pfsense-packages-d9f07bd4d5b9c5d69176d7badb07c8310ed38ddf.zip |
FreeSWITCH package add ping parameter to advanced gateway options helps keep connections alive behind NAT, fix warning message when a gateway is disabled and later deleted, add effective_caller_id_name, effective_caller_id_number, outbound_caller_id_name, outbound_caller_id_number to the gateway
Diffstat (limited to 'config/freeswitch/freeswitch_gateways.tmp')
-rw-r--r-- | config/freeswitch/freeswitch_gateways.tmp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/config/freeswitch/freeswitch_gateways.tmp b/config/freeswitch/freeswitch_gateways.tmp index 279be301..16d933fd 100644 --- a/config/freeswitch/freeswitch_gateways.tmp +++ b/config/freeswitch/freeswitch_gateways.tmp @@ -38,8 +38,11 @@ $a_gateways = &$config['installedpackages']['freeswitchgateways']['config']; if ($_GET['act'] == "del") { if ($_GET['type'] == 'gateways') { - if ($a_gateways[$_GET['id']]) { - unlink("/usr/local/freeswitch/conf/sip_profiles/external/".$_GET['gateway'].".xml"); + if ($a_gateways[$_GET['id']]) { + $tmp_file_name = "/usr/local/freeswitch/conf/sip_profiles/external/".$_GET['gateway'].".xml"; + if (file_exists($tmp_file_name)) { + unlink($tmp_file_name); + } unset($a_gateways[$_GET['id']]); write_config(); header("Location: freeswitch_gateways.php"); |