// ---------------------------------------------------------------
//
// ---------------------------------------------------
// copyright 2000 by voxeo corporation. (see LGPL.txt)
// ---------------------------------------------------
//
// v1.0 Coded in PHP 4.0
// v1.0 Coded by Stephen J. Lewis
//
// AutoAttendant is a simple, telephone/web based menuing system
// typically used for dialing into an office.  It allows you to
// create menus, associate them with audio files (such as "Press 1
// for engineering, press 2 for sales", etc.), and then provide 
// links to destination phone numbers.  
//
// This application dynamically generates CallXML code from a database file.
//
// The entire suite containts 6 files:
// 		CallDestination.xml			|
//		DoTheCall.xml				|--- CallXML files for dialing out and conferencing.
//									|
//		AutoAttendant.php			<--- PHP 4.0 file that dynamically generates
//										 CallXML from the AutoAttendant database.
//		AutoAttendantAdmin.php		<--- PHP 4.0 tool used for web-based editing
//										 of the AutoAttendant database.
//		AutoAttendantWorkhorse.php  <--- PHP 4.0 file used by the AutoAttendantAdmin
//										 to do the actual database save routines.
//		AutoAttendantDB       		<--- The actual database file (MS Access).
//      passwords.inc               <--- Abstracted functions for HTTP and FTP
//                                       passwords.
//      Database-Linux.inc          <--- This contains all the abstracted database
//                                       routines for linux.
//      Database-Win32.inc          <--- This contains all the abstracted database
//                                       routines for Win32.     
//
// 
// The database is an ODBC resource called AutoAttendantDB
// and contains one table, also named AutoAttendantDB, with columns called:
//  	'Digit,'      'AudioURL,'         'Destination,' 'MenuName,' 
// 		'ActionType,' 'MenuPosition,' and 'UniqueID.'
//
// Any audio files associated with the menus will have to be created
// and should be saved as u-luw, 8 khz, 8-bit mono files.  Valid
// formats may change in the future.  
//
// The AutoAttendantAdmin requires the user (you) to enter in manually
// the names of audio files because they could, in theory, be anywhere
// in the world (i.e., not local your server). You can reference them 
// via an URL.
// -------------------------------------------------------------------