You are using AMI.
There are no way get dtmf in AMI without dialplan support. You can get event via ami using something like this in dialplan
exten => s,1,Read(variable,filetoplay)
exten => s,2,UserEvent(variable: variable)
Or you can use fastagi to control call execution and collect dtmf