CREATE TABLE CallQueueOriginate
(
    Queue BIGINT UNSIGNED NOT NULL,
    Agent BIGINT UNSIGNED NOT NULL,
    Timeout BIGINT UNSIGNED DEFAULT NULL COMMENT "When must we check if this entry is still valid",
    AgentChannel VARCHAR(100) DEFAULT NULL COMMENT "Channel towards the agent",
    CallerChannel VARCHAR(100) DEFAULT NULL COMMENT "Channel towards the caller",
    ServerIP VARCHAR(15) DEFAULT NULL COMMENT "IP address of the Asterisk server on which the Originate was made",
    PreviousStatus VARCHAR(255) DEFAULT NULL COMMENT "Previous status of the agent",
    SIPCallId VARCHAR(255) DEFAULT NULL COMMENT "SIP call id of the original call (from caller)",
    PRIMARY KEY ( Queue, Agent )

) ENGINE=INNODB CHARSET=UTF8;
