Hi
I have installed latest FreePBX-Distro-Net-64bit-1.811.210.57. And I have some problems with custom AGI script. I need to have destination in my IVR that executes the AGI script (for example check balance by inputting ID …). I have tried to install “dialplan injection module” and write some custom dialplan, but this module installation fails in this version of freepbx. Is there any other solution for my case?
Use extensions_custom.conf for your required dialplan and register the destination in the custom destinations registry and then assign that to your desired IVR selection.
Go to your extensions_custom.conf. Edit that file, and write your dialplan that executes your PHPAGI script, then create custom destination from FREEPBX menu, then point your IVR to that destination.
exten=> 111,1,Wait(1)
exten=> 111,n,AGI(your_script_name.php, ${CallerID}) ; you can use more arguments or you can use this line without any arguments. For example
; exten=> 111,n,AGI(your_script_name.php)
exten=> 111,n,Hangup()