I need a script to block numbers in asterisk dialplan by recording live or search asteriskcdr database and look for same numbers that was called 5+ per a day, then store these numbers in a blacklist so asterisk can use this list in its dialplan to block so user cannot call them again for these day, the blacklist can be clear everyday, while another blacklist can be use to store same dial number on monthly bases for say 50+ same calls to be block.