forked from libyerman/queue-stats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig_example.php
44 lines (29 loc) · 904 Bytes
/
config_example.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
36
37
38
39
40
41
42
43
44
<?php
require_once("misc.php");
$DBServer = "server";
$DBUser = "user";
$DBPass = "pass");
$DBName = "asteriskcdrdb";
$DBTable = "queue_log";
$connection = new mysqli($DBServer, $DBUser, $DBPass, $DBName);
// check connection
if ($connection->connect_error) {
trigger_error('Database connection failed: ' . $connection->connect_error, E_USER_ERROR);
}
// Credentials for AMI (for the realtime tab to work)
// See /etc/asterisk/manager.conf
$manager_host = "asterisk_manager";
$manager_user = "user";
$manager_secret = "pass";
// Available languages "es", "en", "ru", "de", "fr"
$language = "es";
require_once("lang/$language.php");
$page_rows = '100';
//$midb = conecta_db($dbhost,$dbname,$dbuser,$dbpass);
$self = $_SERVER['PHP_SELF'];
$DB_DEBUG = false;
//error reporting
//error_reporting(E_ALL);
session_start();
header('content-type: text/html; charset: utf-8');
?>