$sql .= "aatimeout = '{$aatimeout}', ";
            $sql .= "aacalltimeout = '{$aacalltimeout}', ";
            $sql .= "aacontext = '{$aacontext}', ";
            $sql .= "aadirectdial = '{$aadirectdial}', ";
            $sql .= "aaringback = '{$aaringback}', ";
            $sql .= "aacidnameprefix = '{$aacidnameprefix}', ";
            $sql .= "aaconditionjs = '{$aaconditionjs}', ";
            $sql .= "aadescr = '{$aadescr}' ";
            $sql .= "where v_id = {$v_id} ";
            $sql .= "and auto_attendant_id = '{$auto_attendant_id}'";
            $db->exec(check_sql($sql));
            unset($sql);
            //synchronize the xml config
            sync_package_v_auto_attendant();
            //synchronize the xml config
            sync_package_v_dialplan_includes();
            require_once "includes/header.php";
            echo "<meta http-equiv=\"refresh\" content=\"2;url=v_auto_attendant.php\">\n";
            echo "<div align='center'>\n";
            echo "Update Complete\n";
            echo "</div>\n";
            require_once "includes/footer.php";
            return;
        }
        //if ($action == "update")
    }
    //if ($_POST["persistformvar"] != "true") {
}
//(count($_POST)>0 && strlen($_POST["persistformvar"]) == 0)
//set default $aaconditionjs
$aaconditionjs_default = "function isholiday( Month, Date ) {\n";
Beispiel #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();
}