Asterisk: add app
As for SetGlobalVar
, you can use Set
with option g
as described in the Asterisk wiki . Instead of writing such an application, write a simple program that modifies dialplan.
If you want to add more to Asterisk, there is an easier option than adding an application: use AGI with your favorite programming language.
a source to share
I could be completely out of base here, but I believe the OP is asking how to actually load this module. Assuming your asterisk distribution comes with func_global, just do "load the func_global.so module". If you want it to load when asterisk starts, add it to your modules.conf file.
If your distro does not package an asterisk with this module, you will have to either rebuild the package, include it, or build just that module from vanilla asterisk sources and then copy it into your lib / modules directory.
a source to share