Skip to content

Repository files navigation

ModuleBeelinePbx

MikoPBX extension that imports call history and call recordings from Beeline Cloud PBX (cloudpbx.beeline.ru) and exposes them to external consumers (e.g. 1C) over REST.

The module is read-only with respect to Beeline calls: it does not place or control calls.

What it does

  • Pulls call statistics from GET /v2/statistics on a sliding time window (cron, every minute) and stores them as CDR rows (bee_cdr table + published to MikoPBX WorkerCallEvents).
  • Downloads mp3 recordings for answered calls via GET /v2/records/{extTrackingId}/{userId}/download (cron, every 5 minutes).
  • Serves imported CDR as XML at GET /pbxcore/beeline-pbx/cdr?offset=X (public endpoint).

Configuration (admin cabinet)

Field Meaning
API token X-MPBX-API-AUTH-TOKEN value from Beeline Cloud PBX
API host API host, default cloudpbx.beeline.ru
Time shift, hours TZ compensation between Beeline and the PBX
Download call recordings Toggle mp3 download on/off

Development

composer install
phpunit --configuration phpunit.xml.dist   # unit tests for the pure CDR/transform logic

See CLAUDE.md for architecture, API details and design decisions.

License: GPL-3.0-or-later.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages