美文网首页
freeswitch如何增加编译mod

freeswitch如何增加编译mod

作者: 茫茫尘世一枚迷途小书童 | 来源:发表于2018-02-02 14:22 被阅读0次

工具:MacOS

freeswitch版本:1.6.19

其实这个应该很简单,但会了简单,不会就会觉得难。百度到的全是无用的,后来是在freeswitch官网看到的方法。

首先需要明确的是:/usr/local/freeswitch..这个目录下是安装的软件,可以用来运行的;/usr/local/src/freeswitch..这个目录是源代码目录。

比如我要用到是mod_tts_commandline模块,这个是默认不加载的。下面是步骤:

    1.在源代码目录中找到modules.conf文件,打开asr_tts/mod_tts_commandline的注释。

    2.运行make命令。

    3.运行make install命令。

    4.如果想要启动freeSwitch时本模块自动加载,就在软件目录的conf/autoload_configs/modules.conf.xml中,打开<load module="mod_tts_commandline">。(optional)

    5.修改conf/autoload_configs/tts_commandline.conf.xml。(optinal)

    6.打开freeswitch> load mod_tts_commandline (或许还需要reloadxml,如果有修改配置文件的话)。

然后就能用了。

相关文章

网友评论

      本文标题:freeswitch如何增加编译mod

      本文链接:https://www.haomeiwen.com/subject/ixfezxtx.html