<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="country-region"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>(Caution&#8212;top posting. Delete Before
Reading if that&#8217;s a problem for you.)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>As I see it, real-time billing is only
necessary if you have multiple people making simultaneous calls against a
prepaid balance or limited credit limit.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>In other situations, you can simply make a
determination at the beginning of the call that it&#8217;s prepaid or otherwise
valid for a given period of time&#8212;4 minutes, 17 minutes, 24 hours+ or
whatever. Then you can let it go &#8216;til you want to give a 2-minute
warning, cut it off or whatever. The actual billing would be after the call is
terminated. Not much overhead.<o:p></o:p></span></font></p>

<div>

<p><font size=2 color=navy face=Arial><span lang=EN style='font-size:10.0pt;
font-family:Arial;color:navy'>--Don</span></font><font color=navy><span
lang=EN style='color:navy'><o:p></o:p></span></font></p>

<p><font size=2 color=navy face=Arial><span lang=EN style='font-size:10.0pt;
font-family:Arial;color:navy'>Don Kelly</span></font><font color=navy><span
lang=EN style='color:navy'><o:p></o:p></span></font></p>

<p><font size=2 color=navy face=Arial><span lang=EN style='font-size:10.0pt;
font-family:Arial;color:navy'>PCF Corp<br>
People Come First<br>
651 842-1000<br>
888 Don Kell(y)<br>
651 842-1001 fax</span></font><span lang=EN><o:p></o:p></span></p>

</div>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Abdul Basit<br>
<b><span style='font-weight:bold'>Sent:</span></b> Saturday, September 25, 2010
4:43 PM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">Asterisk
 Users Mailing List - Non-Commercial Discussion</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [asterisk-users]
differential billing</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Yes. you are right. I was thinking to avoid reinventing the wheel.<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Will write AGIs. Trick is how to charge at 3min 59 sec or 4 min 01 sec
during live call.<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>We can monitor channel variables over AMI. But this will be a CPU
overhead (say for 100 or 200 calls) if we monitor channel variables on every
second. I want some thing to push channel details on each transition (or events
like IVR level changed, call duration updated to next minute) rather than i
request on AMI. Don't know if this logic is workable.<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Just want a right direction.<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>--&nbsp;<br>
Regards,<br>
<br>
Abdul Basit | +92 32 1416 4196<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;&nbsp;&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>On Sat, Sep 25, 2010 at 11:37 PM, Tarek Sawah &lt;<a
href="mailto:tareksawah@hotmail.com">tareksawah@hotmail.com</a>&gt; wrote:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
if you are deploying your own system.. then you can build a small application
(AGI) that would do the math for you .. will devide the call duration into the
stages you want .. and does the calculation.. i think MYSQL already can do
that.. but a PHP script will do it faster and easier.. or like our billing
system.. C# application interacting with Asterisk doing all the math. after all
it's all SQL and Asterisk working. you can do that with a dial plan i believe..
so why not build an AGI to do it for you?<br>
<br>
<br>
<br>
-- Tarek Sawah<br>
<br>
Integrated Digital Systems<br>
<br>
CCNA, MCSE, RHCE, VoIP <st1:country-region w:st="on"><st1:place w:st="on">USA</st1:place></st1:country-region>:
+13864929993<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
________________________________<br>
&gt; From: <a href="mailto:basit.engg@gmail.com">basit.engg@gmail.com</a><br>
&gt; Date: Sat, 25 Sep 2010 23:27:56 +0500<br>
&gt; To: <a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a><o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&gt; Subject: Re: [asterisk-users] differential billing<br>
&gt;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&gt; Tarek,<br>
&gt;<br>
&gt; I already tested this feature with a2billing.<br>
&gt;<br>
&gt; This is difficult to extract the working code from a2billing.<br>
&gt; Also we are developing billing system so this is not a good idea<br>
&gt; to deploy another billing system in parallel.<br>
&gt;<br>
&gt; Any idea or link might help full.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Fri, Sep 24, 2010 at 9:30 PM, Tarek Sawah<o:p></o:p></span></font></p>

</div>

<div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&gt; &gt; wrote:<br>
&gt;<br>
&gt; A quick answer? A2billing.<br>
&gt;<br>
&gt; It has what you call it differential billing.. but they call it<br>
&gt; progressive billing.. 3 steps .. for 3 different rates ..<br>
&gt;<br>
&gt; Go for it.. easy to setup and quick to learn and use.<br>
&gt;<br>
&gt; Regards<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; From:<br>
&gt; <a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a><br>
&gt; [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>]<br>
&gt; On Behalf Of Danny Nicholas<br>
&gt; Sent: Friday, September 24, 2010 4:19 PM<br>
&gt;<br>
&gt; To: '<st1:PersonName w:st="on">Asterisk Users Mailing List -
 Non-Commercial Discussion</st1:PersonName>'<br>
&gt; Subject: Re: [asterisk-users] differential billing<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ________________________________<br>
&gt;<br>
&gt; From:<br>
&gt; <a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a><br>
&gt; [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>]<br>
&gt; On Behalf Of Abdul Basit<br>
&gt;<br>
&gt; Sent: Friday, September 24, 2010 8:13 AM<br>
&gt; To: <st1:PersonName w:st="on">Asterisk Users Mailing List - Non-Commercial
 Discussion</st1:PersonName><br>
&gt; Subject: [asterisk-users] differential billing<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Hi All,<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; How can we develop a differential charging setup using asterisk like<br>
&gt; for 1st min we charge 1 cent, for 2nd min we charge 0.5 cent, for next<br>
&gt; 30 sec charge @15cent, etc?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Any idea, suggestion.<br>
&gt;<br>
&gt; --<br>
&gt; Regards,<br>
&gt;<br>
&gt; Abdul Basit | +92 32 1416 4196<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Since the CDR records the call duration in seconds, this should be a<br>
&gt; relative &#8220;no-brainer&#8221;, assuming you are billing post-call. If
you are<br>
&gt; wanting to generate the charges during the live calls, AMI would be<br>
&gt; your best option for getting a running duration of the connection.<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Regards,<br>
&gt;<br>
&gt; Abdul Basit | +92 32 1416 4196<br>
<br>
<o:p></o:p></span></font></p>

</div>

</div>

</div>

</div>

</div>

</body>

</html>