freeswitch安装配置笔记

sofia status profile internal reg
sofia profile external restart
originate sofia/internal/3319手机号@IP地址:5060 &echo



 1038  ln -sf /usr/local/freeswitch/bin/freeswitch /usr/bin
 1039  ln -sf /usr/local/freeswitch/bin/fs_cli /usr/bin

 1026  grep -n -i "Checking Candidate" *.c
 1027  vim switch_core_media.c 
#14版本的修改方法

for (i = 0; i < engine->cand_acl_count; i++) {
// ignore ipv6
if (strchr(fields[4],'-'))
continue;



1028 cd .. 1029 grep core Makefile 1030 make install_core 1031 ls 1032 cd .. 1033 ls 1034 sh freeswitch restart 一 配置mysql #CentOS上安装ODBC开发包和MYSQL数据库的ODBC驱动程序 yum install -y unixODBC unixODBC-devel mysql-connector-odbc #如上安装好后,通过/etc/odbcinst.ini可以配置数据库的驱动 vi /etc/odbcinst.ini [MySQL] Description = ODBC for MySQL Driver = /usr/lib/libmyodbc5.so Setup = /usr/lib/libodbcmyS.so Driver64 = /usr/lib64/libmyodbc5.so Setup64 = /usr/lib64/libodbcmyS.so FileUsage = 1 Threading = 0 #接下来需要在/etc/odbc.ini中配置DSN(即数据源名称) vi /etc/odbc.ini [freeswitch] Driver = /usr/lib64/libmyodbc5.so SERVER = localhost PORT = 3306 DATABASE = freeswitch OPTION = 67108864 #这一行非常重要,FreeSWITCH会将多条SQL放到一起执行,以提高效率,如果没有该选项则会出错 #MYodbc 3.51.18及以后的版本才支持该选项 USER = root PASSWORD = Passw0rd@0791 Threading = 0 #测试ODBC链接,如下已经成功链接 [root@localhost /]# isql -v freeswitch +---------------------------------------+ | Connected! | | | | sql-statement | | help [tablename] | | quit | | | +---------------------------------------+ SQL> yum install libedit-devel gcc ipset perl sqlite-devel libcurl-devel pcre pcre-devel speex speex-devel libldns-dev alsa-lib libogg postgresql libtheora libtiff libvorbis autoconf automake libtool gcc-c++ ncurses-devel make expat-devel zlib zlib-devel libjpeg-devel libpcre unixODBC-devel freetype libpng t1lib libXpm openssl-devel libxslt libc-client-devel pciutils lsof usbutils acpid wget ntp ntpdate dmidecode parted lrzsz iptables-services mysql php net-tools git expect -y ./configure && make && make install

 

上一篇:FreeSWITCH代码分析


下一篇:开源软交换系统 FreeSwitch 与 Asterisk 比较