|
||||
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_freeswitch_hunt_group(); header("Location: freeswitch_hunt_group.php"); exit; } } include("head.inc"); ?>
FreeSWITCH: Hunt Group: Edit
|
||||