开发者

asterisk : add application

开发者 https://www.devze.com 2022-12-29 06:14 出处:网络
I want to know the way to add new asterisk applications and m开发者_如何学Goodules.For example I don\'t have the SetGlobalVar application in my asterisk machine.I want to add that.Is there any way.

I want to know the way to add new asterisk applications and m开发者_如何学Goodules.For example I don't have the SetGlobalVar application in my asterisk machine.I want to add that.Is there any way.

Thanks in advance .


As for SetGlobalVar you can use Set with g option as described in Asterisk wiki. Instead of writing such application write simple program that changes dialplan.

If you want to add some other thing to Asterisk there is simpler option than adding application: use AGI with your favorite programming language.


You can also use the GLOBAL() function. For example:

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


I might be completely off-base here, but, I believe what the OP is asking for is how to actually load this module.. Assuming your asterisk distribution shipped with func_global, just do "module load func_global.so". If you want it to load on asterisk startup, add it to your modules.conf.

If your distribution doesn't package asterisk with that module, then you're going to have to either rebuild the package and include it, or build just that module from vanilla asterisk sources, then copy it over to your lib/modules directory.


Depending on your Asterisk version, that application may actually not even exist any more. I believe it was removed with Asterisk 1.8 and following.

0

精彩评论

暂无评论...
验证码 换一张
取 消