Read() - detect if hash is pressed

Hi,

I have a prompt that says “Press hash to re-record…”. How do I wait for a few seconds to see if a hash is pressed?

I’ve tried:

exten => s,n,Read(hash|'/home/asterisk/sounds/hash_to_rerecord'|1|||3) exten => s,n,GotoIf($["${hash}" = "#"]?rerecord)

But since the Read() function uses hash as it’s terminator, ${hash} is empty if # is pressed, or a timeout occurs.

I’d prefer not to use Background() or WaitExten() and a # extension as I’m already using a # extension elsewhere…

Thanks,
Ric