Debug PHP-AGI
To debug a PHP AGI script, you need:
Get the IP address of the PC from which debugging will be performed - e.g. 192.168.1.65
Set environment variables:
export XDEBUG_CONFIG="remote_port=9000 remote_host=
192.168.1.65
remote_enable=1 remote_mode=req remote_autostart=0 remote_connect_back=0";
Restart the asterisk process
Full example:
In MikoPBX, it is enough to run the command:
Be careful! Debugging the AGI can disrupt the operation of the PBX
Last updated