Advertisement
apenk

OpensipsDB

Apr 10th, 2012
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 44.71 KB | None | 0 0
  1. -- MySQL dump 10.13 Distrib 5.1.49, for debian-linux-gnu (i486)
  2. --
  3. -- Host: localhost Database: opensips
  4. -- ------------------------------------------------------
  5. -- Server version 5.1.49-3
  6.  
  7. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  8. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  9. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  10. /*!40101 SET NAMES utf8 */;
  11. /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
  12. /*!40103 SET TIME_ZONE='+00:00' */;
  13. /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  14. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  15. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  16. /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  17.  
  18. --
  19. -- Table structure for table `acc`
  20. --
  21.  
  22. DROP TABLE IF EXISTS `acc`;
  23. /*!40101 SET @saved_cs_client = @@character_set_client */;
  24. /*!40101 SET character_set_client = utf8 */;
  25. CREATE TABLE `acc` (
  26. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  27. `method` char(16) NOT NULL DEFAULT '',
  28. `from_tag` char(64) NOT NULL DEFAULT '',
  29. `to_tag` char(64) NOT NULL DEFAULT '',
  30. `callid` char(64) NOT NULL DEFAULT '',
  31. `sip_code` char(3) NOT NULL DEFAULT '',
  32. `sip_reason` char(32) NOT NULL DEFAULT '',
  33. `time` datetime NOT NULL,
  34. PRIMARY KEY (`id`),
  35. KEY `callid_idx` (`callid`)
  36. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  37. /*!40101 SET character_set_client = @saved_cs_client */;
  38.  
  39. --
  40. -- Dumping data for table `acc`
  41. --
  42.  
  43. LOCK TABLES `acc` WRITE;
  44. /*!40000 ALTER TABLE `acc` DISABLE KEYS */;
  45. /*!40000 ALTER TABLE `acc` ENABLE KEYS */;
  46. UNLOCK TABLES;
  47.  
  48. --
  49. -- Table structure for table `active_watchers`
  50. --
  51.  
  52. DROP TABLE IF EXISTS `active_watchers`;
  53. /*!40101 SET @saved_cs_client = @@character_set_client */;
  54. /*!40101 SET character_set_client = utf8 */;
  55. CREATE TABLE `active_watchers` (
  56. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  57. `presentity_uri` char(128) NOT NULL,
  58. `watcher_username` char(64) NOT NULL,
  59. `watcher_domain` char(64) NOT NULL,
  60. `to_user` char(64) NOT NULL,
  61. `to_domain` char(64) NOT NULL,
  62. `event` char(64) NOT NULL DEFAULT 'presence',
  63. `event_id` char(64) DEFAULT NULL,
  64. `to_tag` char(64) NOT NULL,
  65. `from_tag` char(64) NOT NULL,
  66. `callid` char(64) NOT NULL,
  67. `local_cseq` int(11) NOT NULL,
  68. `remote_cseq` int(11) NOT NULL,
  69. `contact` char(128) NOT NULL,
  70. `record_route` text,
  71. `expires` int(11) NOT NULL,
  72. `status` int(11) NOT NULL DEFAULT '2',
  73. `reason` char(64) NOT NULL,
  74. `version` int(11) NOT NULL DEFAULT '0',
  75. `socket_info` char(64) NOT NULL,
  76. `local_contact` char(128) NOT NULL,
  77. PRIMARY KEY (`id`),
  78. UNIQUE KEY `active_watchers_idx` (`presentity_uri`,`callid`,`to_tag`,`from_tag`)
  79. ) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
  80. /*!40101 SET character_set_client = @saved_cs_client */;
  81.  
  82. --
  83. -- Dumping data for table `active_watchers`
  84. --
  85.  
  86. LOCK TABLES `active_watchers` WRITE;
  87. /*!40000 ALTER TABLE `active_watchers` DISABLE KEYS */;
  88. INSERT INTO `active_watchers` VALUES (4,'sip:kliensip3@apenksips.com','kliensip3','apenksips.com','kliensip3','apenksips.com','presence.winfo','','233b1bc6af3821ad79e1194f1e7de761-149f','a7345529','d96d4195122ae39c68eb4fe0f249c31b@0:0:0:0:0:0:0:0',1,2,'sip:kliensip3@192.168.26.1:5060;transport=udp;registering_acc=apenksips_com','',1334034943,1,'',1,'udp:192.168.26.5:5060','sip:192.168.26.5:5090');
  89. /*!40000 ALTER TABLE `active_watchers` ENABLE KEYS */;
  90. UNLOCK TABLES;
  91.  
  92. --
  93. -- Table structure for table `address`
  94. --
  95.  
  96. DROP TABLE IF EXISTS `address`;
  97. /*!40101 SET @saved_cs_client = @@character_set_client */;
  98. /*!40101 SET character_set_client = utf8 */;
  99. CREATE TABLE `address` (
  100. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  101. `grp` smallint(5) unsigned NOT NULL DEFAULT '0',
  102. `ip` char(50) NOT NULL,
  103. `mask` tinyint(4) NOT NULL DEFAULT '32',
  104. `port` smallint(5) unsigned NOT NULL DEFAULT '0',
  105. `proto` char(4) NOT NULL DEFAULT 'any',
  106. `pattern` char(64) DEFAULT NULL,
  107. `context_info` char(32) DEFAULT NULL,
  108. PRIMARY KEY (`id`)
  109. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  110. /*!40101 SET character_set_client = @saved_cs_client */;
  111.  
  112. --
  113. -- Dumping data for table `address`
  114. --
  115.  
  116. LOCK TABLES `address` WRITE;
  117. /*!40000 ALTER TABLE `address` DISABLE KEYS */;
  118. /*!40000 ALTER TABLE `address` ENABLE KEYS */;
  119. UNLOCK TABLES;
  120.  
  121. --
  122. -- Table structure for table `aliases`
  123. --
  124.  
  125. DROP TABLE IF EXISTS `aliases`;
  126. /*!40101 SET @saved_cs_client = @@character_set_client */;
  127. /*!40101 SET character_set_client = utf8 */;
  128. CREATE TABLE `aliases` (
  129. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  130. `username` char(64) NOT NULL DEFAULT '',
  131. `domain` char(64) DEFAULT NULL,
  132. `contact` char(255) NOT NULL DEFAULT '',
  133. `received` char(128) DEFAULT NULL,
  134. `path` char(128) DEFAULT NULL,
  135. `expires` datetime NOT NULL DEFAULT '2020-05-28 21:32:15',
  136. `q` float(10,2) NOT NULL DEFAULT '1.00',
  137. `callid` char(255) NOT NULL DEFAULT 'Default-Call-ID',
  138. `cseq` int(11) NOT NULL DEFAULT '13',
  139. `last_modified` datetime NOT NULL DEFAULT '1900-01-01 00:00:01',
  140. `flags` int(11) NOT NULL DEFAULT '0',
  141. `cflags` int(11) NOT NULL DEFAULT '0',
  142. `user_agent` char(255) NOT NULL DEFAULT '',
  143. `socket` char(64) DEFAULT NULL,
  144. `methods` int(11) DEFAULT NULL,
  145. PRIMARY KEY (`id`),
  146. KEY `alias_idx` (`username`,`domain`,`contact`)
  147. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  148. /*!40101 SET character_set_client = @saved_cs_client */;
  149.  
  150. --
  151. -- Dumping data for table `aliases`
  152. --
  153.  
  154. LOCK TABLES `aliases` WRITE;
  155. /*!40000 ALTER TABLE `aliases` DISABLE KEYS */;
  156. /*!40000 ALTER TABLE `aliases` ENABLE KEYS */;
  157. UNLOCK TABLES;
  158.  
  159. --
  160. -- Table structure for table `carrierfailureroute`
  161. --
  162.  
  163. DROP TABLE IF EXISTS `carrierfailureroute`;
  164. /*!40101 SET @saved_cs_client = @@character_set_client */;
  165. /*!40101 SET character_set_client = utf8 */;
  166. CREATE TABLE `carrierfailureroute` (
  167. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  168. `carrier` int(10) unsigned NOT NULL DEFAULT '0',
  169. `domain` char(64) NOT NULL DEFAULT '',
  170. `scan_prefix` char(64) NOT NULL DEFAULT '',
  171. `host_name` char(128) NOT NULL DEFAULT '',
  172. `reply_code` char(3) NOT NULL DEFAULT '',
  173. `flags` int(11) unsigned NOT NULL DEFAULT '0',
  174. `mask` int(11) unsigned NOT NULL DEFAULT '0',
  175. `next_domain` char(64) NOT NULL DEFAULT '',
  176. `description` char(255) DEFAULT NULL,
  177. PRIMARY KEY (`id`)
  178. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  179. /*!40101 SET character_set_client = @saved_cs_client */;
  180.  
  181. --
  182. -- Dumping data for table `carrierfailureroute`
  183. --
  184.  
  185. LOCK TABLES `carrierfailureroute` WRITE;
  186. /*!40000 ALTER TABLE `carrierfailureroute` DISABLE KEYS */;
  187. /*!40000 ALTER TABLE `carrierfailureroute` ENABLE KEYS */;
  188. UNLOCK TABLES;
  189.  
  190. --
  191. -- Table structure for table `carrierroute`
  192. --
  193.  
  194. DROP TABLE IF EXISTS `carrierroute`;
  195. /*!40101 SET @saved_cs_client = @@character_set_client */;
  196. /*!40101 SET character_set_client = utf8 */;
  197. CREATE TABLE `carrierroute` (
  198. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  199. `carrier` int(10) unsigned NOT NULL DEFAULT '0',
  200. `domain` char(64) NOT NULL DEFAULT '',
  201. `scan_prefix` char(64) NOT NULL DEFAULT '',
  202. `flags` int(11) unsigned NOT NULL DEFAULT '0',
  203. `mask` int(11) unsigned NOT NULL DEFAULT '0',
  204. `prob` float NOT NULL DEFAULT '0',
  205. `strip` int(11) unsigned NOT NULL DEFAULT '0',
  206. `rewrite_host` char(128) NOT NULL DEFAULT '',
  207. `rewrite_prefix` char(64) NOT NULL DEFAULT '',
  208. `rewrite_suffix` char(64) NOT NULL DEFAULT '',
  209. `description` char(255) DEFAULT NULL,
  210. PRIMARY KEY (`id`)
  211. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  212. /*!40101 SET character_set_client = @saved_cs_client */;
  213.  
  214. --
  215. -- Dumping data for table `carrierroute`
  216. --
  217.  
  218. LOCK TABLES `carrierroute` WRITE;
  219. /*!40000 ALTER TABLE `carrierroute` DISABLE KEYS */;
  220. /*!40000 ALTER TABLE `carrierroute` ENABLE KEYS */;
  221. UNLOCK TABLES;
  222.  
  223. --
  224. -- Table structure for table `cpl`
  225. --
  226.  
  227. DROP TABLE IF EXISTS `cpl`;
  228. /*!40101 SET @saved_cs_client = @@character_set_client */;
  229. /*!40101 SET character_set_client = utf8 */;
  230. CREATE TABLE `cpl` (
  231. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  232. `username` char(64) NOT NULL,
  233. `domain` char(64) NOT NULL DEFAULT '',
  234. `cpl_xml` text,
  235. `cpl_bin` text,
  236. PRIMARY KEY (`id`),
  237. UNIQUE KEY `account_idx` (`username`,`domain`)
  238. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  239. /*!40101 SET character_set_client = @saved_cs_client */;
  240.  
  241. --
  242. -- Dumping data for table `cpl`
  243. --
  244.  
  245. LOCK TABLES `cpl` WRITE;
  246. /*!40000 ALTER TABLE `cpl` DISABLE KEYS */;
  247. /*!40000 ALTER TABLE `cpl` ENABLE KEYS */;
  248. UNLOCK TABLES;
  249.  
  250. --
  251. -- Table structure for table `dbaliases`
  252. --
  253.  
  254. DROP TABLE IF EXISTS `dbaliases`;
  255. /*!40101 SET @saved_cs_client = @@character_set_client */;
  256. /*!40101 SET character_set_client = utf8 */;
  257. CREATE TABLE `dbaliases` (
  258. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  259. `alias_username` char(64) NOT NULL DEFAULT '',
  260. `alias_domain` char(64) NOT NULL DEFAULT '',
  261. `username` char(64) NOT NULL DEFAULT '',
  262. `domain` char(64) NOT NULL DEFAULT '',
  263. PRIMARY KEY (`id`),
  264. UNIQUE KEY `alias_idx` (`alias_username`,`alias_domain`),
  265. KEY `target_idx` (`username`,`domain`)
  266. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  267. /*!40101 SET character_set_client = @saved_cs_client */;
  268.  
  269. --
  270. -- Dumping data for table `dbaliases`
  271. --
  272.  
  273. LOCK TABLES `dbaliases` WRITE;
  274. /*!40000 ALTER TABLE `dbaliases` DISABLE KEYS */;
  275. /*!40000 ALTER TABLE `dbaliases` ENABLE KEYS */;
  276. UNLOCK TABLES;
  277.  
  278. --
  279. -- Table structure for table `dialog`
  280. --
  281.  
  282. DROP TABLE IF EXISTS `dialog`;
  283. /*!40101 SET @saved_cs_client = @@character_set_client */;
  284. /*!40101 SET character_set_client = utf8 */;
  285. CREATE TABLE `dialog` (
  286. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  287. `hash_entry` int(10) unsigned NOT NULL,
  288. `hash_id` int(10) unsigned NOT NULL,
  289. `callid` char(255) NOT NULL,
  290. `from_uri` char(128) NOT NULL,
  291. `from_tag` char(64) NOT NULL,
  292. `to_uri` char(128) NOT NULL,
  293. `to_tag` char(64) NOT NULL,
  294. `caller_cseq` char(7) NOT NULL,
  295. `callee_cseq` char(7) NOT NULL,
  296. `caller_route_set` text,
  297. `callee_route_set` text,
  298. `caller_contact` char(128) NOT NULL,
  299. `callee_contact` char(128) NOT NULL,
  300. `caller_sock` char(64) NOT NULL,
  301. `callee_sock` char(64) NOT NULL,
  302. `state` int(10) unsigned NOT NULL,
  303. `start_time` int(10) unsigned NOT NULL,
  304. `timeout` int(10) unsigned NOT NULL,
  305. `vars` text,
  306. `profiles` text,
  307. `script_flags` int(10) unsigned NOT NULL DEFAULT '0',
  308. PRIMARY KEY (`id`),
  309. KEY `hash_idx` (`hash_entry`,`hash_id`)
  310. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  311. /*!40101 SET character_set_client = @saved_cs_client */;
  312.  
  313. --
  314. -- Dumping data for table `dialog`
  315. --
  316.  
  317. LOCK TABLES `dialog` WRITE;
  318. /*!40000 ALTER TABLE `dialog` DISABLE KEYS */;
  319. /*!40000 ALTER TABLE `dialog` ENABLE KEYS */;
  320. UNLOCK TABLES;
  321.  
  322. --
  323. -- Table structure for table `dialplan`
  324. --
  325.  
  326. DROP TABLE IF EXISTS `dialplan`;
  327. /*!40101 SET @saved_cs_client = @@character_set_client */;
  328. /*!40101 SET character_set_client = utf8 */;
  329. CREATE TABLE `dialplan` (
  330. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  331. `dpid` int(11) NOT NULL,
  332. `pr` int(11) NOT NULL,
  333. `match_op` int(11) NOT NULL,
  334. `match_exp` char(64) NOT NULL,
  335. `match_len` int(11) NOT NULL,
  336. `subst_exp` char(64) NOT NULL,
  337. `repl_exp` char(32) NOT NULL,
  338. `attrs` char(32) NOT NULL,
  339. PRIMARY KEY (`id`)
  340. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  341. /*!40101 SET character_set_client = @saved_cs_client */;
  342.  
  343. --
  344. -- Dumping data for table `dialplan`
  345. --
  346.  
  347. LOCK TABLES `dialplan` WRITE;
  348. /*!40000 ALTER TABLE `dialplan` DISABLE KEYS */;
  349. /*!40000 ALTER TABLE `dialplan` ENABLE KEYS */;
  350. UNLOCK TABLES;
  351.  
  352. --
  353. -- Table structure for table `dispatcher`
  354. --
  355.  
  356. DROP TABLE IF EXISTS `dispatcher`;
  357. /*!40101 SET @saved_cs_client = @@character_set_client */;
  358. /*!40101 SET character_set_client = utf8 */;
  359. CREATE TABLE `dispatcher` (
  360. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  361. `setid` int(11) NOT NULL DEFAULT '0',
  362. `destination` char(192) NOT NULL DEFAULT '',
  363. `flags` int(11) NOT NULL DEFAULT '0',
  364. `weight` int(11) NOT NULL DEFAULT '1',
  365. `attrs` char(128) NOT NULL DEFAULT '',
  366. `description` char(64) NOT NULL DEFAULT '',
  367. PRIMARY KEY (`id`)
  368. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  369. /*!40101 SET character_set_client = @saved_cs_client */;
  370.  
  371. --
  372. -- Dumping data for table `dispatcher`
  373. --
  374.  
  375. LOCK TABLES `dispatcher` WRITE;
  376. /*!40000 ALTER TABLE `dispatcher` DISABLE KEYS */;
  377. /*!40000 ALTER TABLE `dispatcher` ENABLE KEYS */;
  378. UNLOCK TABLES;
  379.  
  380. --
  381. -- Table structure for table `domain`
  382. --
  383.  
  384. DROP TABLE IF EXISTS `domain`;
  385. /*!40101 SET @saved_cs_client = @@character_set_client */;
  386. /*!40101 SET character_set_client = utf8 */;
  387. CREATE TABLE `domain` (
  388. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  389. `domain` char(64) NOT NULL DEFAULT '',
  390. `last_modified` datetime NOT NULL DEFAULT '1900-01-01 00:00:01',
  391. PRIMARY KEY (`id`),
  392. UNIQUE KEY `domain_idx` (`domain`)
  393. ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
  394. /*!40101 SET character_set_client = @saved_cs_client */;
  395.  
  396. --
  397. -- Dumping data for table `domain`
  398. --
  399.  
  400. LOCK TABLES `domain` WRITE;
  401. /*!40000 ALTER TABLE `domain` DISABLE KEYS */;
  402. INSERT INTO `domain` VALUES (1,'apenksips.com','2012-04-10 00:09:34');
  403. /*!40000 ALTER TABLE `domain` ENABLE KEYS */;
  404. UNLOCK TABLES;
  405.  
  406. --
  407. -- Table structure for table `domainpolicy`
  408. --
  409.  
  410. DROP TABLE IF EXISTS `domainpolicy`;
  411. /*!40101 SET @saved_cs_client = @@character_set_client */;
  412. /*!40101 SET character_set_client = utf8 */;
  413. CREATE TABLE `domainpolicy` (
  414. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  415. `rule` char(255) NOT NULL,
  416. `type` char(255) NOT NULL,
  417. `att` char(255) DEFAULT NULL,
  418. `val` char(128) DEFAULT NULL,
  419. `description` char(255) NOT NULL,
  420. PRIMARY KEY (`id`),
  421. UNIQUE KEY `rav_idx` (`rule`,`att`,`val`),
  422. KEY `rule_idx` (`rule`)
  423. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  424. /*!40101 SET character_set_client = @saved_cs_client */;
  425.  
  426. --
  427. -- Dumping data for table `domainpolicy`
  428. --
  429.  
  430. LOCK TABLES `domainpolicy` WRITE;
  431. /*!40000 ALTER TABLE `domainpolicy` DISABLE KEYS */;
  432. /*!40000 ALTER TABLE `domainpolicy` ENABLE KEYS */;
  433. UNLOCK TABLES;
  434.  
  435. --
  436. -- Table structure for table `dr_gateways`
  437. --
  438.  
  439. DROP TABLE IF EXISTS `dr_gateways`;
  440. /*!40101 SET @saved_cs_client = @@character_set_client */;
  441. /*!40101 SET character_set_client = utf8 */;
  442. CREATE TABLE `dr_gateways` (
  443. `gwid` int(10) unsigned NOT NULL AUTO_INCREMENT,
  444. `type` int(11) unsigned NOT NULL DEFAULT '0',
  445. `address` char(128) NOT NULL,
  446. `strip` int(11) unsigned NOT NULL DEFAULT '0',
  447. `pri_prefix` char(16) DEFAULT NULL,
  448. `attrs` char(255) DEFAULT NULL,
  449. `probe_mode` int(11) unsigned NOT NULL DEFAULT '0',
  450. `description` char(128) NOT NULL DEFAULT '',
  451. PRIMARY KEY (`gwid`)
  452. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  453. /*!40101 SET character_set_client = @saved_cs_client */;
  454.  
  455. --
  456. -- Dumping data for table `dr_gateways`
  457. --
  458.  
  459. LOCK TABLES `dr_gateways` WRITE;
  460. /*!40000 ALTER TABLE `dr_gateways` DISABLE KEYS */;
  461. /*!40000 ALTER TABLE `dr_gateways` ENABLE KEYS */;
  462. UNLOCK TABLES;
  463.  
  464. --
  465. -- Table structure for table `dr_groups`
  466. --
  467.  
  468. DROP TABLE IF EXISTS `dr_groups`;
  469. /*!40101 SET @saved_cs_client = @@character_set_client */;
  470. /*!40101 SET character_set_client = utf8 */;
  471. CREATE TABLE `dr_groups` (
  472. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  473. `username` char(64) NOT NULL,
  474. `domain` char(128) NOT NULL DEFAULT '',
  475. `groupid` int(11) unsigned NOT NULL DEFAULT '0',
  476. `description` char(128) NOT NULL DEFAULT '',
  477. PRIMARY KEY (`id`)
  478. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  479. /*!40101 SET character_set_client = @saved_cs_client */;
  480.  
  481. --
  482. -- Dumping data for table `dr_groups`
  483. --
  484.  
  485. LOCK TABLES `dr_groups` WRITE;
  486. /*!40000 ALTER TABLE `dr_groups` DISABLE KEYS */;
  487. /*!40000 ALTER TABLE `dr_groups` ENABLE KEYS */;
  488. UNLOCK TABLES;
  489.  
  490. --
  491. -- Table structure for table `dr_gw_lists`
  492. --
  493.  
  494. DROP TABLE IF EXISTS `dr_gw_lists`;
  495. /*!40101 SET @saved_cs_client = @@character_set_client */;
  496. /*!40101 SET character_set_client = utf8 */;
  497. CREATE TABLE `dr_gw_lists` (
  498. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  499. `gwlist` char(255) NOT NULL,
  500. `description` char(128) NOT NULL DEFAULT '',
  501. PRIMARY KEY (`id`)
  502. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  503. /*!40101 SET character_set_client = @saved_cs_client */;
  504.  
  505. --
  506. -- Dumping data for table `dr_gw_lists`
  507. --
  508.  
  509. LOCK TABLES `dr_gw_lists` WRITE;
  510. /*!40000 ALTER TABLE `dr_gw_lists` DISABLE KEYS */;
  511. /*!40000 ALTER TABLE `dr_gw_lists` ENABLE KEYS */;
  512. UNLOCK TABLES;
  513.  
  514. --
  515. -- Table structure for table `dr_rules`
  516. --
  517.  
  518. DROP TABLE IF EXISTS `dr_rules`;
  519. /*!40101 SET @saved_cs_client = @@character_set_client */;
  520. /*!40101 SET character_set_client = utf8 */;
  521. CREATE TABLE `dr_rules` (
  522. `ruleid` int(10) unsigned NOT NULL AUTO_INCREMENT,
  523. `groupid` char(255) NOT NULL,
  524. `prefix` char(64) NOT NULL,
  525. `timerec` char(255) NOT NULL,
  526. `priority` int(11) NOT NULL DEFAULT '0',
  527. `routeid` char(255) NOT NULL,
  528. `gwlist` char(255) NOT NULL,
  529. `description` char(128) NOT NULL DEFAULT '',
  530. PRIMARY KEY (`ruleid`)
  531. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  532. /*!40101 SET character_set_client = @saved_cs_client */;
  533.  
  534. --
  535. -- Dumping data for table `dr_rules`
  536. --
  537.  
  538. LOCK TABLES `dr_rules` WRITE;
  539. /*!40000 ALTER TABLE `dr_rules` DISABLE KEYS */;
  540. /*!40000 ALTER TABLE `dr_rules` ENABLE KEYS */;
  541. UNLOCK TABLES;
  542.  
  543. --
  544. -- Table structure for table `globalblacklist`
  545. --
  546.  
  547. DROP TABLE IF EXISTS `globalblacklist`;
  548. /*!40101 SET @saved_cs_client = @@character_set_client */;
  549. /*!40101 SET character_set_client = utf8 */;
  550. CREATE TABLE `globalblacklist` (
  551. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  552. `prefix` char(64) NOT NULL DEFAULT '',
  553. `whitelist` tinyint(1) NOT NULL DEFAULT '0',
  554. `description` char(255) DEFAULT NULL,
  555. PRIMARY KEY (`id`),
  556. KEY `globalblacklist_idx` (`prefix`)
  557. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  558. /*!40101 SET character_set_client = @saved_cs_client */;
  559.  
  560. --
  561. -- Dumping data for table `globalblacklist`
  562. --
  563.  
  564. LOCK TABLES `globalblacklist` WRITE;
  565. /*!40000 ALTER TABLE `globalblacklist` DISABLE KEYS */;
  566. /*!40000 ALTER TABLE `globalblacklist` ENABLE KEYS */;
  567. UNLOCK TABLES;
  568.  
  569. --
  570. -- Table structure for table `grp`
  571. --
  572.  
  573. DROP TABLE IF EXISTS `grp`;
  574. /*!40101 SET @saved_cs_client = @@character_set_client */;
  575. /*!40101 SET character_set_client = utf8 */;
  576. CREATE TABLE `grp` (
  577. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  578. `username` char(64) NOT NULL DEFAULT '',
  579. `domain` char(64) NOT NULL DEFAULT '',
  580. `grp` char(64) NOT NULL DEFAULT '',
  581. `last_modified` datetime NOT NULL DEFAULT '1900-01-01 00:00:01',
  582. PRIMARY KEY (`id`),
  583. UNIQUE KEY `account_group_idx` (`username`,`domain`,`grp`)
  584. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  585. /*!40101 SET character_set_client = @saved_cs_client */;
  586.  
  587. --
  588. -- Dumping data for table `grp`
  589. --
  590.  
  591. LOCK TABLES `grp` WRITE;
  592. /*!40000 ALTER TABLE `grp` DISABLE KEYS */;
  593. /*!40000 ALTER TABLE `grp` ENABLE KEYS */;
  594. UNLOCK TABLES;
  595.  
  596. --
  597. -- Table structure for table `gw`
  598. --
  599.  
  600. DROP TABLE IF EXISTS `gw`;
  601. /*!40101 SET @saved_cs_client = @@character_set_client */;
  602. /*!40101 SET character_set_client = utf8 */;
  603. CREATE TABLE `gw` (
  604. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  605. `gw_name` char(128) NOT NULL,
  606. `grp_id` int(10) unsigned NOT NULL,
  607. `ip_addr` char(15) NOT NULL,
  608. `port` smallint(5) unsigned DEFAULT NULL,
  609. `uri_scheme` tinyint(3) unsigned DEFAULT NULL,
  610. `transport` tinyint(3) unsigned DEFAULT NULL,
  611. `strip` tinyint(3) unsigned DEFAULT NULL,
  612. `tag` char(16) DEFAULT NULL,
  613. `flags` int(10) unsigned NOT NULL DEFAULT '0',
  614. PRIMARY KEY (`id`),
  615. UNIQUE KEY `gw_name_idx` (`gw_name`),
  616. KEY `grp_id_idx` (`grp_id`)
  617. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  618. /*!40101 SET character_set_client = @saved_cs_client */;
  619.  
  620. --
  621. -- Dumping data for table `gw`
  622. --
  623.  
  624. LOCK TABLES `gw` WRITE;
  625. /*!40000 ALTER TABLE `gw` DISABLE KEYS */;
  626. /*!40000 ALTER TABLE `gw` ENABLE KEYS */;
  627. UNLOCK TABLES;
  628.  
  629. --
  630. -- Table structure for table `imc_members`
  631. --
  632.  
  633. DROP TABLE IF EXISTS `imc_members`;
  634. /*!40101 SET @saved_cs_client = @@character_set_client */;
  635. /*!40101 SET character_set_client = utf8 */;
  636. CREATE TABLE `imc_members` (
  637. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  638. `username` char(64) NOT NULL,
  639. `domain` char(64) NOT NULL,
  640. `room` char(64) NOT NULL,
  641. `flag` int(11) NOT NULL,
  642. PRIMARY KEY (`id`),
  643. UNIQUE KEY `account_room_idx` (`username`,`domain`,`room`)
  644. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  645. /*!40101 SET character_set_client = @saved_cs_client */;
  646.  
  647. --
  648. -- Dumping data for table `imc_members`
  649. --
  650.  
  651. LOCK TABLES `imc_members` WRITE;
  652. /*!40000 ALTER TABLE `imc_members` DISABLE KEYS */;
  653. /*!40000 ALTER TABLE `imc_members` ENABLE KEYS */;
  654. UNLOCK TABLES;
  655.  
  656. --
  657. -- Table structure for table `imc_rooms`
  658. --
  659.  
  660. DROP TABLE IF EXISTS `imc_rooms`;
  661. /*!40101 SET @saved_cs_client = @@character_set_client */;
  662. /*!40101 SET character_set_client = utf8 */;
  663. CREATE TABLE `imc_rooms` (
  664. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  665. `name` char(64) NOT NULL,
  666. `domain` char(64) NOT NULL,
  667. `flag` int(11) NOT NULL,
  668. PRIMARY KEY (`id`),
  669. UNIQUE KEY `name_domain_idx` (`name`,`domain`)
  670. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  671. /*!40101 SET character_set_client = @saved_cs_client */;
  672.  
  673. --
  674. -- Dumping data for table `imc_rooms`
  675. --
  676.  
  677. LOCK TABLES `imc_rooms` WRITE;
  678. /*!40000 ALTER TABLE `imc_rooms` DISABLE KEYS */;
  679. /*!40000 ALTER TABLE `imc_rooms` ENABLE KEYS */;
  680. UNLOCK TABLES;
  681.  
  682. --
  683. -- Table structure for table `lcr`
  684. --
  685.  
  686. DROP TABLE IF EXISTS `lcr`;
  687. /*!40101 SET @saved_cs_client = @@character_set_client */;
  688. /*!40101 SET character_set_client = utf8 */;
  689. CREATE TABLE `lcr` (
  690. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  691. `prefix` char(16) DEFAULT NULL,
  692. `from_uri` char(64) DEFAULT NULL,
  693. `grp_id` int(10) unsigned NOT NULL,
  694. `priority` int(10) unsigned NOT NULL,
  695. PRIMARY KEY (`id`),
  696. KEY `prefix_idx` (`prefix`),
  697. KEY `from_uri_idx` (`from_uri`),
  698. KEY `grp_id_idx` (`grp_id`)
  699. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  700. /*!40101 SET character_set_client = @saved_cs_client */;
  701.  
  702. --
  703. -- Dumping data for table `lcr`
  704. --
  705.  
  706. LOCK TABLES `lcr` WRITE;
  707. /*!40000 ALTER TABLE `lcr` DISABLE KEYS */;
  708. /*!40000 ALTER TABLE `lcr` ENABLE KEYS */;
  709. UNLOCK TABLES;
  710.  
  711. --
  712. -- Table structure for table `load_balancer`
  713. --
  714.  
  715. DROP TABLE IF EXISTS `load_balancer`;
  716. /*!40101 SET @saved_cs_client = @@character_set_client */;
  717. /*!40101 SET character_set_client = utf8 */;
  718. CREATE TABLE `load_balancer` (
  719. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  720. `group_id` int(11) unsigned NOT NULL DEFAULT '0',
  721. `dst_uri` char(128) NOT NULL,
  722. `resources` char(255) NOT NULL,
  723. `probe_mode` int(11) unsigned NOT NULL DEFAULT '0',
  724. `description` char(128) NOT NULL DEFAULT '',
  725. PRIMARY KEY (`id`),
  726. KEY `dsturi_idx` (`dst_uri`)
  727. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  728. /*!40101 SET character_set_client = @saved_cs_client */;
  729.  
  730. --
  731. -- Dumping data for table `load_balancer`
  732. --
  733.  
  734. LOCK TABLES `load_balancer` WRITE;
  735. /*!40000 ALTER TABLE `load_balancer` DISABLE KEYS */;
  736. /*!40000 ALTER TABLE `load_balancer` ENABLE KEYS */;
  737. UNLOCK TABLES;
  738.  
  739. --
  740. -- Table structure for table `location`
  741. --
  742.  
  743. DROP TABLE IF EXISTS `location`;
  744. /*!40101 SET @saved_cs_client = @@character_set_client */;
  745. /*!40101 SET character_set_client = utf8 */;
  746. CREATE TABLE `location` (
  747. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  748. `username` char(64) NOT NULL DEFAULT '',
  749. `domain` char(64) DEFAULT NULL,
  750. `contact` char(255) NOT NULL DEFAULT '',
  751. `received` char(128) DEFAULT NULL,
  752. `path` char(128) DEFAULT NULL,
  753. `expires` datetime NOT NULL DEFAULT '2020-05-28 21:32:15',
  754. `q` float(10,2) NOT NULL DEFAULT '1.00',
  755. `callid` char(255) NOT NULL DEFAULT 'Default-Call-ID',
  756. `cseq` int(11) NOT NULL DEFAULT '13',
  757. `last_modified` datetime NOT NULL DEFAULT '1900-01-01 00:00:01',
  758. `flags` int(11) NOT NULL DEFAULT '0',
  759. `cflags` int(11) NOT NULL DEFAULT '0',
  760. `user_agent` char(255) NOT NULL DEFAULT '',
  761. `socket` char(64) DEFAULT NULL,
  762. `methods` int(11) DEFAULT NULL,
  763. PRIMARY KEY (`id`),
  764. KEY `account_contact_idx` (`username`,`domain`,`contact`)
  765. ) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
  766. /*!40101 SET character_set_client = @saved_cs_client */;
  767.  
  768. --
  769. -- Dumping data for table `location`
  770. --
  771.  
  772. LOCK TABLES `location` WRITE;
  773. /*!40000 ALTER TABLE `location` DISABLE KEYS */;
  774. INSERT INTO `location` VALUES (3,'kliensip1','apenksips.com','sip:kliensip1@192.168.27.5:35129;transport=udp','sip:192.168.26.1:35129',NULL,'2012-04-10 01:23:12',-1.00,'998135189522@192.168.27.5',2,'2012-04-10 00:23:12',0,192,'Sipdroid/2.5 beta/GT-S5570L','udp:192.168.26.5:5060',NULL),(2,'kliensip3','apenksips.com','sip:kliensip3@192.168.27.4:5060;transport=udp;registering_acc=apenksips_com','sip:192.168.26.1:5060',NULL,'2012-04-10 00:35:15',-1.00,'05beba61739421516d217b03ade25eea@0:0:0:0:0:0:0:0',4,'2012-04-10 00:25:15',0,192,'Jitsi1.0-beta1-nightly.build.3820Linux','udp:192.168.26.5:5060',NULL),(4,'kliensip1','apenksips.com','sip:kliensip1@192.168.27.5:47841;transport=udp','sip:192.168.26.1:47841',NULL,'2012-04-10 01:26:48',-1.00,'027200649125@192.168.27.5',2,'2012-04-10 00:26:48',0,192,'Sipdroid/2.5 beta/GT-S5570L','udp:192.168.26.5:5060',NULL),(5,'kliensip1','apenksips.com','sip:kliensip1@192.168.27.5:53993;transport=udp','sip:192.168.26.1:53993',NULL,'2012-04-10 01:27:02',-1.00,'145001129960@192.168.27.5',2,'2012-04-10 00:27:02',0,192,'Sipdroid/2.5 beta/GT-S5570L','udp:192.168.26.5:5060',NULL);
  775. /*!40000 ALTER TABLE `location` ENABLE KEYS */;
  776. UNLOCK TABLES;
  777.  
  778. --
  779. -- Table structure for table `missed_calls`
  780. --
  781.  
  782. DROP TABLE IF EXISTS `missed_calls`;
  783. /*!40101 SET @saved_cs_client = @@character_set_client */;
  784. /*!40101 SET character_set_client = utf8 */;
  785. CREATE TABLE `missed_calls` (
  786. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  787. `method` char(16) NOT NULL DEFAULT '',
  788. `from_tag` char(64) NOT NULL DEFAULT '',
  789. `to_tag` char(64) NOT NULL DEFAULT '',
  790. `callid` char(64) NOT NULL DEFAULT '',
  791. `sip_code` char(3) NOT NULL DEFAULT '',
  792. `sip_reason` char(32) NOT NULL DEFAULT '',
  793. `time` datetime NOT NULL,
  794. PRIMARY KEY (`id`),
  795. KEY `callid_idx` (`callid`)
  796. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  797. /*!40101 SET character_set_client = @saved_cs_client */;
  798.  
  799. --
  800. -- Dumping data for table `missed_calls`
  801. --
  802.  
  803. LOCK TABLES `missed_calls` WRITE;
  804. /*!40000 ALTER TABLE `missed_calls` DISABLE KEYS */;
  805. /*!40000 ALTER TABLE `missed_calls` ENABLE KEYS */;
  806. UNLOCK TABLES;
  807.  
  808. --
  809. -- Table structure for table `nh_sockets`
  810. --
  811.  
  812. DROP TABLE IF EXISTS `nh_sockets`;
  813. /*!40101 SET @saved_cs_client = @@character_set_client */;
  814. /*!40101 SET character_set_client = utf8 */;
  815. CREATE TABLE `nh_sockets` (
  816. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  817. `rtpproxy_sock` text NOT NULL,
  818. `set_id` int(10) unsigned NOT NULL,
  819. PRIMARY KEY (`id`)
  820. ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
  821. /*!40101 SET character_set_client = @saved_cs_client */;
  822.  
  823. --
  824. -- Dumping data for table `nh_sockets`
  825. --
  826.  
  827. LOCK TABLES `nh_sockets` WRITE;
  828. /*!40000 ALTER TABLE `nh_sockets` DISABLE KEYS */;
  829. INSERT INTO `nh_sockets` VALUES (1,'udp:127.0.0.1:7890',0);
  830. /*!40000 ALTER TABLE `nh_sockets` ENABLE KEYS */;
  831. UNLOCK TABLES;
  832.  
  833. --
  834. -- Table structure for table `pdt`
  835. --
  836.  
  837. DROP TABLE IF EXISTS `pdt`;
  838. /*!40101 SET @saved_cs_client = @@character_set_client */;
  839. /*!40101 SET character_set_client = utf8 */;
  840. CREATE TABLE `pdt` (
  841. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  842. `sdomain` char(128) NOT NULL,
  843. `prefix` char(32) NOT NULL,
  844. `domain` char(128) NOT NULL DEFAULT '',
  845. PRIMARY KEY (`id`),
  846. UNIQUE KEY `sdomain_prefix_idx` (`sdomain`,`prefix`)
  847. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  848. /*!40101 SET character_set_client = @saved_cs_client */;
  849.  
  850. --
  851. -- Dumping data for table `pdt`
  852. --
  853.  
  854. LOCK TABLES `pdt` WRITE;
  855. /*!40000 ALTER TABLE `pdt` DISABLE KEYS */;
  856. /*!40000 ALTER TABLE `pdt` ENABLE KEYS */;
  857. UNLOCK TABLES;
  858.  
  859. --
  860. -- Table structure for table `presentity`
  861. --
  862.  
  863. DROP TABLE IF EXISTS `presentity`;
  864. /*!40101 SET @saved_cs_client = @@character_set_client */;
  865. /*!40101 SET character_set_client = utf8 */;
  866. CREATE TABLE `presentity` (
  867. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  868. `username` char(64) NOT NULL,
  869. `domain` char(64) NOT NULL,
  870. `event` char(64) NOT NULL,
  871. `etag` char(64) NOT NULL,
  872. `expires` int(11) NOT NULL,
  873. `received_time` int(11) NOT NULL,
  874. `body` blob NOT NULL,
  875. `sender` char(128) NOT NULL,
  876. PRIMARY KEY (`id`),
  877. UNIQUE KEY `presentity_idx` (`username`,`domain`,`event`,`etag`)
  878. ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
  879. /*!40101 SET character_set_client = @saved_cs_client */;
  880.  
  881. --
  882. -- Dumping data for table `presentity`
  883. --
  884.  
  885. LOCK TABLES `presentity` WRITE;
  886. /*!40000 ALTER TABLE `presentity` DISABLE KEYS */;
  887. INSERT INTO `presentity` VALUES (1,'kliensip3','apenksips.com','presence','a.1334030743.13963.3.0',1334034943,1334031343,'<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><presence xmlns=\"urn:ietf:params:xml:ns:pidf\" xmlns:dm=\"urn:ietf:params:xml:ns:pidf:data-model\" xmlns:rpid=\"urn:ietf:params:xml:ns:pidf:rpid\" entity=\"sip:kliensip3@apenksips.com\"><dm:person id=\"p748\"><rpid:activities/></dm:person><tuple id=\"t9359\"><status><basic>open</basic></status><contact>sip:kliensip3@apenksips.com</contact><note>Online</note></tuple></presence>','');
  888. /*!40000 ALTER TABLE `presentity` ENABLE KEYS */;
  889. UNLOCK TABLES;
  890.  
  891. --
  892. -- Table structure for table `pua`
  893. --
  894.  
  895. DROP TABLE IF EXISTS `pua`;
  896. /*!40101 SET @saved_cs_client = @@character_set_client */;
  897. /*!40101 SET character_set_client = utf8 */;
  898. CREATE TABLE `pua` (
  899. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  900. `pres_uri` char(128) NOT NULL,
  901. `pres_id` char(255) NOT NULL,
  902. `event` int(11) NOT NULL,
  903. `expires` int(11) NOT NULL,
  904. `desired_expires` int(11) NOT NULL,
  905. `flag` int(11) NOT NULL,
  906. `etag` char(64) DEFAULT NULL,
  907. `tuple_id` char(64) DEFAULT NULL,
  908. `watcher_uri` char(128) DEFAULT NULL,
  909. `to_uri` char(128) DEFAULT NULL,
  910. `call_id` char(64) DEFAULT NULL,
  911. `to_tag` char(64) DEFAULT NULL,
  912. `from_tag` char(64) DEFAULT NULL,
  913. `cseq` int(11) DEFAULT NULL,
  914. `record_route` text,
  915. `contact` char(128) DEFAULT NULL,
  916. `remote_contact` char(128) DEFAULT NULL,
  917. `version` int(11) DEFAULT NULL,
  918. `extra_headers` text,
  919. PRIMARY KEY (`id`)
  920. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  921. /*!40101 SET character_set_client = @saved_cs_client */;
  922.  
  923. --
  924. -- Dumping data for table `pua`
  925. --
  926.  
  927. LOCK TABLES `pua` WRITE;
  928. /*!40000 ALTER TABLE `pua` DISABLE KEYS */;
  929. /*!40000 ALTER TABLE `pua` ENABLE KEYS */;
  930. UNLOCK TABLES;
  931.  
  932. --
  933. -- Table structure for table `re_grp`
  934. --
  935.  
  936. DROP TABLE IF EXISTS `re_grp`;
  937. /*!40101 SET @saved_cs_client = @@character_set_client */;
  938. /*!40101 SET character_set_client = utf8 */;
  939. CREATE TABLE `re_grp` (
  940. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  941. `reg_exp` char(128) NOT NULL DEFAULT '',
  942. `group_id` int(11) NOT NULL DEFAULT '0',
  943. PRIMARY KEY (`id`),
  944. KEY `group_idx` (`group_id`)
  945. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  946. /*!40101 SET character_set_client = @saved_cs_client */;
  947.  
  948. --
  949. -- Dumping data for table `re_grp`
  950. --
  951.  
  952. LOCK TABLES `re_grp` WRITE;
  953. /*!40000 ALTER TABLE `re_grp` DISABLE KEYS */;
  954. /*!40000 ALTER TABLE `re_grp` ENABLE KEYS */;
  955. UNLOCK TABLES;
  956.  
  957. --
  958. -- Table structure for table `rls_presentity`
  959. --
  960.  
  961. DROP TABLE IF EXISTS `rls_presentity`;
  962. /*!40101 SET @saved_cs_client = @@character_set_client */;
  963. /*!40101 SET character_set_client = utf8 */;
  964. CREATE TABLE `rls_presentity` (
  965. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  966. `rlsubs_did` char(255) NOT NULL,
  967. `resource_uri` char(128) NOT NULL,
  968. `content_type` char(255) NOT NULL,
  969. `presence_state` blob NOT NULL,
  970. `expires` int(11) NOT NULL,
  971. `updated` int(11) NOT NULL,
  972. `auth_state` int(11) NOT NULL,
  973. `reason` char(64) NOT NULL,
  974. PRIMARY KEY (`id`),
  975. UNIQUE KEY `rls_presentity_idx` (`rlsubs_did`,`resource_uri`),
  976. KEY `updated_idx` (`updated`)
  977. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  978. /*!40101 SET character_set_client = @saved_cs_client */;
  979.  
  980. --
  981. -- Dumping data for table `rls_presentity`
  982. --
  983.  
  984. LOCK TABLES `rls_presentity` WRITE;
  985. /*!40000 ALTER TABLE `rls_presentity` DISABLE KEYS */;
  986. /*!40000 ALTER TABLE `rls_presentity` ENABLE KEYS */;
  987. UNLOCK TABLES;
  988.  
  989. --
  990. -- Table structure for table `rls_watchers`
  991. --
  992.  
  993. DROP TABLE IF EXISTS `rls_watchers`;
  994. /*!40101 SET @saved_cs_client = @@character_set_client */;
  995. /*!40101 SET character_set_client = utf8 */;
  996. CREATE TABLE `rls_watchers` (
  997. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  998. `presentity_uri` char(128) NOT NULL,
  999. `to_user` char(64) NOT NULL,
  1000. `to_domain` char(64) NOT NULL,
  1001. `watcher_username` char(64) NOT NULL,
  1002. `watcher_domain` char(64) NOT NULL,
  1003. `event` char(64) NOT NULL DEFAULT 'presence',
  1004. `event_id` char(64) DEFAULT NULL,
  1005. `to_tag` char(64) NOT NULL,
  1006. `from_tag` char(64) NOT NULL,
  1007. `callid` char(64) NOT NULL,
  1008. `local_cseq` int(11) NOT NULL,
  1009. `remote_cseq` int(11) NOT NULL,
  1010. `contact` char(64) NOT NULL,
  1011. `record_route` text,
  1012. `expires` int(11) NOT NULL,
  1013. `status` int(11) NOT NULL DEFAULT '2',
  1014. `reason` char(64) NOT NULL,
  1015. `version` int(11) NOT NULL DEFAULT '0',
  1016. `socket_info` char(64) NOT NULL,
  1017. `local_contact` char(128) NOT NULL,
  1018. PRIMARY KEY (`id`),
  1019. UNIQUE KEY `rls_watcher_idx` (`presentity_uri`,`callid`,`to_tag`,`from_tag`)
  1020. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  1021. /*!40101 SET character_set_client = @saved_cs_client */;
  1022.  
  1023. --
  1024. -- Dumping data for table `rls_watchers`
  1025. --
  1026.  
  1027. LOCK TABLES `rls_watchers` WRITE;
  1028. /*!40000 ALTER TABLE `rls_watchers` DISABLE KEYS */;
  1029. /*!40000 ALTER TABLE `rls_watchers` ENABLE KEYS */;
  1030. UNLOCK TABLES;
  1031.  
  1032. --
  1033. -- Table structure for table `route_tree`
  1034. --
  1035.  
  1036. DROP TABLE IF EXISTS `route_tree`;
  1037. /*!40101 SET @saved_cs_client = @@character_set_client */;
  1038. /*!40101 SET character_set_client = utf8 */;
  1039. CREATE TABLE `route_tree` (
  1040. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  1041. `carrier` char(64) DEFAULT NULL,
  1042. PRIMARY KEY (`id`)
  1043. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  1044. /*!40101 SET character_set_client = @saved_cs_client */;
  1045.  
  1046. --
  1047. -- Dumping data for table `route_tree`
  1048. --
  1049.  
  1050. LOCK TABLES `route_tree` WRITE;
  1051. /*!40000 ALTER TABLE `route_tree` DISABLE KEYS */;
  1052. /*!40000 ALTER TABLE `route_tree` ENABLE KEYS */;
  1053. UNLOCK TABLES;
  1054.  
  1055. --
  1056. -- Table structure for table `silo`
  1057. --
  1058.  
  1059. DROP TABLE IF EXISTS `silo`;
  1060. /*!40101 SET @saved_cs_client = @@character_set_client */;
  1061. /*!40101 SET character_set_client = utf8 */;
  1062. CREATE TABLE `silo` (
  1063. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  1064. `src_addr` char(128) NOT NULL DEFAULT '',
  1065. `dst_addr` char(128) NOT NULL DEFAULT '',
  1066. `username` char(64) NOT NULL DEFAULT '',
  1067. `domain` char(64) NOT NULL DEFAULT '',
  1068. `inc_time` int(11) NOT NULL DEFAULT '0',
  1069. `exp_time` int(11) NOT NULL DEFAULT '0',
  1070. `snd_time` int(11) NOT NULL DEFAULT '0',
  1071. `ctype` char(32) NOT NULL DEFAULT 'text/plain',
  1072. `body` blob NOT NULL,
  1073. PRIMARY KEY (`id`),
  1074. KEY `account_idx` (`username`,`domain`)
  1075. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  1076. /*!40101 SET character_set_client = @saved_cs_client */;
  1077.  
  1078. --
  1079. -- Dumping data for table `silo`
  1080. --
  1081.  
  1082. LOCK TABLES `silo` WRITE;
  1083. /*!40000 ALTER TABLE `silo` DISABLE KEYS */;
  1084. /*!40000 ALTER TABLE `silo` ENABLE KEYS */;
  1085. UNLOCK TABLES;
  1086.  
  1087. --
  1088. -- Table structure for table `sip_trace`
  1089. --
  1090.  
  1091. DROP TABLE IF EXISTS `sip_trace`;
  1092. /*!40101 SET @saved_cs_client = @@character_set_client */;
  1093. /*!40101 SET character_set_client = utf8 */;
  1094. CREATE TABLE `sip_trace` (
  1095. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  1096. `time_stamp` datetime NOT NULL DEFAULT '1900-01-01 00:00:01',
  1097. `callid` char(255) NOT NULL DEFAULT '',
  1098. `traced_user` char(128) DEFAULT NULL,
  1099. `msg` text NOT NULL,
  1100. `method` char(32) NOT NULL DEFAULT '',
  1101. `status` char(128) DEFAULT NULL,
  1102. `fromip` char(50) NOT NULL DEFAULT '',
  1103. `toip` char(50) NOT NULL DEFAULT '',
  1104. `fromtag` char(64) NOT NULL DEFAULT '',
  1105. `direction` char(4) NOT NULL DEFAULT '',
  1106. PRIMARY KEY (`id`),
  1107. KEY `traced_user_idx` (`traced_user`),
  1108. KEY `date_idx` (`time_stamp`),
  1109. KEY `fromip_idx` (`fromip`),
  1110. KEY `callid_idx` (`callid`)
  1111. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  1112. /*!40101 SET character_set_client = @saved_cs_client */;
  1113.  
  1114. --
  1115. -- Dumping data for table `sip_trace`
  1116. --
  1117.  
  1118. LOCK TABLES `sip_trace` WRITE;
  1119. /*!40000 ALTER TABLE `sip_trace` DISABLE KEYS */;
  1120. /*!40000 ALTER TABLE `sip_trace` ENABLE KEYS */;
  1121. UNLOCK TABLES;
  1122.  
  1123. --
  1124. -- Table structure for table `speed_dial`
  1125. --
  1126.  
  1127. DROP TABLE IF EXISTS `speed_dial`;
  1128. /*!40101 SET @saved_cs_client = @@character_set_client */;
  1129. /*!40101 SET character_set_client = utf8 */;
  1130. CREATE TABLE `speed_dial` (
  1131. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  1132. `username` char(64) NOT NULL DEFAULT '',
  1133. `domain` char(64) NOT NULL DEFAULT '',
  1134. `sd_username` char(64) NOT NULL DEFAULT '',
  1135. `sd_domain` char(64) NOT NULL DEFAULT '',
  1136. `new_uri` char(128) NOT NULL DEFAULT '',
  1137. `fname` char(64) NOT NULL DEFAULT '',
  1138. `lname` char(64) NOT NULL DEFAULT '',
  1139. `description` char(64) NOT NULL DEFAULT '',
  1140. PRIMARY KEY (`id`),
  1141. UNIQUE KEY `speed_dial_idx` (`username`,`domain`,`sd_domain`,`sd_username`)
  1142. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  1143. /*!40101 SET character_set_client = @saved_cs_client */;
  1144.  
  1145. --
  1146. -- Dumping data for table `speed_dial`
  1147. --
  1148.  
  1149. LOCK TABLES `speed_dial` WRITE;
  1150. /*!40000 ALTER TABLE `speed_dial` DISABLE KEYS */;
  1151. /*!40000 ALTER TABLE `speed_dial` ENABLE KEYS */;
  1152. UNLOCK TABLES;
  1153.  
  1154. --
  1155. -- Table structure for table `subscriber`
  1156. --
  1157.  
  1158. DROP TABLE IF EXISTS `subscriber`;
  1159. /*!40101 SET @saved_cs_client = @@character_set_client */;
  1160. /*!40101 SET character_set_client = utf8 */;
  1161. CREATE TABLE `subscriber` (
  1162. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  1163. `username` char(64) NOT NULL DEFAULT '',
  1164. `domain` char(64) NOT NULL DEFAULT '',
  1165. `password` char(25) NOT NULL DEFAULT '',
  1166. `email_address` char(64) NOT NULL DEFAULT '',
  1167. `ha1` char(64) NOT NULL DEFAULT '',
  1168. `ha1b` char(64) NOT NULL DEFAULT '',
  1169. `rpid` char(64) DEFAULT NULL,
  1170. PRIMARY KEY (`id`),
  1171. UNIQUE KEY `account_idx` (`username`,`domain`),
  1172. KEY `username_idx` (`username`)
  1173. ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
  1174. /*!40101 SET character_set_client = @saved_cs_client */;
  1175.  
  1176. --
  1177. -- Dumping data for table `subscriber`
  1178. --
  1179.  
  1180. LOCK TABLES `subscriber` WRITE;
  1181. /*!40000 ALTER TABLE `subscriber` DISABLE KEYS */;
  1182. INSERT INTO `subscriber` VALUES (1,'kliensip1','apenksips.com','kliensip1pw','','e646cdaa128822f664897d6d94764d85','a9fc5b7165e244c17be09fae95eaf5bd',NULL),(2,'kliensip2','apenksips.com','kliensip2pw','','f209d3c0d12de525ef9d315db6f6641a','168d6cb7ee48b8192d9f142c63b54d84',NULL),(3,'kliensip3','apenksips.com','kliensip3pw','','47ad2b6ed1d22d4ba21ef1b17e978862','47790d97a7a345092adb51dbb577c961',NULL);
  1183. /*!40000 ALTER TABLE `subscriber` ENABLE KEYS */;
  1184. UNLOCK TABLES;
  1185.  
  1186. --
  1187. -- Table structure for table `uri`
  1188. --
  1189.  
  1190. DROP TABLE IF EXISTS `uri`;
  1191. /*!40101 SET @saved_cs_client = @@character_set_client */;
  1192. /*!40101 SET character_set_client = utf8 */;
  1193. CREATE TABLE `uri` (
  1194. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  1195. `username` char(64) NOT NULL DEFAULT '',
  1196. `domain` char(64) NOT NULL DEFAULT '',
  1197. `uri_user` char(64) NOT NULL DEFAULT '',
  1198. `last_modified` datetime NOT NULL DEFAULT '1900-01-01 00:00:01',
  1199. PRIMARY KEY (`id`),
  1200. UNIQUE KEY `account_idx` (`username`,`domain`,`uri_user`)
  1201. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  1202. /*!40101 SET character_set_client = @saved_cs_client */;
  1203.  
  1204. --
  1205. -- Dumping data for table `uri`
  1206. --
  1207.  
  1208. LOCK TABLES `uri` WRITE;
  1209. /*!40000 ALTER TABLE `uri` DISABLE KEYS */;
  1210. /*!40000 ALTER TABLE `uri` ENABLE KEYS */;
  1211. UNLOCK TABLES;
  1212.  
  1213. --
  1214. -- Table structure for table `userblacklist`
  1215. --
  1216.  
  1217. DROP TABLE IF EXISTS `userblacklist`;
  1218. /*!40101 SET @saved_cs_client = @@character_set_client */;
  1219. /*!40101 SET character_set_client = utf8 */;
  1220. CREATE TABLE `userblacklist` (
  1221. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  1222. `username` char(64) NOT NULL DEFAULT '',
  1223. `domain` char(64) NOT NULL DEFAULT '',
  1224. `prefix` char(64) NOT NULL DEFAULT '',
  1225. `whitelist` tinyint(1) NOT NULL DEFAULT '0',
  1226. PRIMARY KEY (`id`),
  1227. KEY `userblacklist_idx` (`username`,`domain`,`prefix`)
  1228. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  1229. /*!40101 SET character_set_client = @saved_cs_client */;
  1230.  
  1231. --
  1232. -- Dumping data for table `userblacklist`
  1233. --
  1234.  
  1235. LOCK TABLES `userblacklist` WRITE;
  1236. /*!40000 ALTER TABLE `userblacklist` DISABLE KEYS */;
  1237. /*!40000 ALTER TABLE `userblacklist` ENABLE KEYS */;
  1238. UNLOCK TABLES;
  1239.  
  1240. --
  1241. -- Table structure for table `usr_preferences`
  1242. --
  1243.  
  1244. DROP TABLE IF EXISTS `usr_preferences`;
  1245. /*!40101 SET @saved_cs_client = @@character_set_client */;
  1246. /*!40101 SET character_set_client = utf8 */;
  1247. CREATE TABLE `usr_preferences` (
  1248. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  1249. `uuid` char(64) NOT NULL DEFAULT '',
  1250. `username` char(128) NOT NULL DEFAULT '0',
  1251. `domain` char(64) NOT NULL DEFAULT '',
  1252. `attribute` char(32) NOT NULL DEFAULT '',
  1253. `type` int(11) NOT NULL DEFAULT '0',
  1254. `value` char(128) NOT NULL DEFAULT '',
  1255. `last_modified` datetime NOT NULL DEFAULT '1900-01-01 00:00:01',
  1256. PRIMARY KEY (`id`),
  1257. KEY `ua_idx` (`uuid`,`attribute`),
  1258. KEY `uda_idx` (`username`,`domain`,`attribute`),
  1259. KEY `value_idx` (`value`)
  1260. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  1261. /*!40101 SET character_set_client = @saved_cs_client */;
  1262.  
  1263. --
  1264. -- Dumping data for table `usr_preferences`
  1265. --
  1266.  
  1267. LOCK TABLES `usr_preferences` WRITE;
  1268. /*!40000 ALTER TABLE `usr_preferences` DISABLE KEYS */;
  1269. /*!40000 ALTER TABLE `usr_preferences` ENABLE KEYS */;
  1270. UNLOCK TABLES;
  1271.  
  1272. --
  1273. -- Table structure for table `version`
  1274. --
  1275.  
  1276. DROP TABLE IF EXISTS `version`;
  1277. /*!40101 SET @saved_cs_client = @@character_set_client */;
  1278. /*!40101 SET character_set_client = utf8 */;
  1279. CREATE TABLE `version` (
  1280. `table_name` char(32) NOT NULL,
  1281. `table_version` int(10) unsigned NOT NULL DEFAULT '0',
  1282. UNIQUE KEY `t_name_idx` (`table_name`)
  1283. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  1284. /*!40101 SET character_set_client = @saved_cs_client */;
  1285.  
  1286. --
  1287. -- Dumping data for table `version`
  1288. --
  1289.  
  1290. LOCK TABLES `version` WRITE;
  1291. /*!40000 ALTER TABLE `version` DISABLE KEYS */;
  1292. INSERT INTO `version` VALUES ('acc',5),('missed_calls',4),('gw',8),('lcr',3),('domain',2),('grp',3),('re_grp',2),('address',5),('aliases',1005),('location',1005),('silo',6),('dbaliases',2),('uri',2),('nh_sockets',0),('speed_dial',3),('usr_preferences',3),('subscriber',7),('pdt',2),('dialog',4),('dispatcher',4),('dialplan',2),('dr_gateways',4),('dr_rules',3),('dr_gw_lists',1),('dr_groups',2),('load_balancer',2),('presentity',4),('active_watchers',10),('watchers',4),('xcap',4),('pua',8),('rls_presentity',1),('rls_watchers',2),('imc_rooms',2),('imc_members',2),('cpl',2),('sip_trace',3),('domainpolicy',3),('carrierroute',3),('carrierfailureroute',2),('route_tree',2),('userblacklist',2),('globalblacklist',2);
  1293. /*!40000 ALTER TABLE `version` ENABLE KEYS */;
  1294. UNLOCK TABLES;
  1295.  
  1296. --
  1297. -- Table structure for table `watchers`
  1298. --
  1299.  
  1300. DROP TABLE IF EXISTS `watchers`;
  1301. /*!40101 SET @saved_cs_client = @@character_set_client */;
  1302. /*!40101 SET character_set_client = utf8 */;
  1303. CREATE TABLE `watchers` (
  1304. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  1305. `presentity_uri` char(128) NOT NULL,
  1306. `watcher_username` char(64) NOT NULL,
  1307. `watcher_domain` char(64) NOT NULL,
  1308. `event` char(64) NOT NULL DEFAULT 'presence',
  1309. `status` int(11) NOT NULL,
  1310. `reason` char(64) DEFAULT NULL,
  1311. `inserted_time` int(11) NOT NULL,
  1312. PRIMARY KEY (`id`),
  1313. UNIQUE KEY `watcher_idx` (`presentity_uri`,`watcher_username`,`watcher_domain`,`event`)
  1314. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  1315. /*!40101 SET character_set_client = @saved_cs_client */;
  1316.  
  1317. --
  1318. -- Dumping data for table `watchers`
  1319. --
  1320.  
  1321. LOCK TABLES `watchers` WRITE;
  1322. /*!40000 ALTER TABLE `watchers` DISABLE KEYS */;
  1323. /*!40000 ALTER TABLE `watchers` ENABLE KEYS */;
  1324. UNLOCK TABLES;
  1325.  
  1326. --
  1327. -- Table structure for table `xcap`
  1328. --
  1329.  
  1330. DROP TABLE IF EXISTS `xcap`;
  1331. /*!40101 SET @saved_cs_client = @@character_set_client */;
  1332. /*!40101 SET character_set_client = utf8 */;
  1333. CREATE TABLE `xcap` (
  1334. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  1335. `username` char(64) NOT NULL,
  1336. `domain` char(64) NOT NULL,
  1337. `doc` blob NOT NULL,
  1338. `doc_type` int(11) NOT NULL,
  1339. `etag` char(64) NOT NULL,
  1340. `source` int(11) NOT NULL,
  1341. `doc_uri` char(128) NOT NULL,
  1342. `port` int(11) NOT NULL,
  1343. PRIMARY KEY (`id`),
  1344. UNIQUE KEY `account_doc_type_idx` (`username`,`domain`,`doc_type`,`doc_uri`),
  1345. KEY `source_idx` (`source`)
  1346. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  1347. /*!40101 SET character_set_client = @saved_cs_client */;
  1348.  
  1349. --
  1350. -- Dumping data for table `xcap`
  1351. --
  1352.  
  1353. LOCK TABLES `xcap` WRITE;
  1354. /*!40000 ALTER TABLE `xcap` DISABLE KEYS */;
  1355. /*!40000 ALTER TABLE `xcap` ENABLE KEYS */;
  1356. UNLOCK TABLES;
  1357. /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
  1358.  
  1359. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  1360. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  1361. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  1362. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  1363. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  1364. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  1365. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  1366.  
  1367. -- Dump completed on 2012-04-10 0:36:20
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement