《CentOS7下FreeSwitch1.8源码安装过程完整记录方案.docx》由会员分享,可在线阅读,更多相关《CentOS7下FreeSwitch1.8源码安装过程完整记录方案.docx(2页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、Is yum安装相关的依赖包yum install -y git gcc-c+ wget alsa-lib-devel autoconf automake bison broadvoice-devel bzip2 curl-devel db-devel e2fsprogs-devel flite-devel g722_l-devel gdbm-devel gnutls- devel ilbc2-devel Idns-devel Iibcodec2-devel libcurl-devel libedit-devel libidn-devel libjpeg- devel libmemcached
2、-devel libogg-devel libsilk-devel libsndfile-devel libtiff-devel libtheora- devel libtool libvorbis-devel Iibxml2-devel lua-devel Izo-devel mongo-c-driver-devel ncurses-devel net-snmp-devel openssl-devel opus-devel pcre-devel perl perl-ExtUtils- Embed pkgconfig portaudio-devel postgresql-devel pytho
3、n26-devel python-devel soundtouch-devel speex-devel sqlite-devel unbound-devel unixODBC-devel libuuid-devel which yasm zlib-devel2、安装mod_shout模块以支持mp3格式yum install -y libshout-devel lame-devel Iibmpgl23-devel请自行搜索并下载lame-源码安装包./configure -enable-static -enable-shared make make install#换行加入:/usr/loca
4、l/lib#保存退出:wqIdconfig3、安装 cmakeyum remove cmake请自行搜索并下载源码安装包./configuremakemake install4、安装 libksyum install libatomic请自行搜索libks.git源码安装包 cd libks cmake .makemake install4、安装 signalwire-c请自行搜索并下载signalwire-c.git源码安装包 cd signalwire-c/ cmake .makemake installIn -sf /usr/local/lib64/pkgconfig/signalwir
5、e_client.pc /usr/lib64/pkgconfig/signalwire_client.pc5、下载并安装freeswitchl.8请自行搜索并下载freeswitchl.8版本的源码安装包./bootstrap.sh -j./configure - -enable-portable-binary -pref ix=/usr/loca l/f reeswitch -with-gnu-ld -with-python -with-openssl -enable-core-odbc-support -enable-zrtp -enable-libmp3lamemakemake -j i
6、nstall如下安装语音文件,用时会较长make -j cd-sounds-installmake -j cd-moh-install7、安装后的一些操作设置全局命令软连接In -sf /usr/local/freeswitch/bin/freeswitch /usr/bin/In -sf /usr/local/freeswitch/bin/fs_cli /usr/bin/禁用 freeswitch 上 ipv68、启动 freeswitchfreeswitch -nc#后台启动freeswitch常用命令# 列出 internal SIP Profile 的状态 sofia status p
7、rofile internal列出某个Profile上所有已注册用户sofia status profile internal reg过滤某些符合条件Sofia status profile internal reg XXXSofia status profile internal user XXX# 列出网关状态sofia status gateway gwl# 以上命令都可以将status用xmlstatus来代替,以列出XML格式的状态,这样比拟容易用 于其他程序解析启动、停止、重启某个Profile的命令sofia profile internal start #启动sofia pro
8、file internal stop #停止sofia profile internal restart #重启#有时候修改了某个Profile的某个参数,不需要重启,可以使用以下命令让FreeSWITCH重 读sofia的配置# 注意并不是所有的参数都能生效sofia profile internal rescan# 添加了一个新的gateway以后,也可以使用rescan指令读取sofia profile external rescan# 如果是修改了一个网关,那么可以先删除该网关,再rescansofia profile external killgw gwlsofia profile
9、external rescan以下命令可以指定某个网关立即向外注册或注销sofia profile external register gwlsofia profile external unregister# 开启该Profile的SIP跟踪功能抓SIP包sofia profile internal siptrace on# 有时候,希望将已经注册的用户清理掉,可以使用如下命令,注意此命令只是临时清理, 客户端重新注册的话还是可以注册成功的sofia profile internal flush_inbound_reg XXXIP# 也可以根据call-id来清理sofia profile internal reg XXX #通过此命令查找到 call-id 的值sofia profile flush_inbound_reg call-id 字符 #清除 call-id 用户