Yes. you are right. I was thinking to avoid reinventing the wheel.<div>Will write AGIs. Trick is how to charge at 3min 59 sec or 4 min 01 sec during live call.</div><div><br></div><div>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.</div>
<div><br></div><div>Just want a right direction.</div><div><br></div><div>-- <br>Regards,<br><br>Abdul Basit | +92 32 1416 4196</div><div><br></div><div><br></div><div><br></div><div><br></div><div> </div><div><br><div class="gmail_quote">
On Sat, Sep 25, 2010 at 11:37 PM, Tarek Sawah <span dir="ltr"><<a href="mailto:tareksawah@hotmail.com">tareksawah@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<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 USA: +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><br>
<div class="im">> Subject: Re: [asterisk-users] differential billing<br>
><br>
</div><div class="im">> 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<br>
</div><div><div></div><div class="h5">> > 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: 'Asterisk Users Mailing List - Non-Commercial Discussion'<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: Asterisk Users Mailing List - Non-Commercial Discussion<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>
> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
> New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
> <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
><br>
> asterisk-users mailing list<br>
> To UNSUBSCRIBE or update options visit:<br>
> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
><br>
><br>
><br>
> --<br>
> Regards,<br>
><br>
> Abdul Basit | +92 32 1416 4196<br>
><br>
</div></div>> --<br>
> _____________________________________________________________________ --<br>
<div><div></div><div class="h5">> Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> -- New<br>
> to Asterisk? Join us for a live introductory webinar every Thurs:<br>
> <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a> asterisk-users mailing list To<br>
> UNSUBSCRIBE or update options visit:<br>
> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></div></div></blockquote></div>
</div>