I want to make it so when a customer is signing up on my website that next to the phone number field, there is a "verify" button, where once clicked a random string of digits is created, say 5 digits long, and one the verify button is clicked a phone call is placed to the number and a voice says something like "this is company and your phone verification number is 4 2 5 2 5" and repeats for a few minutes or until the correct number string is typed into the phone. Once the phone number is verified the customer is allowed to submit the application.
I am looking to accomplishing this with asterisk and php. Is FastAGI the best way to accomplish this. So frat my research says that FastAGI is the best way, would I have to use http://code.google.com/p/fastagi-php-drclue/? Or should I just be using the regular asterisk agi?
How is the best way to pass the DTMF tones back the the PHP script?
This sounds like a pretty easy job for "AsterClick" [ http://www.asterclick.drclue.net ] AsterClick is the worlds only event driven Asterisk AMI/(XML)/HTML5 JavaScript
In the AsterClick context , your web page can actually place the call in real time and validate the results entirely in JavaScript.
If your looking for something a little more generic, simply create a routine that takes a phone number and emits a pin code based upon the number itself so that the Asterisk dialplan and your web page need not communicate at all.
I would build the routine using Asterisk's dialplan scripting and simply reproduce the resulting routine in JavaScript.
In this fashion you do away with a lot of programming hassles.
The AsterClick project has an ancestor project called FastAGI (A common name for such packages) http://code.google.com/p/fastagi-php-drclue/
This package treats your server side PHP scripts as dynamically loadable plugins that can be called from your dialplan with access to anything a regular PHP script has access to , plus all the particulars of the current call.
The FastAGI tool also has companion classes available for database interactions. So drop by the forums and mumble a few words and I or the users can set you on your way.
Keep in mind the Forum is HTML5 orientated, but we also have legacy tools too! All free of course
--Doc