OK, instead of hanging up the call when an agent doesn't answer, let's forward them to a company voice mailbox.
The complete source code for this recipe can be found in the
We're going to set this up so that, if a caller can't reach an agent, or just generally wants to leave a message, they can do so by pressing 5.
Services/folder to your website.
config.phpto your website and make sure the following variables are set:
<?php $dbhost = '';//YOUR DATABASE HOST $dbname = '';//YOUR DATABASE NAME $dbuser = '';//YOUR DATABASE USER $dbpass = '';//YOUR DATABASE PASS ...