beowulf1416

now_session

May 15th, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.84 KB | None | 0 0
  1. CREATE TABLE `now_session` (
  2. `id` bigint(19) unsigned NOT NULL AUTO_INCREMENT,
  3. `log_call_id` bigint(20) unsigned DEFAULT NULL,
  4. `log_listen_id` bigint(20) DEFAULT NULL,
  5. `log_campaign_id` bigint(20) unsigned DEFAULT NULL,
  6. `log_campaign_siptransfer_id` bigint(20) unsigned DEFAULT NULL,
  7. `device_user_agent` varchar(128) DEFAULT NULL,
  8. `call_server_id` bigint(19) unsigned DEFAULT NULL,
  9. `call_type` enum('PHONE','WIDGET','ANDROID','IOS') DEFAULT 'PHONE',
  10. `call_date_start` datetime DEFAULT NULL,
  11. `call_asterisk_sip_ip` varchar(15) DEFAULT NULL,
  12. `call_asterisk_channel` char(64) DEFAULT NULL,
  13. `call_asterisk_uniqueid` char(64) DEFAULT NULL,
  14. `call_widget_listener_ip` char(15) DEFAULT NULL,
  15. `call_widget_refer` char(128) DEFAULT NULL,
  16. `call_ani_e164` char(32) DEFAULT NULL,
  17. `call_did_e164` char(32) DEFAULT NULL,
  18. `call_token` char(64) DEFAULT NULL,
  19. `call_listener_play_welcome` tinyint(1) DEFAULT '1',
  20. `call_listener_token_id` bigint(20) unsigned DEFAULT NULL,
  21. `call_listener_ani_id` bigint(20) unsigned DEFAULT NULL,
  22. `call_listener_id` bigint(19) unsigned DEFAULT NULL,
  23. `call_listener_is_anonymous` tinyint(1) DEFAULT NULL,
  24. `call_entryway_id` bigint(19) unsigned DEFAULT NULL,
  25. `call_gateway_id` bigint(19) unsigned DEFAULT NULL,
  26. `listen_active` tinyint(1) DEFAULT '0',
  27. `listen_date_start` datetime DEFAULT NULL,
  28. `listen_extension` char(16) DEFAULT NULL,
  29. `listen_content_id` bigint(19) unsigned DEFAULT NULL,
  30. `listen_gateway_conference_id` bigint(20) unsigned DEFAULT NULL,
  31. `listen_server_id` bigint(20) DEFAULT NULL,
  32. `listen_last_played_campaign_id` bigint(20) unsigned DEFAULT NULL,
  33. `listen_last_played_campaign_timestamp` datetime DEFAULT NULL,
  34. `listen_last_played_campaign_log_id` bigint(20) unsigned DEFAULT NULL,
  35. `listen_last_played_campaigns_interruption_timestamps` char(255) DEFAULT NULL,
  36. `listen_last_played_campaigns_interruption_ids` char(255) DEFAULT NULL,
  37. `listen_asterisk_channel` char(64) DEFAULT NULL,
  38. `listen_asterisk_uniqueid` char(64) DEFAULT NULL,
  39. `listen_interactive_handup_active` tinyint(1) DEFAULT '0',
  40. `listen_interactive_handup_active_timestamp` datetime DEFAULT NULL,
  41. `listen_interactive_handup_count` int(10) unsigned DEFAULT '0',
  42. `listen_interactive_poll_opt_1` int(10) unsigned DEFAULT '0',
  43. `listen_interactive_poll_opt_2` int(10) unsigned DEFAULT '0',
  44. `listen_interactive_poll_opt_3` int(10) unsigned DEFAULT '0',
  45. `listen_interactive_poll_lastchange` datetime DEFAULT NULL,
  46. `listen_interactive_status_talk_count` int(10) unsigned DEFAULT '0',
  47. `listen_interactive_status_privatetalk_count` int(10) unsigned DEFAULT '0',
  48. `engine_type` enum('LISTEN','TALK','PRIVATETALK','ADVERTISE','ADVERTISESIPTRANSFER','HANGUP') DEFAULT NULL,
  49. `engine_date_start` datetime DEFAULT NULL,
  50. `engine_server_id` bigint(19) unsigned DEFAULT NULL,
  51. `engine_asterisk_channel` char(64) DEFAULT NULL,
  52. `engine_asterisk_uniqueid` char(64) DEFAULT NULL,
  53. `engine_sip_call_id` varchar(255) DEFAULT NULL,
  54. `engine_advertise_trigger_type` enum('LISTENERMANUAL','LISTENERTIMEOUT','LISTENERPREROLL','LISTENERREQUEST','CONFERENCEMANUAL','CONFERENCETIMEOUT','CONFERENCEADREPLACE') DEFAULT NULL,
  55. `engine_campaign_id` bigint(20) unsigned DEFAULT NULL,
  56. `next_step_1_engine_type` enum('LISTEN','TALK','PRIVATETALK','ADVERTISE','ADVERTISESIPTRANSFER','HANGUP') DEFAULT NULL,
  57. `next_step_1_engine_advertise_trigger_type` enum('LISTENERMANUAL','LISTENERTIMEOUT','LISTENERPREROLL','LISTENERREQUEST','CONFERENCEMANUAL','CONFERENCETIMEOUT','CONFERENCEADREPLACE') DEFAULT NULL,
  58. `next_step_1_engine_campaign_id` bigint(20) unsigned DEFAULT NULL,
  59. `next_step_2_engine_type` enum('LISTEN','TALK','PRIVATETALK','ADVERTISE','ADVERTISESIPTRANSFER','HANGUP') DEFAULT NULL,
  60. `next_step_2_engine_advertise_trigger_type` enum('LISTENERMANUAL','LISTENERTIMEOUT','LISTENERPREROLL','LISTENERREQUEST','CONFERENCEMANUAL','CONFERENCETIMEOUT','CONFERENCEADREPLACE') DEFAULT NULL,
  61. `next_step_2_engine_campaign_id` bigint(20) unsigned DEFAULT NULL,
  62. `last_engine_type` enum('LISTEN','TALK','PRIVATETALK','ADVERTISE','ADVERTISESIPTRANSFER','HANGUP') DEFAULT NULL,
  63. `last_engine_advertise_trigger_type` enum('LISTENERMANUAL','LISTENERTIMEOUT','LISTENERPREROLL','LISTENERREQUEST','CONFERENCEMANUAL','CONFERENCETIMEOUT','CONFERENCEADREPLACE') DEFAULT NULL,
  64. `last_engine_campaign_id` bigint(20) unsigned DEFAULT NULL,
  65. `talk_volume_percent` int(10) DEFAULT '100',
  66. `device_has_microphone` tinyint(1) DEFAULT '0',
  67. `device_listener_ip` varchar(15) DEFAULT NULL,
  68. `device_website` varchar(128) DEFAULT NULL,
  69. `engine_mpe_id` varchar(255) DEFAULT NULL,
  70. `listen_volume_percent` int(10) DEFAULT '100',
  71. PRIMARY KEY (`id`),
  72. KEY `call_server` (`call_server_id`),
  73. KEY `date_start` (`call_date_start`),
  74. KEY `search_call_by_channel` (`call_asterisk_channel`,`call_server_id`)
  75. ) ENGINE=InnoDB DEFAULT CHARSET=utf8
Advertisement
Add Comment
Please, Sign In to add comment