[Asterisk-Dev] Real Time Billing ??

Ousmane Wilane wilane at arc.sn
Sun May 29 04:50:51 MST 2005


Sorry, this was just meant to the orginal poster. Didn't notice that
*-dev was cc'ed. Sorry for your time.

--
Ousmane Wilane


>>>>> "OW" == Ousmane Wilane <wilane at arc.sn> writes:

>>>>> "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.

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

  OW> The other part of a billing system is achieved with CDR in DB
  OW> (Already done) with triggers on them (trivial joke). There's
  OW> even an * package called astcc showing a full example used by
  OW> 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
  OW> _______________________________________________ Asterisk-Dev
  OW> mailing list Asterisk-Dev at lists.digium.com
  OW> http://lists.digium.com/mailman/listinfo/asterisk-dev To
  OW> UNSUBSCRIBE or update options visit:
  OW> http://lists.digium.com/mailman/listinfo/asterisk-dev



More information about the asterisk-dev mailing list