Hi All, How can we develop a differential charging setup using asterisk like for 1st min we charge 1 cent, for 2nd min we charge 0.5 cent, for next 30 sec charge @15cent, etc? Any idea, suggestion. -- Regards, Abdul Basit | +92 32 1416 4196 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100924/381f4b9a/attachment.htm
_____ From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Abdul Basit Sent: Friday, September 24, 2010 8:13 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] differential billing Hi All, How can we develop a differential charging setup using asterisk like for 1st min we charge 1 cent, for 2nd min we charge 0.5 cent, for next 30 sec charge @15cent, etc? Any idea, suggestion. -- Regards, Abdul Basit | +92 32 1416 4196 Since the CDR records the call duration in seconds, this should be a relative "no-brainer", assuming you are billing post-call. If you are wanting to generate the charges during the live calls, AMI would be your best option for getting a running duration of the connection. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100924/7be9fd90/attachment.htm
A.R. Nasir Qureshi
2010-Sep-24 13:21 UTC
[asterisk-users] [asterisk-pakistan] differential billing
It has nothing to do with asterisk. A separate billing system has to be made, where the billing / rate policies are defined. I can help you out further, so feel free to contact me. Regards, Nasir. 0333-2302834 On 24-09-2010 18:13, Abdul Basit wrote:> > Hi All, > > > How can we develop a differential charging setup using asterisk like > for 1st min we charge 1 cent, for 2nd min we charge 0.5 cent, for next > 30 sec charge @15cent, etc? > > Any idea, suggestion. > > -- > Regards, > > Abdul Basit | +92 32 1416 4196 > __._,_.___ > Reply to sender > <mailto:basit.engg at gmail.com?subject=differential%20billing> | Reply > to group > <mailto:asterisk-pakistan at yahoogroups.com?subject=differential%20billing> > | Reply via web post > <http://groups.yahoo.com/group/asterisk-pakistan/post;_ylc=X3oDMTJwY2xiMjRuBF9TAzk3MzU5NzE0BGdycElkAzIyMDY4OTkyBGdycHNwSWQDMTcwNTAwNDcyNgRtc2dJZAM2NjkEc2VjA2Z0cgRzbGsDcnBseQRzdGltZQMxMjg1MzM0MDIy?act=reply&messageNum=669> > | Start a New Topic > <http://groups.yahoo.com/group/asterisk-pakistan/post;_ylc=X3oDMTJmbnI2djd2BF9TAzk3MzU5NzE0BGdycElkAzIyMDY4OTkyBGdycHNwSWQDMTcwNTAwNDcyNgRzZWMDZnRyBHNsawNudHBjBHN0aW1lAzEyODUzMzQwMjI-> > > Messages in this topic > <http://groups.yahoo.com/group/asterisk-pakistan/message/669;_ylc=X3oDMTMzc3NtdW0zBF9TAzk3MzU5NzE0BGdycElkAzIyMDY4OTkyBGdycHNwSWQDMTcwNTAwNDcyNgRtc2dJZAM2NjkEc2VjA2Z0cgRzbGsDdnRwYwRzdGltZQMxMjg1MzM0MDIyBHRwY0lkAzY2OQ--> > (1) > Recent Activity: > > Visit Your Group > <http://groups.yahoo.com/group/asterisk-pakistan;_ylc=X3oDMTJmZmR2c29yBF9TAzk3MzU5NzE0BGdycElkAzIyMDY4OTkyBGdycHNwSWQDMTcwNTAwNDcyNgRzZWMDdnRsBHNsawN2Z2hwBHN0aW1lAzEyODUzMzQwMjI-> > > <p>Copyright ? 2009 <a href="http://www.asteriskpakistan.com" > title="Asterisk Pakistan">Asterisk Pakistan</a></p> > Yahoo! Groups > <http://groups.yahoo.com/;_ylc=X3oDMTJlMTEzMDVoBF9TAzk3NDc2NTkwBGdycElkAzIyMDY4OTkyBGdycHNwSWQDMTcwNTAwNDcyNgRzZWMDZnRyBHNsawNnZnAEc3RpbWUDMTI4NTMzNDAyMg--> > > Switch to: Text-Only > <mailto:asterisk-pakistan-traditional at yahoogroups.com?subject=Change%20Delivery%20Format:%20Traditional>, > Daily Digest > <mailto:asterisk-pakistan-digest at yahoogroups.com?subject=Email%20Delivery:%20Digest> > . Unsubscribe > <mailto:asterisk-pakistan-unsubscribe at yahoogroups.com?subject=Unsubscribe> > . Terms of Use <http://docs.yahoo.com/info/terms/> > . > > __,_._,___-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100924/a094a4fc/attachment.htm
Thank you Danny. I am thinking for AMI events. Do we need some code level change? As i want asterisk to push events to some listener rather than i ask via AMI. For hight call volume read from AMI may be an over head on asterisk, i think. On Fri, Sep 24, 2010 at 6:19 PM, Danny Nicholas <danny at debsinc.com> wrote:> ------------------------------ > > *From:* asterisk-users-bounces at lists.digium.com [mailto: > asterisk-users-bounces at lists.digium.com] *On Behalf Of *Abdul Basit > *Sent:* Friday, September 24, 2010 8:13 AM > *To:* Asterisk Users Mailing List - Non-Commercial Discussion > *Subject:* [asterisk-users] differential billing > > > > Hi All, > > > > How can we develop a differential charging setup using asterisk like for > 1st min we charge 1 cent, for 2nd min we charge 0.5 cent, for next 30 sec > charge @15cent, etc? > > > > Any idea, suggestion. > > -- > Regards, > > Abdul Basit | +92 32 1416 4196 > > > > Since the CDR records the call duration in seconds, this should be a > relative ?no-brainer?, assuming you are billing post-call. If you are > wanting to generate the charges during the live calls, AMI would be your > best option for getting a running duration of the connection. > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- Regards, Abdul Basit | +92 32 1416 4196 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100924/f2e418f4/attachment.htm
_____ From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Abdul Basit Sent: Friday, September 24, 2010 8:41 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] differential billing Thank you Danny. I am thinking for AMI events. Do we need some code level change? As i want asterisk to push events to some listener rather than i ask via AMI. For hight call volume read from AMI may be an over head on asterisk, i think. <snip> You can actually use AMI as a "listener" to track the progress of all calls (use uniqueid to keep the calls separated). In PERL, I have a module that I copied down from voip-info.org that I can use to give me all or selected events for all calls in the listening period I choose. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100924/1e316c14/attachment.htm