diff options
author | mcrane <mctch@yahoo.com> | 2009-05-28 21:10:10 -0600 |
---|---|---|
committer | mcrane <mctch@yahoo.com> | 2009-05-28 21:10:10 -0600 |
commit | cf8abc2e725f42eb6176de1da77d5a03766fee6e (patch) | |
tree | 3f4b46236747546f92b479c637d66b27ba66bc44 /config/freeswitch/freeswitch_hunt_group_destinations_edit.tmp | |
parent | 23e1ab04471d14367023a7a11b08920b6a40b0b6 (diff) | |
download | pfsense-packages-cf8abc2e725f42eb6176de1da77d5a03766fee6e.tar.gz pfsense-packages-cf8abc2e725f42eb6176de1da77d5a03766fee6e.tar.bz2 pfsense-packages-cf8abc2e725f42eb6176de1da77d5a03766fee6e.zip |
FreeSWITCH package add profile selection to hunt group dest, ivr watch for up to 5 digits instead of 4
Diffstat (limited to 'config/freeswitch/freeswitch_hunt_group_destinations_edit.tmp')
-rw-r--r-- | config/freeswitch/freeswitch_hunt_group_destinations_edit.tmp | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/config/freeswitch/freeswitch_hunt_group_destinations_edit.tmp b/config/freeswitch/freeswitch_hunt_group_destinations_edit.tmp index bd7f446b..1188438c 100644 --- a/config/freeswitch/freeswitch_hunt_group_destinations_edit.tmp +++ b/config/freeswitch/freeswitch_hunt_group_destinations_edit.tmp @@ -57,6 +57,7 @@ if (isset($_POST['huntgroupid'])) { if (isset($id) && $a_hunt_group_destinations[$id]) { $pconfig['destinationnumber'] = $a_hunt_group_destinations[$id]['destinationnumber']; $pconfig['destinationtype'] = $a_hunt_group_destinations[$id]['destinationtype']; + $pconfig['destinationprofile'] = $a_hunt_group_destinations[$id]['destinationprofile']; $pconfig['destinationorder'] = $a_hunt_group_destinations[$id]['destinationorder']; $pconfig['destinationdescr'] = $a_hunt_group_destinations[$id]['destinationdescr']; } @@ -80,6 +81,7 @@ if ($_POST) { $huntgroupdestinationent['huntgroupid'] = $_POST['huntgroupid']; $huntgroupdestinationent['destinationnumber'] = $_POST['destinationnumber']; $huntgroupdestinationent['destinationtype'] = $_POST['destinationtype']; + $huntgroupdestinationent['destinationprofile'] = $_POST['destinationprofile']; $huntgroupdestinationent['destinationorder'] = $_POST['destinationorder']; $huntgroupdestinationent['destinationdescr'] = $_POST['destinationdescr']; @@ -160,7 +162,32 @@ display_top_tabs(build_menu()); echo " </select>\n"; ?> </td> - </tr> + </tr> + + <tr> + <td width="22%" valign="top" class="vncellreq">Profile</td> + <td width="78%" class="vtable"> + <?php + echo " <select name='destinationprofile' 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['destinationprofile']) == $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="vncell">Order</td> <td width="78%" class="vtable"> |