unset($voicemail);
        header("Location: voicemail_edit.php?id=" . $voicemail_uuid);
    }
    exit;
}
//get the html values and set them as variables
$order_by = check_str($_GET["order_by"]);
$order = check_str($_GET["order"]);
//get the voicemail
$vm = new voicemail();
$vm->db = $db;
$vm->domain_uuid = $_SESSION['domain_uuid'];
$vm->voicemail_uuid = $voicemail_uuid;
$vm->order_by = $order_by;
$vm->order = $order;
$voicemails = $vm->messages();
//additional includes
$document['title'] = $text['title-voicemail_messages'];
require_once "resources/header.php";
require_once "resources/paging.php";
//show the content
echo "<b>" . $text['title-voicemail_messages'] . "</b>";
echo "<br><br>";
echo $text['description-voicemail_message'];
echo "<br><br>";
$c = 0;
$row_style["0"] = "row_style0";
$row_style["1"] = "row_style1";
$row_style["2"] = "row_style2";
//loop through the voicemail messages
if (count($voicemails) > 0) {