DTMF event loop

Hi,
I came across issue where Asterisk sends out the same DTMF event forever. I’m sending 4 packets of the same DTMF event - first endbit=0, 20msec pause, then 3 succeeding end events. Is there any parameter I need to configure for this? Or can someone point me to portion of the code to look at?
Thanks.