Re: [asterisk-users] differential billing

2010-09-26 Thread Faisal Hanif
  Hi Abdul-Basit,

If you need only different intervals of billing you can easily do it 
using any AGI as we are doing it in Perl AGIs using post call billing. 
But if you need realtime billing then the most stable and flexible 
option is to use FastAGI+ AMI. I have tested it in JAVA and it worked 
for me up to a load 100 calls. It may work more but I haven't tested it. 
Asterisk and Billing-Server was running on separate machines.

For further help you can call me (as you know my number :P).

Regards,


Faisal Hanif

-- 
_
-- 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


Re: [asterisk-users] differential billing

2010-09-25 Thread Don Kelly
(Caution-top posting. Delete Before Reading if that's a problem for you.)

 

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.

 

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.

--Don

Don Kelly

PCF Corp
People Come First
651 842-1000
888 Don Kell(y)
651 842-1001 fax

  _  

From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Abdul Basit
Sent: Saturday, September 25, 2010 4:43 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] differential billing

 

Yes. you are right. I was thinking to avoid reinventing the wheel.

Will write AGIs. Trick is how to charge at 3min 59 sec or 4 min 01 sec
during live call.

 

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.

 

Just want a right direction.

 

-- 
Regards,

Abdul Basit | +92 32 1416 4196

 

 

 

 

   

 

On Sat, Sep 25, 2010 at 11:37 PM, Tarek Sawah 
wrote:


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?



-- Tarek Sawah

Integrated Digital Systems

CCNA, MCSE, RHCE, VoIP USA: +13864929993









> From: basit.e...@gmail.com
> Date: Sat, 25 Sep 2010 23:27:56 +0500
> To: asterisk-users@lists.digium.com

> Subject: Re: [asterisk-users] differential billing
>

> Tarek,
>
> I already tested this feature with a2billing.
>
> This is difficult to extract the working code from a2billing.
> Also we are developing billing system so this is not a good idea
> to deploy another billing system in parallel.
>
> Any idea or link might help full.
>
>
>
>
> On Fri, Sep 24, 2010 at 9:30 PM, Tarek Sawah

> > wrote:
>
> A quick answer? A2billing.
>
> It has what you call it differential billing.. but they call it
> progressive billing.. 3 steps .. for 3 different rates ..
>
> Go for it.. easy to setup and quick to learn and use.
>
> Regards
>
>
>
> From:
> asterisk-users-boun...@lists.digium.com
> [mailto:asterisk-users-boun...@lists.digium.com]
> On Behalf Of Danny Nicholas
> Sent: Friday, September 24, 2010 4:19 PM
>
> To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
> Subject: Re: [asterisk-users] differential billing
>
>
>
> 
>
> From:
> asterisk-users-boun...@lists.digium.com
> [mailto:asterisk-users-boun...@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.
>
>
> --
> Regards,
>
> Abdul Basit | +92 32 1416 4196



-- 
_
-- 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

Re: [asterisk-users] differential billing

2010-09-25 Thread Tarek Sawah

the way i see it can be done.. is using ${CDR(billsec)}  into a dial plan or 
your AGI, A2billing is a script that runs and waits till the call ends then 
exists with status 0. it doesn't listen to AMI (as i expect) it pulls the 
variables after the channel is hungup and then does the calculation something 
like 
ROUND(${CDR(billsec)}/60) to get FULL MINUTES if calculation in full minute 
round for example then do the calculation in mysql when inserting the 
sessionbill or let the PHP or AGI script do the math for you.
200 calls won't be a problem with Server that has good resources.
Just give it a try and let me know.



Tarek Sawah

Information Technology Adviser

Integrated Digital Systems

CCNP, MCSE, RHCE, TELECOM

USA: +1 386 492 9993








> From: basit.e...@gmail.com
> Date: Sun, 26 Sep 2010 02:43:05 +0500
> To: asterisk-users@lists.digium.com
> Subject: Re: [asterisk-users] differential billing
>
> Yes. you are right. I was thinking to avoid reinventing the wheel.
> Will write AGIs. Trick is how to charge at 3min 59 sec or 4 min 01 sec
> during live call.
>
> 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.
>
> Just want a right direction.
>
> --
> Regards,
>
> Abdul Basit | +92 32 1416 4196
>
>
>
>
>
>
> On Sat, Sep 25, 2010 at 11:37 PM, Tarek Sawah
> > wrote:
>
> 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?
>
>
>
> -- Tarek Sawah
>
> Integrated Digital Systems
>
> CCNA, MCSE, RHCE, VoIP USA: +13864929993
>
>
>
>
>
>
>
>
> ________
> > From: basit.e...@gmail.com
> > Date: Sat, 25 Sep 2010 23:27:56 +0500
> > To: asterisk-users@lists.digium.com
> > Subject: Re: [asterisk-users] differential billing
> >
> > Tarek,
> >
> > I already tested this feature with a2billing.
> >
> > This is difficult to extract the working code from a2billing.
> > Also we are developing billing system so this is not a good idea
> > to deploy another billing system in parallel.
> >
> > Any idea or link might help full.
> >
> >
> >
> >
> > On Fri, Sep 24, 2010 at 9:30 PM, Tarek Sawah
> > > wrote:
> >
> > A quick answer? A2billing.
> >
> > It has what you call it differential billing.. but they call it
> > progressive billing.. 3 steps .. for 3 different rates ..
> >
> > Go for it.. easy to setup and quick to learn and use.
> >
> > Regards
> >
> >
> >
> > From:
> >
> asterisk-users-boun...@lists.digium.com
> >
> [mailto:asterisk-users-boun...@lists.digium.com]
> > On Behalf Of Danny Nicholas
> > Sent: Friday, September 24, 2010 4:19 PM
> >
> > To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
> > Subject: Re: [asterisk-users] differential billing
> >
> >
> >
> > 
> >
> > From:
> >
> asterisk-users-boun...@lists.digium.com
> >
> [mailto:asterisk-users-boun...@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

Re: [asterisk-users] differential billing

2010-09-25 Thread Abdul Basit
Yes. you are right. I was thinking to avoid reinventing the wheel.
Will write AGIs. Trick is how to charge at 3min 59 sec or 4 min 01 sec
during live call.

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.

Just want a right direction.

-- 
Regards,

Abdul Basit | +92 32 1416 4196






On Sat, Sep 25, 2010 at 11:37 PM, Tarek Sawah wrote:

>
> 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?
>
>
>
> -- Tarek Sawah
>
> Integrated Digital Systems
>
> CCNA, MCSE, RHCE, VoIP USA: +13864929993
>
>
>
>
>
>
>
>
> 
> > From: basit.e...@gmail.com
> > Date: Sat, 25 Sep 2010 23:27:56 +0500
> > To: asterisk-users@lists.digium.com
> > Subject: Re: [asterisk-users] differential billing
> >
> > Tarek,
> >
> > I already tested this feature with a2billing.
> >
> > This is difficult to extract the working code from a2billing.
> > Also we are developing billing system so this is not a good idea
> > to deploy another billing system in parallel.
> >
> > Any idea or link might help full.
> >
> >
> >
> >
> > On Fri, Sep 24, 2010 at 9:30 PM, Tarek Sawah
> > > wrote:
> >
> > A quick answer? A2billing.
> >
> > It has what you call it differential billing.. but they call it
> > progressive billing.. 3 steps .. for 3 different rates ..
> >
> > Go for it.. easy to setup and quick to learn and use.
> >
> > Regards
> >
> >
> >
> > From:
> > asterisk-users-boun...@lists.digium.com
> > [mailto:asterisk-users-boun...@lists.digium.com]
> > On Behalf Of Danny Nicholas
> > Sent: Friday, September 24, 2010 4:19 PM
> >
> > To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
> > Subject: Re: [asterisk-users] differential billing
> >
> >
> >
> > 
> >
> > From:
> > asterisk-users-boun...@lists.digium.com
> > [mailto:asterisk-users-boun...@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
> >
> > --
> > _ --
> > 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/ast

Re: [asterisk-users] differential billing

2010-09-25 Thread Tarek Sawah

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?



-- Tarek Sawah

Integrated Digital Systems

CCNA, MCSE, RHCE, VoIP USA: +13864929993









> From: basit.e...@gmail.com
> Date: Sat, 25 Sep 2010 23:27:56 +0500
> To: asterisk-users@lists.digium.com
> Subject: Re: [asterisk-users] differential billing
>
> Tarek,
>
> I already tested this feature with a2billing.
>
> This is difficult to extract the working code from a2billing.
> Also we are developing billing system so this is not a good idea
> to deploy another billing system in parallel.
>
> Any idea or link might help full.
>
>
>
>
> On Fri, Sep 24, 2010 at 9:30 PM, Tarek Sawah
> > wrote:
>
> A quick answer? A2billing.
>
> It has what you call it differential billing.. but they call it
> progressive billing.. 3 steps .. for 3 different rates ..
>
> Go for it.. easy to setup and quick to learn and use.
>
> Regards
>
>
>
> From:
> asterisk-users-boun...@lists.digium.com
> [mailto:asterisk-users-boun...@lists.digium.com]
> On Behalf Of Danny Nicholas
> Sent: Friday, September 24, 2010 4:19 PM
>
> To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
> Subject: Re: [asterisk-users] differential billing
>
>
>
> 
>
> From:
> asterisk-users-boun...@lists.digium.com
> [mailto:asterisk-users-boun...@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
>
> --
> _ --
> 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
  
-- 
_
-- 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


Re: [asterisk-users] differential billing

2010-09-25 Thread Abdul Basit
Tarek,

I already tested this feature with a2billing.

This is difficult to extract the working code from a2billing.
Also we are developing billing system so this is not a good idea
to deploy another billing system in parallel.

Any idea or link might help full.




On Fri, Sep 24, 2010 at 9:30 PM, Tarek Sawah  wrote:

>  A quick answer? A2billing.
>
> It has what you call it differential billing.. but they call it progressive
> billing.. 3 steps .. for 3 different rates ..
>
> Go for it.. easy to setup and quick to learn and use.
>
> Regards
>
>
>
> *From:* asterisk-users-boun...@lists.digium.com [mailto:
> asterisk-users-boun...@lists.digium.com] *On Behalf Of *Danny Nicholas
> *Sent:* Friday, September 24, 2010 4:19 PM
>
> *To:* 'Asterisk Users Mailing List - Non-Commercial Discussion'
> *Subject:* Re: [asterisk-users] differential billing
>
>
>  --
>
> *From:* asterisk-users-boun...@lists.digium.com [mailto:
> asterisk-users-boun...@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
-- 
_
-- 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

Re: [asterisk-users] differential billing

2010-09-24 Thread Tarek Sawah
A quick answer? A2billing. 

It has what you call it differential billing.. but they call it progressive
billing.. 3 steps .. for 3 different rates .. 

Go for it.. easy to setup and quick to learn and use.

Regards

 

From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Danny Nicholas
Sent: Friday, September 24, 2010 4:19 PM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: Re: [asterisk-users] differential billing

 

  _  

From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@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

Re: [asterisk-users] differential billing

2010-09-24 Thread Tarek Sawah
A quick answer? A2billing. 

It has what you call it differential billing.. but they call it progressive
billing.. 3 steps .. for 3 different rates .. 

Go for it.. easy to setup and quick to learn and use.

Regards

 

From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Danny Nicholas
Sent: Friday, September 24, 2010 4:19 PM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: Re: [asterisk-users] differential billing

 

  _  

From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@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

Re: [asterisk-users] differential billing

2010-09-24 Thread Danny Nicholas
  _  

From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@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.

 



 

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.

-- 
_
-- 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

Re: [asterisk-users] differential billing

2010-09-24 Thread Abdul Basit
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  wrote:

>   --
>
> *From:* asterisk-users-boun...@lists.digium.com [mailto:
> asterisk-users-boun...@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
-- 
_
-- 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

Re: [asterisk-users] differential billing

2010-09-24 Thread Danny Nicholas
  _  

From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@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

[asterisk-users] differential billing

2010-09-24 Thread Abdul Basit
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
-- 
_
-- 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