diff options
author | mcrane <mctch@yahoo.com> | 2009-05-31 02:32:26 -0600 |
---|---|---|
committer | mcrane <mctch@yahoo.com> | 2009-05-31 02:32:26 -0600 |
commit | f05d9e652f80e52a8ce5988ac4231916c664bd4c (patch) | |
tree | e0f04d15059fe112ec68fb1ae1562ac672b783cd /config/freeswitch/freeswitch_ivr_options_edit.tmp | |
parent | cf8abc2e725f42eb6176de1da77d5a03766fee6e (diff) | |
download | pfsense-packages-f05d9e652f80e52a8ce5988ac4231916c664bd4c.tar.gz pfsense-packages-f05d9e652f80e52a8ce5988ac4231916c664bd4c.tar.bz2 pfsense-packages-f05d9e652f80e52a8ce5988ac4231916c664bd4c.zip |
FreeSWITCH add order field for dialplan and public options, IVR add profile and sip uri, copy libspandsp.so.1 to libspandsp.so.2 so mod_fax will start, fix editarea path so the textarea tool will work.
Diffstat (limited to 'config/freeswitch/freeswitch_ivr_options_edit.tmp')
-rw-r--r-- | config/freeswitch/freeswitch_ivr_options_edit.tmp | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/config/freeswitch/freeswitch_ivr_options_edit.tmp b/config/freeswitch/freeswitch_ivr_options_edit.tmp index 1e3313d0..1a7af9d5 100644 --- a/config/freeswitch/freeswitch_ivr_options_edit.tmp +++ b/config/freeswitch/freeswitch_ivr_options_edit.tmp @@ -57,6 +57,7 @@ if (isset($id) && $a_ivr_options[$id]) { $pconfig['optionaction'] = $a_ivr_options[$id]['optionaction']; $pconfig['optionnumber'] = $a_ivr_options[$id]['optionnumber']; $pconfig['optiontype'] = $a_ivr_options[$id]['optiontype']; + $pconfig['optionprofile'] = $a_ivr_options[$id]['optionprofile']; $pconfig['optiondest'] = $a_ivr_options[$id]['optiondest']; $pconfig['optiondescr'] = $a_ivr_options[$id]['optiondescr']; } @@ -80,6 +81,7 @@ if ($_POST) { $ivroptionent['ivrid'] = $_POST['ivrid']; $ivroptionent['optionnumber'] = $_POST['optionnumber']; $ivroptionent['optiontype'] = $_POST['optiontype']; + $ivroptionent['optionprofile'] = $_POST['optionprofile']; $ivroptionent['optionaction'] = $_POST['optionaction']; $ivroptionent['optiondest'] = $_POST['optiondest']; $ivroptionent['optiondescr'] = $_POST['optiondescr']; @@ -124,7 +126,7 @@ display_top_tabs(build_menu()); <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td class="tabcont" > - + <br /> <form action="freeswitch_ivr_options_edit.php" method="post" name="iform" id="iform"> <table width="100%" border="0" cellpadding="6" cellspacing="0"> <tr> @@ -152,10 +154,40 @@ display_top_tabs(build_menu()); else { echo " <option>voicemail</option>\n"; } + if (htmlspecialchars($pconfig['huntgrouptimeouttype']) == "sip uri") { + echo " <option selected='yes'>sip uri</option>\n"; + } + else { + echo " <option>sip uri</option>\n"; + } echo " </select>\n"; ?> </td> </tr> + + <tr> + <td width="22%" valign="top" class="vncellreq">Profile</td> + <td width="78%" class="vtable"> + <?php + echo " <select name='optionprofile' class='formfld'>\n"; + echo " <option></option>\n"; + + foreach (ListFiles('/usr/local/freeswitch/conf/sip_profiles') as $key=>$sip_profile_file){ + $sip_profile_name = str_replace(".xml", "", $sip_profile_file); + + if (htmlspecialchars($pconfig['optionprofile']) == $sip_profile_name) { + echo " <option selected='yes'>$sip_profile_name</option>\n"; + } + else { + echo " <option>$sip_profile_name</option>\n"; + } + } + echo " </select>\n"; + + ?> + </td> + </tr> + <tr> <td width="22%" valign="top" class="vncellreq">Destination</td> <td width="78%" class="vtable"> |