core: Add digit filtering to ast_waitfordigit_full