Hello,
Is it possible to include an AGI file in another one and call functions from it which execute as part of the AGI file it is being called from?
If yes, how to include one AGI in another?
Thank You.
Hello,
Is it possible to include an AGI file in another one and call functions from it which execute as part of the AGI file it is being called from?
If yes, how to include one AGI in another?
Thank You.
Some sample code would be helpful, but I think you'll find your answer in the Asterisk::AGI documentation.
EDIT: you can include AGI files in other AGI files just as you would include any Perl file, with the require
command. e.g.:
If your script is in the directory "var/lib/asterisk/agi-bin/directoryname/
"
put this line in your AGI script:
require '/var/lib/asterisk/agi-bin/directoryname/yourscriptname';