\AskoziaMonitor
AskoziaPBX calls recodrings viewer class
Synopsis
class AskoziaMonitor
{
- // constants
- const ICON_PATH = 'skins/calls/';
- const URL_ME = '?module=askoziamonitor';
- const URL_PROFILE = '?module=userprofile&username=';
- // members
- protected array $altCfg = ;
- protected string $voicePath = '/mnt/askozia/';
- protected string $archivePath = '/mnt/calls_archive/';
- protected string $callsFormat = '*.gsm';
- protected bool $onlyMobileFlag = true;
- protected array $userTags = ;
- protected bool $ffmpegFlag = false;
- protected string $ffmpegPath = '';
- protected string $baseConverterPath = '/usr/local/bin/ffmpeg';
- protected string $convertedPath = 'exports/';
- protected string $converterLogPath = 'exports/voiceconvert.log';
- // methods
- public void __construct()
- protected void loadConfig()
- protected void detectFfmpeg()
- protected void loadUserTags()
- public void catchFileDownload()
- protected array getCallsDir()
- protected array getArchiveDir()
- public string renderCallsList()
- protected string renderUserTags()
- public void jsonCallsList()
- protected string getSoundcontrols()
Constants
Name | Value |
---|---|
ICON_PATH | 'skins/calls/' |
URL_ME | '?module=askoziamonitor' |
URL_PROFILE | '?module=userprofile&username=' |
Members
protected
- $altCfg
—
array
Contains system alter config as key=>value - $archivePath
—
string
Contains voice recors archive path - $baseConverterPath
—
string
Basic ffmpeg path to search. May be configurable in future. - $callsFormat
—
string
Contains default recorded files file extension - $convertedPath
—
string
File path for converted voice files - $converterLogPath
—
string
ffmpeg log path - $ffmpegFlag
—
bool
FFmpeg installed? - $ffmpegPath
—
string
installed ffmpeg path - $onlyMobileFlag
—
bool
Flag for telepathy detection of users - $userTags
—
array
Contains user assigned tags as login=>usertags - $voicePath
—
string
Contains default recorded calls path
Methods
protected
- detectFfmpeg() — Detects is ffmpeg available on local system and sets ffmpegFlag and path properties.
- getArchiveDir() — Returns available archived calls files array
- getCallsDir() — Returns available calls files array
- getSoundcontrols() — Returns controls for some recorded call file
- loadConfig() — Loads all required configs and sets some options
- loadUserTags() — Loads existing tagtypes and usertags into protected props for further usage
- renderUserTags() — Renders user tags if available
public
- __construct() — Creates new askozia monitor instance
- catchFileDownload() — Catches file download or convert request
- jsonCallsList() — Renders json recorded calls list
- renderCallsList() — Returns calls list container