Simple PHP for accessing MySQL database with Asterisk CDR logging to it. Pull call logs based on extension.