defines.php File Reference

Settings and constants for TinyMON. More...

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')


Detailed Description

Settings and constants for TinyMON.

Definition in file defines.php.


Enumeration Type Documentation

enum DEBUG
 

Debug mode : 1 will activate miscellaneous debugging features.

Definition at line 10 of file defines.php.

enum FREEZE_IF_NOT_HANDLED
 

Auto-freeze mode : 1 will freeze display if an unknown event could not be handled.

Definition at line 12 of file defines.php.

enum DEMO
 

Demo mode : 1 will run TinyMON with a demo database.

Definition at line 14 of file defines.php.

enum AST_HOST
 

Asterisk host.

Definition at line 19 of file defines.php.

enum AST_PORT
 

Asterisk Manager Interface TCP port (5038 usually).

Definition at line 21 of file defines.php.

enum AST_USERNAME
 

Username for Asterisk Manager Interface.

This user must be defined in Asterisk manager.conf file.

Definition at line 24 of file defines.php.

enum AST_PASSWORD
 

Password for Asterisk Manager Interface user.

Definition at line 26 of file defines.php.

enum DB_HOST
 

MySQL server host.

Definition at line 31 of file defines.php.

enum DB_PORT
 

MySQL server port (3306 usually).

Definition at line 33 of file defines.php.

enum DB_USERNAME
 

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.

enum DB_PASSWORD
 

Password for MySQL user.

Definition at line 38 of file defines.php.

enum DB_DATABASE
 

Database that hosts the tickets table ('test' database for instance).

Definition at line 40 of file defines.php.

enum DB_TABLE
 

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.

enum MON_APP
 

Location of tinyman.pl.

Definition at line 56 of file defines.php.

enum POLLING_PERIOD
 

Polling period for scheduled polling requests.

Definition at line 58 of file defines.php.

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 62 of file defines.php.

enum REFRESH_MIN
 

Delay before the web browser will request a page refresh.

Definition at line 67 of file defines.php.

enum REFRESH_MAX
 

Maximum delay between 2 pages.

Definition at line 69 of file defines.php.

enum TICKETS_PER_REFRESH_MAX
 

How many tickets maximum should be handled for one page refresh.

Definition at line 71 of file defines.php.

enum CALL_TIMEOUT
 

How long should we wait before we "forget" a call when we have no news.

Definition at line 73 of file defines.php.

enum VIEW_BY_DEFAULT
 

Display by default all new channels types (SIP, IAX2, MGCP and others).

Definition at line 75 of file defines.php.

enum PATH_IMG
 

Definition at line 79 of file defines.php.

enum IMG_BLANK
 

Definition at line 80 of file defines.php.

enum IMG_SELECTED
 

Definition at line 81 of file defines.php.

enum IMG_NOT_SELECTED
 

Definition at line 82 of file defines.php.

enum UPDATE
 

Definition at line 95 of file defines.php.

enum DELETE
 

Definition at line 96 of file defines.php.


Variable Documentation

$ui['frozen'] = array (PATH_IMG . 'ktimer.png', 'Frozen')
 

Definition at line 83 of file defines.php.

Referenced by run_session().

$ui['running'] = array (PATH_IMG . 'misc.png', 'Running')
 

Definition at line 84 of file defines.php.

$ui['refresh'] = array (PATH_IMG . 'tool_resume.png', 'Refresh')
 

Definition at line 85 of file defines.php.

$ui['freeze'] = array (PATH_IMG . 'tool_pause.png', 'Freeze')
 

Definition at line 86 of file defines.php.

$status['unknown'] = array(PATH_IMG . 'ledpurple.png', 'Unknown')
 

Definition at line 87 of file defines.php.

Referenced by run_session().

$status['alarm'] = array(PATH_IMG . 'ledred.png', 'Offline')
 

Definition at line 88 of file defines.php.

$status['offline'] = array(PATH_IMG . 'ledgrey.png', 'Offline')
 

Definition at line 89 of file defines.php.

$status['online'] = array(PATH_IMG . 'ledblue.png', 'Online')
 

Definition at line 90 of file defines.php.

$status['ringing'] = array(PATH_IMG . 'ledorange.png', 'Active')
 

Definition at line 91 of file defines.php.

$status['active'] = array(PATH_IMG . 'ledgreen.png', 'Active')
 

Definition at line 92 of file defines.php.


Generated on Sat Apr 1 18:43:45 2006 for TinyMON by  doxygen 1.4.6