MikoPBX development
  • MikoPBX development guide
  • Prepare IDE and system tools
    • Windows
    • Linux
    • Mac
  • Modules developement
    • How to start
    • Data model
    • Module installer class
    • Module main class
    • Module interface
    • Translations(empty)
    • Debuging
      • Configuring IDE
      • Debug PHP-AGI
      • Debug PHP Worker
      • Debug PHP Script
      • Debugging behind NAT
  • Internal structure
  • Admin interface(empty)
  • API
    • REST API
    • AMI / AJAM
    • AGI
  • Core(empty)
  • Marketplace
    • Licensing (empty)
  • Cookbook
    • Forms
      • Create module form
      • Create datatable
      • Add field into existing form
    • Asterisk
      • Hook on incoming call
      • Interact with AMI
      • Modify extensions.conf
    • Rights and auth
      • External authentication
      • Limited rights
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. Modules developement
  2. Debuging

Debugging behind NAT

It is relevant if the PhpStorm development environment works for NAT, and PBX is available at a public address.

  • "pbx.address.com" - the address of MikoPBX

On the PC where PhpStorm is running, run the command:

ssh -R 9000:127.0.0.1:9000 root@pbx.address.com

next, run debugging on MikoPBX:

# debugging services
pbx-console debug WorkerCdr 127.0.0.1

# debugging php scripts
xdebug-enable 127.0.0.1

# debugging php-agi scripts
xdebug-enable-agi 127.0.0.1

# debugging php REST API
xdebug-enable-www 127.0.0.1
PreviousDebug PHP ScriptNextAdmin interface(empty)

Last updated 2 years ago

Was this helpful?