[Asterisk-Dev] Real Time Billing ??

Ousmane Wilane wilane at arc.sn
Sun May 29 04:42:30 MST 2005


>>>>> "AKA" == Abdelkader ALLAM <qoslab at gmail.com> writes:

  AKA> Hello, I am wondering on how to implement real time billing in
  AKA> asterisk.

  AKA> My aim is to be able to make some real time billing of calls
  AKA> through a specific application (radius billing server, database
  AKA> stuff.., or anything) by implementing hooks in asterisk.

  AKA> For example, imagine you have prepaid account for user A.

  AKA> User A call B and is near to 0 balance. In most of the scripts
  AKA> I have seen people use the autohangup command.

  AKA> This workaround is ok for simple stuff but imagine you have a
  AKA> billing account assigned to many users, when there is more than
  AKA> 1 call at the same time autohangup workaround is inefficient.

No you didn't read enough as usual :). This problem is already solved
and no need to autohangup, no need to hook anything (you'll got it
wrong anyway :). Read the doc of Dial and you'll see that any call can
get hanged up for a given duration and even announce can be played
before the hangup for a configurable duration (that even can be
recurrent).

The other part of a billing system is achieved with CDR in DB (Already
done) with triggers on them (trivial joke). There's even an * package
called astcc showing a full example used by some folks all around the
* community.

  AKA> Same case if the user call A and B at the same time.

  AKA> Any idea on how to simply implement this without modifiyng too
  AKA> much the asterisk code.


  AKA> Thanks for your input.

  AKA> Kader _______________________________________________
  AKA> Asterisk-Dev mailing list Asterisk-Dev at lists.digium.com
  AKA> http://lists.digium.com/mailman/listinfo/asterisk-dev To
  AKA> UNSUBSCRIBE or update options visit:
  AKA> http://lists.digium.com/mailman/listinfo/asterisk-dev



More information about the asterisk-dev mailing list