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['huntgroupcidnameprefix'] = $_POST['huntgroupcidnameprefix']; $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_freeswitch_hunt_group(); header("Location: freeswitch_hunt_group.php"); exit; } } include("head.inc"); ?>

FreeSWITCH: Hunt Group: Edit

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 Destination
Destination
e.g. 1001
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"; ?>
CID Prefix
Set a prefix on the caller ID name. (optional)
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