# freeswitch **Repository Path**: goodtpg/freeswitch ## Basic Information - **Project Name**: freeswitch - **Description**: freeswitch 内部镜像 - **Primary Language**: C - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-12-21 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README FreeSWITCH 1.6版开发镜像,centos7 环境下安装正常 CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。 firewall: systemctl start firewalld.service#启动firewall systemctl stop firewalld.service搜索#停止firewall systemctl disable firewalld.service#禁止firewall开机启动 安装命令 yum install -y http://files.freeswitch.org/freeswitch-release-1-6.noarch.rpm epel-release yum install -y git gcc-c++ autoconf automake libtool wget python ncurses-devel zlib-devel libjpeg-devel openssl-devel e2fsprogs-devel sqlite-devel libcurl-devel pcre-devel speex-devel ldns-devel libedit-devel libxml2-devel libyuv-devel opus-devel libvpx-devel libvpx2* libdb4* libidn-devel unbound-devel libuuid-devel lua-devel libsndfile-devel yasm-devel cd /usr/local/src git clone https://git.oschina.net/goodtpg/freeswitch.git cd /usr/local/src/freeswitch ./bootstrap.sh -j ./configure make && make install && make cd-sounds-install && make cd-moh-install ** 进行执行文件做符合链接,方便后期进行快速启动** ln -sf /usr/local/freeswitch/bin/freeswitch /usr/bin/ ln -sf /usr/local/freeswitch/bin/fs_cli /usr/bin/ ** FreeSWITCH 中文语音包 安装** 语音包下载地址: ftp://ftp.x-y-t.com/pub/fssounds.tar.gz (迅雷下载把) 在/usr/local/freeswitch/sounds/下建立目录zh/cn/sue(因为不知道声音主人的名字,就先用sue代替了,抱歉抱歉) mkdir -p /usr/local/freeswitch/sounds/zh/cn/sue 将声音文件移动到目标目录 mv output/* /usr/local/freeswitch/sounds/zh/cn/sue/ 增加中文定义 cd /usr/local/freeswitch/conf/lang cp -a en zh cd zh mv en.xml cn.xml 编辑cn.xml,将第2行换成 增加对中文的加载 编辑/usr/local/freeswitch/conf/freeswitch.xml,找到段,加入 增加中文say模块的加载 编辑/usr/local/freeswitch/conf/autoload_configs/modules.conf.xml 去除的注释 设置中文为默认语言 编辑/usr/local/freeswitch/conf/vars.xml,加入以下几行 重新加载xml,在fs_cli,执行: reloadxml 中文语音就装好啦。凡是有录音的,都会播放中文内容,没有录音的,还是会播放英文内容。 重新加载配置文件 在fs_cli,执行: reloadxml ** freeSWITCH启动、关闭**  启动命令: [root@localhost ~]# freeswitch -nc –nonat 判断freeSWITCH是否运行: [root@localhost ~]# ps aux | grepfreeswitch 相关端口是否占用: [root@localhost ~]# netstat -na | grep 5060 freeSWITCH关闭:2种方式 第一种方式: [root@localhost ~]# freeswitch –stop 第二种方式:在fs_cli客户端中种执行如下命令 freeswitch@internal> shutdown 或 freeswitch@internal> fsctl shutdown FreeSWITCH FreeSWITCH 1.6版开发镜像,centos7 环境下安装正常 CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。 firewall: systemctl start firewalld.service#启动firewall systemctl stop firewalld.service搜索#停止firewall systemctl disable firewalld.service#禁止firewall开机启动 安装命令 yum install -y http://files.freeswitch.org/freeswitch-release-1-6.noarch.rpm epel-release yum install -y git gcc-c++ autoconf automake libtool wget python ncurses-devel zlib-devel libjpeg-devel openssl-devel e2fsprogs-devel sqlite-devel libcurl-devel pcre-devel speex-devel ldns-devel libedit-devel libxml2-devel libyuv-devel opus-devel libvpx-devel libvpx2* libdb4* libidn-devel unbound-devel libuuid-devel lua-devel libsndfile-devel yasm-devel cd /usr/local/src git clone https://git.oschina.net/goodtpg/FreeSWITCH.git cd /usr/local/src/freeswitch ./bootstrap.sh -j ./configure make && make install && make cd-sounds-install && make cd-moh-install ** 进行执行文件做符合链接,方便后期进行快速启动** ln -sf /usr/local/freeswitch/bin/freeswitch /usr/bin/ ln -sf /usr/local/freeswitch/bin/fs_cli /usr/bin/ ** FreeSWITCH 中文语音包 安装** 语音包下载地址: ftp://ftp.x-y-t.com/pub/fssounds.tar.gz (迅雷下载把) 在/usr/local/freeswitch/sounds/下建立目录zh/cn/sue(因为不知道声音主人的名字,就先用sue代替了,抱歉抱歉) mkdir -p /usr/local/freeswitch/sounds/zh/cn/sue 将声音文件移动到目标目录 mv output/* /usr/local/freeswitch/sounds/zh/cn/sue/ 增加中文定义 cd /usr/local/freeswitch/conf/lang cp -a en zh cd zh mv en.xml cn.xml 编辑cn.xml,将第2行换成 增加对中文的加载 编辑/usr/local/freeswitch/conf/freeswitch.xml,找到段,加入 增加中文say模块的加载 编辑/usr/local/freeswitch/conf/autoload_configs/modules.conf.xml 去除的注释 设置中文为默认语言 编辑/usr/local/freeswitch/conf/vars.xml,加入以下几行 重新加载xml,在fs_cli,执行: reloadxml 中文语音就装好啦。凡是有录音的,都会播放中文内容,没有录音的,还是会播放英文内容。 重新加载配置文件 在fs_cli,执行: reloadxml ** freeSWITCH启动、关闭**  启动命令: [root@localhost ~]# freeswitch -nc –nonat 判断freeSWITCH是否运行: [root@localhost ~]# ps aux | grepfreeswitch 相关端口是否占用: [root@localhost ~]# netstat -na | grep 5060 freeSWITCH关闭:2种方式 第一种方式: [root@localhost ~]# freeswitch –stop 第二种方式:在fs_cli客户端中种执行如下命令 freeswitch@internal> shutdown 或 freeswitch@internal> fsctl shutdown