<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[Freeswitch-trunk][14902] </title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<div id="header">FreeSWITCH Subversion</div>
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://fisheye.freeswitch.org/changelog/FreeSWITCH?cs=14902">14902</a></dd>
<dt>Author</dt> <dd>voipmaster</dd>
<dt>Date</dt> <dd>2009-09-17 12:27:15 -0500 (Thu, 17 Sep 2009)</dd>
</dl>

<h3>Log Message</h3>
<pre>a Small Script for calling card applications</pre>

<h3>Added Paths</h3>
<ul>
<li>freeswitch/trunk/contrib/DelphiWorld/scripts/sql/</li>
<li><a href="#freeswitchtrunkcontribDelphiWorldscriptssqlcalling_card_mysql5sql">freeswitch/trunk/contrib/DelphiWorld/scripts/sql/calling_card_mysql5.sql</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="freeswitchtrunkcontribDelphiWorldscriptssqlcalling_card_mysql5sql"></a>
<div class="addfile"><h4>Added: freeswitch/trunk/contrib/DelphiWorld/scripts/sql/calling_card_mysql5.sql (0 => 14902)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/contrib/DelphiWorld/scripts/sql/calling_card_mysql5.sql                                (rev 0)
+++ freeswitch/trunk/contrib/DelphiWorld/scripts/sql/calling_card_mysql5.sql        2009-09-17 17:27:15 UTC (rev 14902)
</span><span class="lines">@@ -0,0 +1,186 @@
</span><ins>+-- phpMyAdmin SQL Dump
+-- version 3.1.3.1
+-- http://www.phpmyadmin.net
+--
+-- Host: localhost:3306
+
+-- Generation Time: Sep 17, 2009 at 07:12 PM
+-- Server version: 5.1.34
+-- PHP Version: 5.2.9-2
+
+SET SQL_MODE=&quot;NO_AUTO_VALUE_ON_ZERO&quot;;
+
+
+/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
+/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
+/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
+/*!40101 SET NAMES utf8 */;
+
+--
+-- Database: `mss`
+--
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `tbl_caller_prepaid`
+--
+
+CREATE TABLE `tbl_caller_prepaid` (
+  `cSubscriber` char(60) NOT NULL,
+  `cRouteNbr` char(60) NOT NULL DEFAULT '',
+  `nRateId` int(11) DEFAULT NULL,
+  PRIMARY KEY (`cSubscriber`,`cRouteNbr`)
+) ENGINE=MyISAM DEFAULT CHARSET=latin1;
+
+--
+-- Dumping data for table `tbl_caller_prepaid`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `tbl_callingcard_balance`
+--
+
+CREATE TABLE `tbl_callingcard_balance` (
+  `cCard` char(32) NOT NULL,
+  `cPassword` char(32) DEFAULT NULL,
+  `nBalance` int(11) DEFAULT NULL,
+  PRIMARY KEY (`cCard`)
+) ENGINE=MyISAM DEFAULT CHARSET=latin1;
+
+--
+-- Dumping data for table `tbl_callingcard_balance`
+--
+
+INSERT INTO `tbl_callingcard_balance` VALUES('1000000000', '1000000000', 50000);
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `tbl_callingcard_cdr`
+--
+
+CREATE TABLE `tbl_callingcard_cdr` (
+  `cCard` char(32) DEFAULT NULL,
+  `cCalled` char(32) DEFAULT NULL,
+  `StartTime` datetime DEFAULT NULL,
+  `ConnTime` datetime DEFAULT NULL,
+  `ReleaseTime` datetime DEFAULT NULL,
+  `nDuration` int(11) DEFAULT NULL,
+  `nFee` int(11) DEFAULT NULL
+) ENGINE=MyISAM DEFAULT CHARSET=latin1;
+
+--
+-- Dumping data for table `tbl_callingcard_cdr`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `tbl_callingcard_fee_matrix`
+--
+
+CREATE TABLE `tbl_callingcard_fee_matrix` (
+  `cRouteNbr` char(32) NOT NULL,
+  `nRateId` int(11) DEFAULT NULL,
+  PRIMARY KEY (`cRouteNbr`)
+) ENGINE=MyISAM DEFAULT CHARSET=latin1;
+
+--
+-- Dumping data for table `tbl_callingcard_fee_matrix`
+--
+
+INSERT INTO `tbl_callingcard_fee_matrix` VALUES('0', 1);
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `tbl_cdr`
+--
+
+CREATE TABLE `tbl_cdr` (
+  `nDirection` int(11) DEFAULT NULL,
+  `cCaller` char(60) DEFAULT NULL,
+  `cCalled` char(60) DEFAULT NULL,
+  `nSubType` int(11) DEFAULT NULL,
+  `tStartTime` datetime DEFAULT NULL,
+  `tConnectTime` datetime DEFAULT NULL,
+  `tReleaseTime` datetime DEFAULT NULL,
+  `nDuration` int(11) DEFAULT NULL,
+  `nFee` int(11) DEFAULT NULL
+) ENGINE=MyISAM DEFAULT CHARSET=latin1;
+
+--
+-- Dumping data for table `tbl_cdr`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `tbl_prepaid_rate`
+--
+
+CREATE TABLE `tbl_prepaid_rate` (
+  `rate_id` int(11) NOT NULL,
+  `tariff_interval` int(11) DEFAULT NULL,
+  `tariff` int(11) DEFAULT NULL,
+  PRIMARY KEY (`rate_id`)
+) ENGINE=MyISAM DEFAULT CHARSET=latin1;
+
+--
+-- Dumping data for table `tbl_prepaid_rate`
+--
+
+INSERT INTO `tbl_prepaid_rate` VALUES(1, 60, 1);
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `tbl_sub_balance`
+--
+
+CREATE TABLE `tbl_sub_balance` (
+  `cSubName` char(60) NOT NULL,
+  `nBalance` int(11) DEFAULT NULL,
+  PRIMARY KEY (`cSubName`)
+) ENGINE=MyISAM DEFAULT CHARSET=latin1;
+
+--
+-- Dumping data for table `tbl_sub_balance`
+--
+
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `tbl_ver`
+--
+
+CREATE TABLE `tbl_ver` (
+  `table_id` int(11) NOT NULL,
+  `version` int(11) DEFAULT NULL,
+  `description` char(80) DEFAULT NULL,
+  PRIMARY KEY (`table_id`)
+) ENGINE=MyISAM DEFAULT CHARSET=latin1;
+
+--
+-- Dumping data for table `tbl_ver`
+--
+
+INSERT INTO `tbl_ver` VALUES(0, 1, 'tbl_ver');
+INSERT INTO `tbl_ver` VALUES(1, 1, 'tbl_prepaid_rate');
+INSERT INTO `tbl_ver` VALUES(4, 1, 'tbl_sub_balance');
+INSERT INTO `tbl_ver` VALUES(2, 2, 'tbl_caller_prepaid');
+INSERT INTO `tbl_ver` VALUES(3, 1, 'tbl_cdr');
+INSERT INTO `tbl_ver` VALUES(20, 1, 'tbl_callingcard_balance');
+INSERT INTO `tbl_ver` VALUES(22, 1, 'tbl_callingcard_fee_matrix');
+INSERT INTO `tbl_ver` VALUES(21, 1, 'tbl_callingcard_cdr');
+
+/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
+/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
+/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
</ins></span></pre>
</div>
</div>
<div id="footer">See you at ClueCon</div>

</body>
</html>