Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
<?php
$amp_conf['AMPDBUSER']  = 'freepbxuser';
$amp_conf['AMPDBPASS']  = 'changeme';
$amp_conf['AMPDBHOST']  = 'localhost';
$amp_conf['AMPDBNAME']  = 'asterisk';
$amp_conf['AMPDBENGINE'] = 'mysql';
$amp_conf['datasource'] = ''; //for sqlite3
 
//Turn off FreePBX Error Handling
$bootstrap_settings['freepbx_error_handler'] = false;
 
require_once('/var/www/html/admin/bootstrap.php');

Please note that if you have a module that is using bootstrap, you can do this before bootstrapping as show below:

Code Block
//Turn off FreePBX Error Handling
$bootstrap_settings['freepbx_error_handler'] = false;
 
if (!@include_once(getenv('FREEPBX_CONF') ? getenv('FREEPBX_CONF') : '/etc/freepbx.conf')) {      
    include_once('/etc/asterisk/freepbx.conf');
}