Caller input question

Hello mates

i need to make a simple dialplan that inputs from the Caller their id number ( 8 digits ) and at end they will click “#” so the dialplan will know they are done inputing.

i know it can be done in several ways … but i was wondering what is the best way to do it?

thank you

What do you want to do with this data?

I like to use the AGI extension for PHP to grab data and then compare it to a database or what ever you can think of. Hence the power of PHP. link Below

Something like this…

$result = $agi->get_data('custom/enter-emplid' ,3000 ,8);
$emplid = $result['result'];

That last 8 there is the number of digits the script is expecting. After the user puts in 8 digits it will move on.