You can probably do it with answering machine detection an/or silence detection, together the the h extension and the System or AGI applications.
Actually making sure hte right message is played wuuld be orders of magnitude more difficult. You wuould need AMI or call files with an external application, to do the scheduling.