$sql .= "where v_id = '{$v_id}' ";
    $sql .= "and dialplan_include_id = '{$dialplan_include_id}' ";
    //echo "sql fifo: ".$sql."<br />\n";
    $db->query($sql);
    unset($sql);
    $sql = "";
    $sql = "delete from v_dialplan_includes ";
    $sql .= "where v_id = '{$v_id}' ";
    $sql .= "and opt1name = 'hunt_group_id' ";
    $sql .= "and opt1value = '{$id}' ";
    $sql .= "or v_id = '{$v_id}' ";
    $sql .= "and opt1name = 'hunt_group_id_fifo' ";
    $sql .= "and opt1value = '{$id}' ";
    //echo "sql: ".$sql."<br />\n";
    $db->query($sql);
    unset($sql);
    //synchronize the xml config
    sync_package_v_hunt_group();
    //synchronize the xml config
    sync_package_v_dialplan_includes();
}
require_once "includes/header.php";
echo "<meta http-equiv=\"refresh\" content=\"2;url=v_hunt_group.php\">\n";
echo "<div align='center'>\n";
echo "Delete Complete\n";
echo "</div>\n";
require_once "includes/footer.php";
return;
?>

示例#2
0
function sync_package_freeswitch()
{
    global $config;
    sync_package_v_settings();
    sync_package_v_dialplan();
    sync_package_v_dialplan_includes();
    sync_package_v_extensions();
    sync_package_v_gateways();
    sync_package_v_modules();
    sync_package_v_public();
    sync_package_v_public_includes();
    sync_package_v_vars();
    sync_package_v_internal();
    sync_package_v_external();
    //sync_package_v_recordings();
    if (pkg_is_service_running('freeswitch')) {
        sync_package_v_auto_attendant();
    }
    sync_package_v_hunt_group();
}