i am trying to create something like a prepaid card number.
where i can create prepaid cards and assign credits to it, then this credit must be reduced after each minute of a call.
so i should be able to create cards, assign credits, credits get reduced every minute.
this should only work for a specific trunk.
is it easier for me to customize a SQL report from the CDR and use it ?
or should I install some billing software? is freeRadius a good example? a2billing?
so what do u propose guys? first or second choice? what are the pros and cons of each choice?
If you cant code and doesn’t know the Asterisk dial plan logic use a2billing, if not you can use the L option of the dial command and MYSQL to complete this project.
So just to make it clear, a2billing is a software that allows me to do what i need and it supports pjsip channel?
And yes i think i can code.
I believe i need to create sql database, it has to be a real time database. Then start an event where if could count minutes and so on which then i can reduce the credits while call is still going? Something like that i guess
count the time real time is harder, better set the time limit before dialing using the L option and the destination number and the amount of minutes for that particular customer
Ohhh thanks.
So i think it s a doable thing after all.
I need to set L option(which i still not familiar with)
Which sets for me time limit.
And this will trigger a flag(m assuming), where then i have the right to hang up the call!