-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdefines.php
35 lines (28 loc) · 1.28 KB
/
defines.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
// Automatically ger FreePBX database access credentials from freepbx.conf file
$bootstrap_settings['freepbx_auth'] = false;
if (!@include_once(getenv('FREEPBX_CONF') ? getenv('FREEPBX_CONF') : '/etc/freepbx.conf')) {
include_once('/etc/asterisk/freepbx.conf');
}
define("ASDBNAME",$amp_conf['AMPDBNAME']);
define("ASDBUSER",$amp_conf['AMPDBUSER']);
define("ASDBPASS",$amp_conf['AMPDBPASS']);
define("ASDBHOST",$amp_conf['AMPDBHOST']);
define("ASDBPORT","3307"); //<-- assumes MySQL
/* Database connection information (deprecated). Uncomment these lines and fill in database access vales
only if the lines above fail to get FreePBX db credentials */
// define("ASDBNAME","asterisk");
// define("ASDBUSER","root");
// define("ASDBPASS","passw0rd");
// define("ASDBHOST","localhost");
// define("ASDBPORT","3307");
/* Query to select the queues from the Asterisk database */
define("ASSQLQUEUE","SELECT extension, descr FROM queues_config ORDER BY descr ASC");
/* Asterisk CLI command specifics */
define("ASCLI","asterisk -rx 'queue show ?' | sed 1d");
define("ASCID","asterisk -rx 'core show channel ?'");
//define("ASCLI","asterisk -rx 'queue show ?'");
define("ASCLINOMEM","No Members");
define("ASCLINOCAL","No Callers");
define("ASCLICAL","Callers:");
define("ASCLIMEM","Members:");