Stop DoCall on DTMF key

I have a question :question: : in Asterisk extension I use DoCall function to make a sequence of calls, now the sequence automatically stop when someone answare the call. I need to stop the sequence when someone answare the call and press a specific key number. there is a way to make this?
Thank you a lot for your collaboration…