Phone to communicate with website

Hello, I have been working on a website, and right now I am having a hard time with this. The feature I require involves the user be able to communicate with the website by calling in. The user may perform duties such as log in to their account by dial pad, check in, and check out, etc.

System: Welcome message enter your account number
-user dials account number
System: Enter your password
-user dials password
System: To check in press 1, to check out press 2


Can I do this with asterisk? Whats the best way?
Sorry I am new to the asterisk system :unamused: