Record answering machine menu selections into a database

Hello there,

I would like to set an answering machine to automatically receive phone calls from users and let them choose from a menu with different options (by pressing a key or saying something) and then record those selections into a database (mysql or other).

Can I do this with one of the different products out here, or I should look for something more light weight such as a patched vgetty or something similar.