Trouble with getting AGI "WAIT FOR DIGIT" command to work


When I execure command “WAIT FOR DIGIT 10000” from AGI script I get an error:

WARNING[1201]: channel.c:3440 ast_waitfordigit_full: The FD we were waiting for has something waiting. Waitfordigit returning numeric 1

Is there a way to make this command to work?