Verify PIN before allowing access to IVR?

Is there a way to before allowing a caller access to a IVR, to require them to log in with account number and PIN. And that it verify and log the information?

Thanks

Well if it is just a PIN you are looking for you could use the Authenticate application.

voip-info.org/wiki-Asterisk+cmd+authenticate

Or

There are numerous ways to make calls to a backed database. I use phpAGI. But if all you want is username/password authentication there database function that can be called right from the dial plan.

voip-info.org/wiki/view/Asterisk+database

Good Luck!