Go to the source code of this file.
Enumerations | |
enum | DEBUG |
Debug mode : 1 will activate miscellaneous debugging features. More... | |
enum | FREEZE_IF_NOT_HANDLED |
Auto-freeze mode : 1 will freeze display if an unknown event could not be handled. More... | |
enum | DEMO |
Demo mode : 1 will run TinyMON with a demo database. More... | |
enum | AST_HOST |
Asterisk host. More... | |
enum | AST_PORT |
Asterisk Manager Interface TCP port (5038 usually). More... | |
enum | AST_USERNAME |
Username for Asterisk Manager Interface. More... | |
enum | AST_PASSWORD |
Password for Asterisk Manager Interface user. More... | |
enum | DB_HOST |
MySQL server host. More... | |
enum | DB_PORT |
MySQL server port (3306 usually). More... | |
enum | DB_USERNAME |
MySQL user for tinyman.pl and TinyMON.php. More... | |
enum | DB_PASSWORD |
Password for MySQL user. More... | |
enum | DB_DATABASE |
Database that hosts the tickets table ('test' database for instance). More... | |
enum | DB_TABLE |
Table that will contain the tickets. More... | |
enum | MON_APP |
Location of tinyman.pl. More... | |
enum | POLLING_PERIOD |
Polling period for scheduled polling requests. More... | |
enum | TICKETS_PURGE |
How long to keep tickets. More... | |
enum | REFRESH_MIN |
Delay before the web browser will request a page refresh. More... | |
enum | REFRESH_MAX |
Maximum delay between 2 pages. More... | |
enum | TICKETS_PER_REFRESH_MAX |
How many tickets maximum should be handled for one page refresh. More... | |
enum | CALL_TIMEOUT |
How long should we wait before we "forget" a call when we have no news. More... | |
enum | VIEW_BY_DEFAULT |
Display by default all new channels types (SIP, IAX2, MGCP and others). More... | |
enum | PATH_IMG |
enum | IMG_BLANK |
enum | IMG_SELECTED |
enum | IMG_NOT_SELECTED |
enum | UPDATE |
enum | DELETE |
Variables | |
$ui ['frozen'] = array (PATH_IMG . 'ktimer.png', 'Frozen') | |
$ui ['running'] = array (PATH_IMG . 'misc.png', 'Running') | |
$ui ['refresh'] = array (PATH_IMG . 'tool_resume.png', 'Refresh') | |
$ui ['freeze'] = array (PATH_IMG . 'tool_pause.png', 'Freeze') | |
$status ['unknown'] = array(PATH_IMG . 'ledpurple.png', 'Unknown') | |
$status ['alarm'] = array(PATH_IMG . 'ledred.png', 'Offline') | |
$status ['offline'] = array(PATH_IMG . 'ledgrey.png', 'Offline') | |
$status ['online'] = array(PATH_IMG . 'ledblue.png', 'Online') | |
$status ['ringing'] = array(PATH_IMG . 'ledorange.png', 'Active') | |
$status ['active'] = array(PATH_IMG . 'ledgreen.png', 'Active') |
Definition in file defines.php.
|
Debug mode : 1 will activate miscellaneous debugging features.
Definition at line 10 of file defines.php. |
|
Auto-freeze mode : 1 will freeze display if an unknown event could not be handled.
Definition at line 12 of file defines.php. |
|
Demo mode : 1 will run TinyMON with a demo database.
Definition at line 14 of file defines.php. |
|
Asterisk host.
Definition at line 19 of file defines.php. |
|
Asterisk Manager Interface TCP port (5038 usually).
Definition at line 21 of file defines.php. |
|
Username for Asterisk Manager Interface. This user must be defined in Asterisk manager.conf file. Definition at line 24 of file defines.php. |
|
Password for Asterisk Manager Interface user.
Definition at line 26 of file defines.php. |
|
MySQL server host.
Definition at line 31 of file defines.php. |
|
MySQL server port (3306 usually).
Definition at line 33 of file defines.php. |
|
MySQL user for tinyman.pl and TinyMON.php. This user must have read/write permissions on the tickets table. Definition at line 36 of file defines.php. |
|
Password for MySQL user.
Definition at line 38 of file defines.php. |
|
Database that hosts the tickets table ('test' database for instance).
Definition at line 40 of file defines.php. |
|
Table that will contain the tickets. Suggestion to create tickets table (you may choose different ENGINE and DEFAULT CHARSET) : CREATE TABLE `tickets` ( `id` int(11) NOT NULL auto_increment, `datetime` datetime NOT NULL default '0000-00-00 00:00:00', `ticket` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ; tinyman.pl may create it automatically if it has sufficient permissions. Definition at line 51 of file defines.php. |
|
Location of tinyman.pl.
Definition at line 56 of file defines.php. |
|
Polling period for scheduled polling requests.
Definition at line 58 of file defines.php. |
|
How long to keep tickets. Don't set this value too short, because TinyMON needs a bit of historical data to self-train about Asterisk devices. Example : 900 = 15 minutes. Definition at line 62 of file defines.php. |
|
Delay before the web browser will request a page refresh.
Definition at line 67 of file defines.php. |
|
Maximum delay between 2 pages.
Definition at line 69 of file defines.php. |
|
How many tickets maximum should be handled for one page refresh.
Definition at line 71 of file defines.php. |
|
How long should we wait before we "forget" a call when we have no news.
Definition at line 73 of file defines.php. |
|
Display by default all new channels types (SIP, IAX2, MGCP and others).
Definition at line 75 of file defines.php. |
|
Definition at line 79 of file defines.php. |
|
Definition at line 80 of file defines.php. |
|
Definition at line 81 of file defines.php. |
|
Definition at line 82 of file defines.php. |
|
Definition at line 95 of file defines.php. |
|
Definition at line 96 of file defines.php. |
|
Definition at line 83 of file defines.php. Referenced by run_session(). |
|
Definition at line 84 of file defines.php. |
|
Definition at line 85 of file defines.php. |
|
Definition at line 86 of file defines.php. |
|
Definition at line 87 of file defines.php. Referenced by run_session(). |
|
Definition at line 88 of file defines.php. |
|
Definition at line 89 of file defines.php. |
|
Definition at line 90 of file defines.php. |
|
Definition at line 91 of file defines.php. |
|
Definition at line 92 of file defines.php. |