Clearing Input buffer after Get Digit String

I have an issue with a Take A Message script that requires a ten digit telephone number followed by a recording step

for the message.

If the user hits the # key as the eleventh digit the recording of the message is ended as soon as it begins.

Is there a way to clear the key buffer before a recording step?

Regards,

David

Recommended Reading: