Asterisk: add app

I want to know how to add new asterisk applications and modules. For example, I don't have a SetGlobalVar app in my asterisk machine. I want to add this. Is there a way.

Thanks in advance.

+2


a source to share


4 answers


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.

+1


a source


You can also use the function GLOBAL()

. For instance:



exten => 1234,1,Set(GLOBAL(MY_GLOBAL_VAR)=value)

      

0


a source


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.

0


a source


Depending on your version of Asterisk, this application may not even exist. I believe it was removed with Asterisk 1.8 onwards.

0


a source







All Articles