[asterisk-users] Recharge Dial Limit....?
Matt Riddell
matt at venturevoip.com
Tue Jul 15 20:54:09 CDT 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Douglas Garstang wrote:
> Thanks, but how does that extend the core functionality of Dial()? If Dial() can't do it, how does a wrapper do it?
Did you see the patch that someone pointed out in your last
conversation? That does exactly that.
If you didn't want a patched system you could do it the same as I did
(albeit a number of years ago) for call shops.
When a person walks in they pay $5 (or whatever at the desk).
You update the db and assign them a phone.
A second process is connected to Asterisk via the manager for call control.
It checks the DB every few seconds, and updates the credit based on how
long the person has been talking and the rate to that destination.
They can add more money at any time, and the DB value is updated.
When they run out of credit the call is killed via the manager.
- --
Kind Regards,
Matt Riddell
Director
_______________________________________________
http://www.venturevoip.com (Great new VoIP end to end solution)
http://www.venturevoip.com/news.php (Daily Asterisk News - html)
http://www.venturevoip.com/newrssfeed.php (Daily Asterisk News - rss)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIfVTBDQNt8rg0Kp4RAjbLAKCGQjQCFP4dZT7GMjCSomNmUKHlKQCdH+EW
Rf8imcVun0O2IMH47zwylfg=
=nmoF
-----END PGP SIGNATURE-----
More information about the asterisk-users
mailing list