예제 #1
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();
}
예제 #2
0
require_once "includes/checkauth.php";
if (ifgroup("admin") || ifgroup("superadmin")) {
    //access granted
} else {
    echo "access denied";
    exit;
}
if (count($_GET) > 0) {
    $id = $_GET["id"];
}
if (strlen($id) > 0) {
    $sql = "";
    $sql .= "delete from v_extensions ";
    $sql .= "where v_id = '{$v_id}' ";
    $sql .= "and extension_id = '{$id}' ";
    $prepstatement = $db->prepare(check_sql($sql));
    $prepstatement->execute();
    unset($sql);
    //syncrhonize configuration
    sync_package_v_extensions();
}
require_once "includes/header.php";
echo "<meta http-equiv=\"refresh\" content=\"2;url=v_extensions.php\">\n";
echo "<div align='center'>\n";
echo "Delete Complete\n";
echo "</div>\n";
require_once "includes/footer.php";
return;
?>