Simple PHP for accessing MySQL database with Asterisk CDR logging to it.