Is there a way to merge read and record commands

I am using Asterisk 1.8 and wish to offer the caller a menu option of “enter your telephone number, access code or say your name followed by the hash key”

I would then need to record the voice or read the digits depending which method they choose

Does anyone know if this is possible or will I need to separate this into sub options e.g. enter 1 to say your name or 2 to enter your number or code.

Thanks

Hi

Why split into sub commands,

You should be able to answer the call start recording and then play the message for read and ask them to press # then the call will step on when you can stop the recording, and you will either have the recording of their name or a variable with their number.

Not tested it but the logic for it is correct.