CREATE TABLE VoIPQuickQueue__Calls
(
    id BIGINT UNSIGNED DEFAULT NULL,
    SIPCallId VARCHAR(254) DEFAULT NULL,
    AsteriskChannelName VARCHAR(254) DEFAULT NULL,
    QueueId BIGINT UNSIGNED NOT NULL,
    ts BIGINT UNSIGNED NOT NULL,
    ExpireTs BIGINT UNSIGNED DEFAULT NULL,
    CallerName VARCHAR(15) DEFAULT NULL,
    CallerNumber VARCHAR(15) DEFAULT NULL,
    Extension BIGINT UNSIGNED DEFAULT NULL,
    ServerIP VARCHAR(15) DEFAULT NULL,
    PRIMARY KEY ( id ) AUTO_INCREMENT,
    UNIQUE KEY ( SIPCallId ),
    FOREIGN KEY ( QueueId ) REFERENCES nodes ( id) ON DELETE RESTRICT ON UPDATE RESTRICT

) ENGINE=INNODB CHARSET=UTF8 COMMENT="Calls currently waiting in the quick queue";
