原创 freeswitch直接轉發SDP並不進行聲音編解碼

freeswitch直接轉發INVITE的SDP,不做SDP協商,協商讓設備自己做。並且經過fs的聲音不進行編解碼   sip_profiles中的配置文件,如internal.xml中添加 <param name="inbound-pr

原创 Ubuntu 16.04.3安裝 freeswitch 1.6

  1.下載fs代碼。 git clone https://freeswitch.org/stash/scm/fs/freeswitch.git freeswitch 如果不是從官網下載,編譯可能會有點問題。我是直接拷貝代碼上去的。編譯時

原创 vs編譯freeswitch 的mod_sofia庫。

編譯freeswitchconsole時,並沒有編譯mod_sofia,所以就沒辦法加載mod_sofia.dll。freeswitchconsole跑起來就沒有監聽5060端口。 關於mod_safia 的介紹,看http://www.

原创 centos 編譯sipp-3.5.1

安裝pcap yum install libpcap-devel   下載sipp-3.5.1 https://github.com/SIPp/sipp   進入sipp代碼目錄編譯 ./build.sh --with-pcap   生成

原创 安卓date設置時間

可試下以下命令,在銳芯微3128上試過可用。 date -s20191122.091340 Fri Nov 22 09:13:40 CST 2019

原创 debian9 ping 提示connect: network is unreachable 問題的解決

因爲我把vmware改橋接模式,並修改debian的動態IP修改爲靜態後, 執行 /etc/init.d/networking restart,發現  ping 提示connect: network is unreachable 。  

原创 ubnuntu 18.04提示無libmpfr.so.4

error while loading shared libraries:libmpfr.so.4: cannot open shared object file: No such file or directory. 解決: s

原创 GCC編譯設置錯誤和警告

把所有警告當錯誤 -Werror 把某一警告當錯誤 -Werror= 如:-Werror=return-type 忽略某些警告 -Wno 如:-Wno-unused-result 顯示所有警告 -Wall 不生成任何警告信息 -w

原创 ubuntu16.04.3配置freeswitch1.6使用PostgreSQL

安裝 PostgreSQL sudo apt-get -y install postgresql 創建存放表空間目錄 sudo mkdir -p /usr/local/freeswitch/db/psdb sudo chown

原创 OPENSIPS編譯安裝新模塊

opensips已經安裝好了,如果要新增或修改模塊, 編譯新模塊 make all include_modules="新模塊" 安裝 make include_modules="新模塊" prefix="/usr/local"

原创 windows配置freeswitch1.6使用mysql

1、下載mysql安裝 2、建立數據庫,創建用戶,給數據庫權限。我都設爲freeswitch。   3、配置MYSQL數據源 windows上要配置mysql數據源,控制面板中,找到管理工具-->數據源(ODBC)-->系統DSN--->

原创 centos環境下編譯程序提示缺少頭文件

如編譯時提示 microhttpd.h:No such file or directory    yum provides *microhttpd.h* 已加載插件:fastestmirror Loading mirror spee

原创 在windows上,用cmake 交叉編譯arm程序

在windows上,用cmake 交叉編譯arm程序。生成器用nijia(或用MinGW,此時, cmake執行時,指定生成器爲 -G “MinGW Makefiles”, 編譯用make). CMakeLists.txt

原创 mysql遠程連接數據庫報111錯誤

mysql 遠程連接debian8中的mysql數據庫的,報錯。 mysql -h IP -u root -p  Enter password:  ERROR 2003 (HY000): Can't connect to MySQL se

原创 shell批量替換文本中的多種字符串

需求,需要把文件中,aa替換成AA,bb替換成BB, cc替換成CC, 腳本如下: SRC_STR=(aa bb cc) DST_STR=(AA BB CC) CMAKE_CONFIG=${DST_STR[1]}Config.cm