diff options
author | mcrane <mctch@yahoo.com> | 2009-05-13 12:25:35 -0600 |
---|---|---|
committer | mcrane <mctch@yahoo.com> | 2009-05-13 13:04:45 -0600 |
commit | 4d34902d09109f13bc95ee05066fda2b4501a935 (patch) | |
tree | 05a363ec69cac98474cdd6c3e75e9618dadbaf3c /config/freeswitch/freeswitch_profiles.tmp | |
parent | 1d234ac49964955334883e42a15865528a34f648 (diff) | |
download | pfsense-packages-4d34902d09109f13bc95ee05066fda2b4501a935.tar.gz pfsense-packages-4d34902d09109f13bc95ee05066fda2b4501a935.tar.bz2 pfsense-packages-4d34902d09109f13bc95ee05066fda2b4501a935.zip |
FreeSWITCH create lan sip profile during install, update dialplan, public, and var textareas, add set to default to the textareas, make the tab menu dynamic so it can be modified from one file rather than having to modify all php files.
Diffstat (limited to 'config/freeswitch/freeswitch_profiles.tmp')
-rw-r--r-- | config/freeswitch/freeswitch_profiles.tmp | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/config/freeswitch/freeswitch_profiles.tmp b/config/freeswitch/freeswitch_profiles.tmp index da57b249..9bcbd48d 100644 --- a/config/freeswitch/freeswitch_profiles.tmp +++ b/config/freeswitch/freeswitch_profiles.tmp @@ -1,12 +1,12 @@ <?php /* $Id$ */ /* - freeswitch_profiles.php - Copyright (C) 2008 Mark J Crane - All rights reserved. + freeswitch_profiles.php + Copyright (C) 2008 Mark J Crane + All rights reserved. - FreeSWITCH (TM) - http://www.freeswitch.org/ + FreeSWITCH (TM) + http://www.freeswitch.org/ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -60,6 +60,13 @@ function ListFiles($dir) { } +if ($_GET['a'] == "default") { + conf_mount_rw(); + exec("cp /usr/local/freeswitch/conf.orig/sip_profiles/".$_GET['f']." /usr/local/freeswitch/conf/sip_profiles/".$_GET['f']); + $savemsg = $_POST['f'].": Set as Default"; + conf_mount_ro(); +} + if ($_POST['a'] == "save") { conf_mount_rw(); $content = ereg_replace("\r","",$_POST['code']); |