CREATE TABLE kamailio.ChannelLimits2
(
   Node BIGINT UNSIGNED NOT NULL,
    Channel BIGINT UNSIGNED NOT NULL,
    CallId VARCHAR(255) DEFAULT NULL,
    ChannelUse VARCHAR(255) DEFAULT NULL,
    StartTs BIGINT UNSIGNED NOT NULL,
    SysName VARCHAR(250) DEFAULT NULL,
    LastUpdate TIMESTAMP NOT NULL DEFAULT "CURRENT_TIMESTAMP" ON UPDATE CURRENT_TIMESTAMP,
    Confirmed TINYINT DEFAULT 0,
    InboundOnly TINYINT DEFAULT 0,
    ats VARCHAR(25) DEFAULT NULL,
    Token CHAR(32) DEFAULT NULL,
    KEY ( CallId,SysName,ChannelUse ),
    KEY ( SysName,CallId,ChannelUse )

) ENGINE=INNODB CHARSET=UTF8 COMMENT="Channel limits version 2";
