0) { $huntgroupent['huntgroupid'] = $_POST['huntgroupid']; } else { $huntgroupent['huntgroupid'] = guid(); } $huntgroupent['huntgroupextension'] = $_POST['huntgroupextension']; $huntgroupent['huntgroupname'] = $_POST['huntgroupname']; $huntgroupent['huntgrouptype'] = $_POST['huntgrouptype']; $huntgroupent['huntgroupcontext'] = $_POST['huntgroupcontext']; $huntgroupent['huntgrouptimeout'] = $_POST['huntgrouptimeout']; $huntgroupent['huntgrouptimeoutdestination'] = $_POST['huntgrouptimeoutdestination']; $huntgroupent['huntgrouptimeouttype'] = $_POST['huntgrouptimeouttype']; $huntgroupent['huntgroupringback'] = $_POST['huntgroupringback']; $huntgroupent['huntgroupcidnameprefix'] = $_POST['huntgroupcidnameprefix']; $huntgroupent['huntgrouppin'] = $_POST['huntgrouppin']; $huntgroupent['huntgroupcallerannounce'] = $_POST['huntgroupcallerannounce']; $huntgroupent['huntgroupdescr'] = $_POST['huntgroupdescr']; if (isset($id) && $a_hunt_group[$id]) { //update $a_hunt_group[$id] = $huntgroupent; } else { //add $a_hunt_group[] = $huntgroupent; } //touch($d_hostsdirty_path); write_config(); sync_package_v_hunt_group(); header("Location: v_hunt_group.php"); exit; } } include("head.inc"); ?> $v_project_label: Hunt Group: Edit

\n"; if ($input_errors) print_input_errors($input_errors); ?>

General Settings:
Hunt Group general settings.


Extension
e.g. 7002
Hunt Group Name
Type \n"; echo " \n"; if (htmlspecialchars($pconfig['huntgrouptype']) == "simultaneous") { echo " \n"; } else { echo " \n"; } if (htmlspecialchars($pconfig['huntgrouptype']) == "sequentially") { echo " \n"; } else { echo " \n"; } echo " \n"; ?>
Context
e.g. default
Timeout
The timeout sets the time in seconds to continue to call before timing out.
Timeout Type \n"; echo " \n"; if (htmlspecialchars($pconfig['huntgrouptimeouttype']) == "extension") { echo " \n"; } else { echo " \n"; } if (htmlspecialchars($pconfig['huntgrouptimeouttype']) == "voicemail") { echo " \n"; } else { echo " \n"; } if (htmlspecialchars($pconfig['huntgrouptimeouttype']) == "sip uri") { echo " \n"; } else { echo " \n"; } echo " \n"; ?>
Timeout Destination
Destination
e.g. 1001
Ring Back \n"; echo " \n"; if (htmlspecialchars($pconfig['huntgroupringback']) == "ring") { echo " \n"; } else { echo " \n"; } if (htmlspecialchars($pconfig['huntgroupringback']) == "music") { echo " \n"; } else { echo " \n"; } echo " \n"; ?>
Defines what the caller will hear while destination is being called. The choices are music (music on hold) ring (ring tone.) default: music
CID Prefix
Set a prefix on the caller ID name. (optional)
PIN
If this is provided then the caller will be required to enter the PIN number. (optional)
Caller Announce \n"; echo " \n"; if (htmlspecialchars($pconfig['huntgroupcallerannounce']) == "true") { echo " \n"; } else { echo " \n"; } if (htmlspecialchars($pconfig['huntgroupcallerannounce']) == "false") { echo " \n"; } else { echo " \n"; } echo " \n"; ?>
Description
You may enter a description here for your reference (not parsed).
 


"; //print_r ($a_hunt_group); //echo ""; //if ($savemsg) print_info_box($savemsg); //if (file_exists($d_hostsdirty_path)): echo"

"; //print_info_box_np("The FreeSWITCH recordings have been changed.
You must apply the changes in order for them to take effect."); //echo"
"; //endif; ?>

Destinations
The following destinations will be called.


0) { foreach ($a_hunt_group_destinations as $ent) { $a_hunt_group_destinations[$i]['id'] = $i; $i++; } } //order the array function cmp_number($a, $b) { if ($a["destinationorder"] > $b["destinationorder"]) { return 1; } else { return 0; } } if (count($a_hunt_group_destinations) > 0) { usort($a_hunt_group_destinations, "cmp_number"); } $i = 0; if (count($a_hunt_group_destinations) > 0) { foreach ($a_hunt_group_destinations as $ent) { if ($huntgroupid == $ent['huntgroupid']) { ?>
Destination Type Profile Order Description
1) { ?>
        1) { echo "\n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo "
\n"; } ?>
1) { ?>