Go to the source code of this file.
Functions | |
my_htmlentities ($text) | |
Protect HTML code : add escape chars. | |
clean_dev_data ($type, $dev, $forced) | |
Clean device status information : delete (obsolete) call information. | |
update_dev ($mode, $type, $dev, $ticket_a) | |
Update device status information : handle an event about the device. | |
parse_cnxid ($cnxid) | |
Parse "chantype/dev-chanid" string and extract fields. | |
update_dev_call ($mode, $cnxid, $ticket_a) | |
Update device status information : handle an event about a call related to the device. | |
run_session () | |
Elaborate aTinyMON display. | |
store_error ($err_type, $err_msg, $err_file, $err_line) | |
Store errors and syslog them. | |
display_errors () | |
Display errors that have been stored. | |
Variables | |
$app = "aTinyMON Real-Time monitoring application for Asterisk" | |
$version = "v0.30 - 2009" | |
$db = NULL |
Debug modes : 0 : no debug 1 : PHP error_reporting = E_ALL, display_errors = On. Debug atinyman.pl 2 : + time = ticket time, simplified session dump 3 : + full session dump 4 : + step-by-step
Definition in file atinymon.php.
my_htmlentities | ( | $ | text | ) |
Protect HTML code : add escape chars.
$text | Input String |
Definition at line 37 of file atinymon.php.
Referenced by display_errors(), and run_session().
clean_dev_data | ( | $ | type, | |
$ | dev, | |||
$ | forced | |||
) |
Clean device status information : delete (obsolete) call information.
In debug or demo mode, "now", i.e. reference for tickets obsolescence, is the timestamp of last ticket extracted from DB. Otherwise, "now" is current server time.
$type | Channel type (SIP, ...) | |
$dev | Device | |
$forced | Set to TRUE to delete ALL call information, FALSE to delete obsolete call information only |
Definition at line 54 of file atinymon.php.
Referenced by run_session().
update_dev | ( | $ | mode, | |
$ | type, | |||
$ | dev, | |||
$ | ticket_a | |||
) |
Update device status information : handle an event about the device.
$mode | Mode : UPDATE or DELETE | |
$type | Channel type (SIP, ...) | |
$dev | Device | |
$ticket_a | AMI ticket contents, stored in an associative array |
Definition at line 94 of file atinymon.php.
Referenced by run_session().
parse_cnxid | ( | $ | cnxid | ) |
Parse "chantype/dev-chanid" string and extract fields.
This function analyses the input string and extracts the fields. It tries to make its best with < Z O M B I E > and suffixes alike, as well as with AsyncGoto/ and possibly other prefixes. Warnin : obviously, this simplification may involve a loss of information, or even worse, may generate incorrect information !
$cnxid | String, supposedly looking like "chantype/dev-chanid" |
Definition at line 131 of file atinymon.php.
Referenced by run_session(), and update_dev_call().
update_dev_call | ( | $ | mode, | |
$ | cnxid, | |||
$ | ticket_a | |||
) |
Update device status information : handle an event about a call related to the device.
Device inherits from call event timestamp (update last time we heard about the device ... or about a related call).
$mode | Mode : UPDATE or DELETE | |
$cnxid | Connection id with syntax "channeltype/device-channelid" | |
$ticket_a | AMI ticket contents, stored in an associative array |
Definition at line 153 of file atinymon.php.
References parse_cnxid().
Referenced by run_session().
run_session | ( | ) |
Elaborate aTinyMON display.
Definition at line 191 of file atinymon.php.
References $db, $special, $status, $ui, $version, clean_dev_data(), display_errors(), my_htmlentities(), parse_cnxid(), update_dev(), and update_dev_call().
store_error | ( | $ | err_type, | |
$ | err_msg, | |||
$ | err_file, | |||
$ | err_line | |||
) |
Store errors and syslog them.
We'll display them alltogether later.
Definition at line 992 of file atinymon.php.
display_errors | ( | ) |
Display errors that have been stored.
Definition at line 1023 of file atinymon.php.
References my_htmlentities().
Referenced by run_session().
$app = "aTinyMON Real-Time monitoring application for Asterisk" |
Definition at line 5 of file atinymon.php.
$version = "v0.30 - 2009" |
$db = NULL |