<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—top posting. Delete Before
Reading if that’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> </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> </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’s prepaid or otherwise
valid for a given period of time—4 minutes, 17 minutes, 24 hours+ or
whatever. Then you can let it go ‘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> </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> </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> </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> </o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>-- <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> </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> </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> </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> </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></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> </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 <<a
href="mailto:tareksawah@hotmail.com">tareksawah@hotmail.com</a>> 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>
> From: <a href="mailto:basit.engg@gmail.com">basit.engg@gmail.com</a><br>
> Date: Sat, 25 Sep 2010 23:27:56 +0500<br>
> 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'>> Subject: Re: [asterisk-users] differential billing<br>
><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'>> Tarek,<br>
><br>
> I already tested this feature with a2billing.<br>
><br>
> This is difficult to extract the working code from a2billing.<br>
> Also we are developing billing system so this is not a good idea<br>
> to deploy another billing system in parallel.<br>
><br>
> Any idea or link might help full.<br>
><br>
><br>
><br>
><br>
> 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'>> > wrote:<br>
><br>
> A quick answer? A2billing.<br>
><br>
> It has what you call it differential billing.. but they call it<br>
> progressive billing.. 3 steps .. for 3 different rates ..<br>
><br>
> Go for it.. easy to setup and quick to learn and use.<br>
><br>
> Regards<br>
><br>
><br>
><br>
> From:<br>
> <a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a><br>
> [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>]<br>
> On Behalf Of Danny Nicholas<br>
> Sent: Friday, September 24, 2010 4:19 PM<br>
><br>
> To: '<st1:PersonName w:st="on">Asterisk Users Mailing List -
Non-Commercial Discussion</st1:PersonName>'<br>
> Subject: Re: [asterisk-users] differential billing<br>
><br>
><br>
><br>
> ________________________________<br>
><br>
> From:<br>
> <a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a><br>
> [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>]<br>
> On Behalf Of Abdul Basit<br>
><br>
> Sent: Friday, September 24, 2010 8:13 AM<br>
> To: <st1:PersonName w:st="on">Asterisk Users Mailing List - Non-Commercial
Discussion</st1:PersonName><br>
> Subject: [asterisk-users] differential billing<br>
><br>
><br>
><br>
> Hi All,<br>
><br>
><br>
><br>
> How can we develop a differential charging setup using asterisk like<br>
> for 1st min we charge 1 cent, for 2nd min we charge 0.5 cent, for next<br>
> 30 sec charge @15cent, etc?<br>
><br>
><br>
><br>
> Any idea, suggestion.<br>
><br>
> --<br>
> Regards,<br>
><br>
> Abdul Basit | +92 32 1416 4196<br>
><br>
><br>
><br>
> Since the CDR records the call duration in seconds, this should be a<br>
> relative “no-brainer”, assuming you are billing post-call. If
you are<br>
> wanting to generate the charges during the live calls, AMI would be<br>
> your best option for getting a running duration of the connection.<br>
><br>
><br>
> --<br>
> Regards,<br>
><br>
> Abdul Basit | +92 32 1416 4196<br>
<br>
<o:p></o:p></span></font></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>