工具: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,如果有修改配置文件的话)。
然后就能用了。