Go to the source code of this file.
Enumerations | |
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 atinyman.pl and aTinyMON.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 atinyman.pl. More... | |
enum | POLLING_PERIOD |
Polling period for scheduled polling requests. More... | |
enum | TICKETS_PURGE |
How long to keep tickets. More... | |
enum | DEBUG |
Debug mode : 1 or more will activate miscellaneous debugging features. More... | |
enum | FREEZE_IF_NOT_HANDLED |
Auto-freeze mode : freeze display if an unknown event could not be handled. More... | |
enum | DEMO |
Demo mode : run aTinyMON with a demo database. More... | |
enum | REDIRECT |
Redirection when exiting aTinyMON. 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 | DEVICE_TIMEOUT |
How long should we wait before we "forget" a device when we have no news. More... | |
enum | VIEW_BY_DEFAULT |
Display by default all new channels types (SIP, IAX2, MGCP and others). More... | |
enum | OFFLINE_BY_DEFAULT |
Display offline devices by default. More... | |
enum | EVENTS_BY_DEFAULT |
Display AMI events by default. More... | |
enum | MASK_PSEUDO |
Mask pseudo-device Zap/pseudo (used for meetme conferences) and fake channel OutgoingSpoolFailed. More... | |
enum | PATH_IMG |
enum | IMG_BLANK |
enum | IMG_SELECTED |
enum | IMG_NOT_SELECTED |
enum | UPDATE |
enum | DELETE |
Variables | |
$ui | |
$status | |
$special ['SIP'] | |
$special ['IAX2'] = $special['SIP'] | |
$special ['Meetme'] |
Definition in file config.php.
enum AST_HOST |
enum AST_PORT |
enum AST_USERNAME |
Username for Asterisk Manager Interface.
This user must be defined in Asterisk manager.conf file.
Definition at line 15 of file config.php.
enum AST_PASSWORD |
enum DB_HOST |
enum DB_PORT |
enum DB_USERNAME |
MySQL user for atinyman.pl and aTinyMON.php.
This user must have read/write permissions on the tickets table.
Definition at line 27 of file config.php.
enum DB_PASSWORD |
enum DB_DATABASE |
Database that hosts the tickets table ('test' database for instance).
Definition at line 31 of file config.php.
enum DB_TABLE |
Table that will contain the tickets.
Suggestion to create tickets table : 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 ; You may choose different ENGINE and DEFAULT CHARSET. aTinyMON/atinyman can create it automatically if they have sufficient permissions.
Definition at line 43 of file config.php.
enum MON_APP |
enum POLLING_PERIOD |
enum TICKETS_PURGE |
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 54 of file config.php.
enum DEBUG |
Debug mode : 1 or more will activate miscellaneous debugging features.
Definition at line 59 of file config.php.
Auto-freeze mode : freeze display if an unknown event could not be handled.
Definition at line 61 of file config.php.
enum DEMO |
enum REDIRECT |
enum REFRESH_MIN |
enum REFRESH_MAX |
How many tickets maximum should be handled for one page refresh.
Definition at line 74 of file config.php.
enum CALL_TIMEOUT |
How long should we wait before we "forget" a call when we have no news.
Advice : don't set lower than POLLING_PERIOD.
Definition at line 77 of file config.php.
enum DEVICE_TIMEOUT |
How long should we wait before we "forget" a device when we have no news.
Advice : don't set lower than POLLING_PERIOD.
Definition at line 80 of file config.php.
enum VIEW_BY_DEFAULT |
Display by default all new channels types (SIP, IAX2, MGCP and others).
Definition at line 82 of file config.php.
enum OFFLINE_BY_DEFAULT |
enum EVENTS_BY_DEFAULT |
enum MASK_PSEUDO |
Mask pseudo-device Zap/pseudo (used for meetme conferences) and fake channel OutgoingSpoolFailed.
Definition at line 88 of file config.php.
enum PATH_IMG |
Definition at line 92 of file config.php.
enum IMG_BLANK |
Definition at line 93 of file config.php.
enum IMG_SELECTED |
Definition at line 94 of file config.php.
enum IMG_NOT_SELECTED |
Definition at line 95 of file config.php.
enum UPDATE |
Definition at line 128 of file config.php.
enum DELETE |
Definition at line 129 of file config.php.
$ui |
Initial value:
array( 'frozen' => array (PATH_IMG . 'nu/ktimer.png', 'Frozen'), 'running' => array (PATH_IMG . 'nu/misc.png', 'Running'), 'refresh' => array (PATH_IMG . 'nu/tool_resume.png', 'Refresh'), 'freeze' => array (PATH_IMG . 'nu/tool_pause.png', 'Freeze'), 'quit' => array (PATH_IMG . 'nu/no.png', 'Close session'))
Definition at line 97 of file config.php.
Referenced by run_session().
$status |
Initial value:
array( 'unknown' => array(PATH_IMG . '0purple22.png', 'Unknown'), 'alarm' => array(PATH_IMG . '0red22.png', 'Offline'), 'offline' => array(PATH_IMG . '0grey22.png', 'Offline'), 'online' => array(PATH_IMG . '0blue22.png', 'Online'), 'ringing' => array(PATH_IMG . '0orange22.png', 'Ringing'), 'active' => array(PATH_IMG . '0green22.png', 'Active'))
Definition at line 104 of file config.php.
Referenced by run_session().
$special['SIP'] |
Initial value:
array( 'unknown' => PATH_IMG . '1purple22.png', 'alarm' => PATH_IMG . '1red22.png', 'offline' => PATH_IMG . '1grey22.png', 'online' => PATH_IMG . '1blue22.png', 'ringing' => PATH_IMG . '1orange22.png', 'active' => PATH_IMG . '1green22.png')
Definition at line 111 of file config.php.
Referenced by run_session().
$special['IAX2'] = $special['SIP'] |
Definition at line 118 of file config.php.
$special['Meetme'] |