找回密码
 立即注册

只需一扫,快速开始

QQ登录

只需一步,快速开始

搜索
查看: 10236|回复: 0

[教程分享] 语音通话插件的安装sql脚本

[复制链接]

8万

主题

418

回帖

9万

积分

管理员

积分
94485
QQ
发表于 2016-5-18 22:15:28 | 显示全部楼层 |阅读模式
  1. CREATE TABLE IF NOT EXISTS pre_zhanmishu_call (
  2.   `cid` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  3.   `id` varchar(20) NOT NULL,
  4.   `tid` mediumint(8) unsigned NOT NULL DEFAULT '0',
  5.   `uid` mediumint(8) unsigned NOT NULL DEFAULT '0',
  6.   `calleduid` mediumint(8) unsigned NOT NULL DEFAULT '0',
  7.   `call` varchar(20) NOT NULL,
  8.   `called` varchar(20) NOT NULL,
  9.   `request_id` varchar(20) NOT NULL,
  10.   `model` varchar(56) NOT NULL,
  11.   `iscall` tinyint(1) NOT NULL DEFAULT '0',
  12.   `issuccess` tinyint(1) NOT NULL DEFAULT '0',
  13.   `type` tinyint(1) NOT NULL DEFAULT '0',
  14.   `dateline` int(10) unsigned NOT NULL DEFAULT '0',
  15.   `code` INT(6) unsigned NOT NULL DEFAULT '0',
  16.   `nums` SMALLINT(6) unsigned NOT NULL DEFAULT '0',
  17.   `ip1` smallint(3) NOT NULL default '0',
  18.   `ip2` smallint(3) NOT NULL default '0',
  19.   `ip3` smallint(3) NOT NULL default '0',
  20.   `ip4` smallint(3) NOT NULL default '0',
  21.   `msg` varchar(80) NOT NULL DEFAULT '',
  22.   `mts` int(6) unsigned NOT NULL DEFAULT '0',
  23.   `calltime` int(6) unsigned NOT NULL DEFAULT '0',
  24.   `maxcalltime` int(6) unsigned NOT NULL DEFAULT '0',
  25.   `pricepermin` int(6) unsigned NOT NULL DEFAULT '0',
  26.   `allcredits` int(6) unsigned NOT NULL DEFAULT '0',
  27.   `calledgetcredits` int(6) unsigned NOT NULL DEFAULT '0',
  28.   `sitegetcredits` int(6) unsigned NOT NULL DEFAULT '0',
  29.   `callbackcredits` int(6) unsigned NOT NULL DEFAULT '0',
  30.   `iscallback` tinyint(1) NOT NULL DEFAULT '0',
  31.   `iscalledback` tinyint(1) NOT NULL DEFAULT '0',
  32.   `issiteget` tinyint(1) NOT NULL DEFAULT '0',
  33.   `province` varchar(20) NOT NULL DEFAULT '',
  34.   `catname` varchar(20) NOT NULL DEFAULT '',
  35.   `telstring` varchar(20) NOT NULL DEFAULT '',
  36.   `areavid` int(6) unsigned NOT NULL DEFAULT '0',
  37.   `ispvid` int(6) unsigned NOT NULL DEFAULT '0',
  38.   `carrier` varchar(20) NOT NULL DEFAULT '',
  39.   `sub_code` varchar(80) NOT NULL DEFAULT '',
  40.   `err_code` varchar(80) NOT NULL DEFAULT '',
  41.   `sub_msg` varchar(80) NOT NULL DEFAULT '',
  42.   PRIMARY KEY (cid),
  43.   KEY uid (uid),
  44.   KEY calleduid (calleduid),
  45.   KEY type (type),
  46.   KEY id (id),
  47.   KEY called (called),
  48.   KEY `call` (`call`),
  49.   KEY mts (mts),
  50.   KEY province (province),
  51.   KEY allcredits (allcredits),
  52.   KEY calledgetcredits (calledgetcredits),
  53.   KEY callbackcredits (callbackcredits),
  54.   KEY pricepermin (pricepermin),
  55.   KEY calltime (calltime),
  56.   KEY catname (catname),
  57.   KEY areavid (areavid),
  58.   KEY telstring (telstring),
  59.   KEY request_id (request_id),
  60.   KEY carrier (carrier),
  61.   KEY code (code),
  62.   KEY nums (nums),
  63.   KEY sub_code (sub_code),
  64.   KEY iscall (iscall),
  65.   KEY issuccess (issuccess),
  66.   KEY dateline (dateline),
  67.   KEY ip1 (ip1),
  68.   KEY ip2 (ip2),
  69.   KEY ip3 (ip3),
  70.   KEY ip4 (ip4)
  71. );
  72. CREATE TABLE IF NOT EXISTS pre_zhanmishu_called (
  73.   `biz_id` varchar(56)  NOT NULL,
  74.   `id` varchar(20) NOT NULL,
  75.   `duration` int(6) unsigned NOT NULL DEFAULT '0',
  76.   `dtmf` varchar(56) NOT NULL,
  77.   `extend` varchar(56) NOT NULL,
  78.   `isconfirm` tinyint(1) NOT NULL DEFAULT '0',
  79.   `end_time` timestamp NOT NULL default CURRENT_TIMESTAMP,
  80.   `start_time` timestamp NOT NULL default CURRENT_TIMESTAMP,
  81.   `pub_time` timestamp NOT NULL default CURRENT_TIMESTAMP,
  82.   `status_code` varchar(25) NOT NULL DEFAULT '',
  83.   `status_msg` varchar(80) NOT NULL DEFAULT '',
  84.   PRIMARY KEY (biz_id),
  85.   KEY dtmf (dtmf),
  86.   KEY duration (duration),
  87.   KEY id (id),
  88.   KEY extend (extend),
  89.   KEY isconfirm (isconfirm),
  90.   KEY end_time (end_time),
  91.   KEY start_time (start_time),
  92.   KEY status_code (status_code)
  93. );

  94. INSERT INTO `pre_common_cron` (`available`, `type`, `name`, `filename`, `lastrun`, `nextrun`, `weekday`, `day`, `hour`, `minute`) VALUES ('1', 'user', 'zhanmishu_tel', 'zhanmishu_tel:cron_zhanmishu_tel_called.php', '1463479243', '1463479380', '-1', '-1', '-1', '3,5,9,11,21,31,37,41,44,51,59');
复制代码


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册   

本版积分规则

QQ|Archiver|手机版|小黑屋|站秘书 ( 蜀ICP备15034504号-3 )

GMT+8, 2024-11-22 06:29 , Processed in 0.244609 second(s), 50 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表