{
my $dbuser = ${'freepbx'}{'DbUser'} || 'asteriskuser';
my $dbname = ${'freepbx'}{'DbName'} || 'asterisk';
my $dbpass = ${'freepbx'}{'DbPassword'} || 'amp109';

$OUT .=<<"HERE";

# MySQL database configuration

# AMPDBUSER: the user to connect to the database named '$dbname'
AMPDBUSER=$dbuser

# AMPDBPASS: the password for AMPDBUSER
AMPDBPASS=$dbpass

# AMPDBNAME: name of the database to use
AMPDBNAME=$dbname

# AMPDBHOST: the host to connect to the database named '$dbname'
AMPDBHOST=localhost

# AMPDBENGINE: the type of database to use
AMPDBENGINE=mysql

# CDR DB Settings: Only used if you dont use the default values provided by freepbx.
# CDRDBHOST: hostname of db server if not the same as AMPDBHOST
# CDRDBPORT: Port number for db host 
# CDRDBUSER: username to connect to db with if its not the same as AMPDBUSER
# CDRDBPASS: password for connecting to db if its not the same as AMPDBPASS
# CDRDBNAME: name of database used for cdr records
# CDRDBTYPE: mysql or postgres mysql is default
# CDRDBTABLENAME: Name of the table in the db where the cdr is stored cdr is default 

HERE
}
