aboutsummaryrefslogtreecommitdiffstats
path: root/config/freeswitch/freeswitch_gateways.tmp
diff options
context:
space:
mode:
authormcrane <mctch@yahoo.com>2009-05-14 23:47:20 -0600
committermcrane <mctch@yahoo.com>2009-05-14 23:48:34 -0600
commit0e432ea1d03bc9e0093498d887a03ac89f3e6baa (patch)
treec521558c071334afe5e9ec20af4a65d9d61edac2 /config/freeswitch/freeswitch_gateways.tmp
parentc78b004d166bb8ead6c1d9e5984f55f0fd97f866 (diff)
downloadpfsense-packages-0e432ea1d03bc9e0093498d887a03ac89f3e6baa.tar.gz
pfsense-packages-0e432ea1d03bc9e0093498d887a03ac89f3e6baa.tar.bz2
pfsense-packages-0e432ea1d03bc9e0093498d887a03ac89f3e6baa.zip
FreeSWITCH package make sure xml config file are deleted when they are deleted in the GUI
Diffstat (limited to 'config/freeswitch/freeswitch_gateways.tmp')
-rw-r--r--config/freeswitch/freeswitch_gateways.tmp5
1 files changed, 3 insertions, 2 deletions
diff --git a/config/freeswitch/freeswitch_gateways.tmp b/config/freeswitch/freeswitch_gateways.tmp
index 66b30bda..279be301 100644
--- a/config/freeswitch/freeswitch_gateways.tmp
+++ b/config/freeswitch/freeswitch_gateways.tmp
@@ -38,7 +38,8 @@ $a_gateways = &$config['installedpackages']['freeswitchgateways']['config'];
if ($_GET['act'] == "del") {
if ($_GET['type'] == 'gateways') {
- if ($a_gateways[$_GET['id']]) {
+ if ($a_gateways[$_GET['id']]) {
+ unlink("/usr/local/freeswitch/conf/sip_profiles/external/".$_GET['gateway'].".xml");
unset($a_gateways[$_GET['id']]);
write_config();
header("Location: freeswitch_gateways.php");
@@ -154,7 +155,7 @@ if ($config_change == 1) {
<table border="0" cellspacing="0" cellpadding="1">
<tr>
<td valign="middle"><a href="freeswitch_gateways_edit.php?id=<?=$ent['id'];?>"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" width="17" height="17" border="0"></a></td>
- <td><a href="freeswitch_gateways.php?type=gateways&act=del&id=<?=$ent['id'];?>" onclick="return confirm('Do you really want to delete this?')"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0"></a></td>
+ <td><a href="freeswitch_gateways.php?type=gateways&act=del&id=<?=$ent['id'];?>&gateway=<?=$ent['gateway'];?>" onclick="return confirm('Do you really want to delete this?')"><img src="/themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0"></a></td>
</tr>
</table>
</td>