给asterisk1.8.7添加menuselct选项
1、添加addons_test目錄
編寫(xiě)文件app_testApp.c和 app_testApp.exports,這里我只敘述大概過(guò)程,具體參考我的博文(http://www.cnblogs.com/MikeZhang/archive/2012/06/05/asterisk187CLIAddOns.html )
2、編寫(xiě)addons_test目錄里面的Makefile文件
內(nèi)容如下:?
-include$(ASTTOPDIR)/menuselect.makeopts $(ASTTOPDIR)/menuselect.makedeps
MENUSELECT_CATEGORY=ADDONS_TEST
MENUSELECT_DESCRIPTION=Addons_test
ALL_C_MODS:=app_testApp
all: _all
include$(ASTTOPDIR)/Makefile.moddir_rules?
3、寫(xiě)主目錄里面的Makefile文件(在266行加入addons_test)?
加入后該行內(nèi)容如下:?
MOD_SUBDIRS:=channels pbx apps codecs formats cdr cel bridges funcs tests main res addons addons_test $(LOCAL_MOD_SUBDIRS)?
4、運(yùn)行效果?
./configure &&?make menuselect?
主界面效果:
進(jìn)入菜單效果:?
?
?
轉(zhuǎn)載于:https://www.cnblogs.com/MikeZhang/archive/2012/06/07/asterisk187MenuselectAddTest.html
總結(jié)
以上是生活随笔為你收集整理的给asterisk1.8.7添加menuselct选项的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 奥数解答
- 下一篇: Ibatis查询条件对于特殊字符的处理方