freeswitch可以支持h323协议,可以通过安装mod_h323才能够使用。如果需要安装mod_h323,首先要安装h323_plus.下面来说说具体步骤:参考 https://freeswitch.org/confluence/display/FREESWITCH/mod_h323。
1.首先去 http://www.h323plus.org/source/。下载h323plus-v1_26_5.tar.gz和ptlib-2.12.8.tar.bz2,并解压到
/data/h323/ptlib 和/data/h323/h323plus下面
2.设置环境变量
<span style="font-size:18px;"> export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig export LD_LIBRARY_PATH=/usr/local/lib export OPENH323DIR=/data/h323/h323plus export PTLIBDIR= /data/h323/ptlib</span>
3.安装 ptlib. 执行步骤:
<span style="font-size:18px;"> $./configure make&make install</span>4.安装h323plus。
<span style="font-size:18px;"> $./configure make&make install</span>如果出现一下错误
<span style="font-size:18px;">/data/h323/h323plus/openh323u.mak:67: /usr/local/make/ptbuildopts.mak: 没有那个文件或目录 /data/h323/h323plus/openh323u.mak:96: /usr/local/make/ptlib.mak: 没有那个文件或目录 make: *** 没有规则可以创建目标“/usr/local/make/ptlib.mak”。 停止。</span>则修改
修改openh323u.mak文件中的
<span style="font-size:18px;">PTLIBDIR= /data/h323/ptlib</span>
<span style="font-size:18px;">5.安装flex yum install flex</span>6.进入src/mod/endpoint/mod_h323 执行make install.
如果出现
'/usr/src/freeswitch/src/mod/endpoints/mod_h323/mod_h323.h:43:18: error: h323.h: No such file or directory'
则
ln -s /usr/local/include/openh323 /usr/include/openh323
7.安装完成之后,重启freeswitch .执行load mod_h323。
8.如果出现 cannot open shared object file: No such file or directory 。则做以下修改
1) 如果共享库文件安装到了/lib或/usr/lib目录下, 那么需执行一下ldconfig命令
2) 如果共享库文件安装到了/usr/local/lib(很多开源的共享库都会安装到该目录下)或其它"非/lib或/usr/lib"目录下, 那么在执行ldconfig命令前, 还要把新共享库目录加入到共享库配置文件/etc/ld.so.conf中, 如下:
# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
# echo "/usr/local/lib" >> /etc/ld.so.conf
# ldconfig