惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
T
Threatpost
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Spread Privacy
Spread Privacy
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Engineering at Meta
Engineering at Meta
T
Tenable Blog
C
Cisco Blogs
T
The Blog of Author Tim Ferriss
NISL@THU
NISL@THU
T
Threat Research - Cisco Blogs
T
The Exploit Database - CXSecurity.com
P
Privacy & Cybersecurity Law Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
S
Secure Thoughts
N
News and Events Feed by Topic
Google DeepMind News
Google DeepMind News
博客园 - 三生石上(FineUI控件)
Microsoft Azure Blog
Microsoft Azure Blog
月光博客
月光博客
H
Hacker News: Front Page
I
InfoQ
L
LangChain Blog
Security Latest
Security Latest
The Cloudflare Blog
Forbes - Security
Forbes - Security
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Stack Overflow Blog
Stack Overflow Blog
TaoSecurity Blog
TaoSecurity Blog
量子位
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
V
Visual Studio Blog
Scott Helme
Scott Helme
爱范儿
爱范儿
A
Arctic Wolf
F
Full Disclosure
酷 壳 – CoolShell
酷 壳 – CoolShell
Schneier on Security
Schneier on Security
N
News and Events Feed by Topic
C
CXSECURITY Database RSS Feed - CXSecurity.com
L
LINUX DO - 最新话题
V2EX - 技术
V2EX - 技术
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
人人都是产品经理
人人都是产品经理
The Hacker News
The Hacker News
Hugging Face - Blog
Hugging Face - Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
Know Your Adversary
Know Your Adversary
Application and Cybersecurity Blog
Application and Cybersecurity Blog

博客园 - 八进制

博客已搬家 Swift开发iOS应用过程中的问题和解决记录 AndroidStudio的一些坑 Eclipse崩溃后无法启动的问题解决 Android 5.0/5.1开发问题专贴 WordPress安装使用问题记录 Arduino单片机使用和开发问题记录 U盘启动笔记本无法安装Win7问题和解决 安装配置opensips过程记录 Android SDK开发包国内下载地址 博客园被黑了? [Android问答] 如何获得手机屏幕分辨率? [Android问答] 开发环境问题集锦 [Android问答] ListView如何加载远程图片?(附代码) [Android问答] 如何实现“退出应用”功能? [Android问答] 旋转屏幕导致Activity重建怎么办? [Android问答] 如何应对Activity进程被杀? [Android问答] 如何理解Activity生命周期? [Android问答] px、dp和sp,这些单位有什么区别?
FreeSwitch安装配置记录
八进制 · 2013-08-06 · via 博客园 - 八进制

>>> 博客搬家,本文已迁移至:https://bjzhanghao.com/p/2468 <<<

安装FreeSwitch

主要命令如下:

git clone -b v1.2.stable git://git.freeswitch.org/freeswitch.git
cd freeswitch/
./bootstrap.sh && ./configure && make && make install && make hd-sounds-install && make hd-moh-install && make samples

最后一个命令大约执行20分钟

缺省安装目录:/usr/local/freeswitch/

FreeSwitch所需的端口列表(需在防火墙设置里打开):http://wiki.freeswitch.org/wiki/Firewall

FreeSwitch默认只支持音频,为支持视频,修改vars.xml如下:

<X-PRE-PROCESS cmd="set" data="global_codec_prefs=PCMU,PCMA,GSM,H264,H263-1998,H263"/>
<X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=PCMU,PCMA,GSM,H264,H263-1998,H263"/>

检验是否安装成功

FreeSwitch安装后缺省用户是1000~1020,密码均为1234。用任意sip客户端(boghe, linphone, x-lite等等)登录,拨9664应该可以听到等待音乐,说明安装成功了。还有一些功能号码,总结如下:

------------------
号码 | 说明
----------------------
9664 | 保持音乐
9196 | echo,回音测试
9195 | echo,回音测试,延迟5秒
9197 | milliwatte extension,铃音生成
9198 | TGML 铃音生成示例
5000 | 示例IVR
4000 | 听取语音信箱
33xx | 电话会议,48K(其中xx可为00-99,下同)
32xx | 电话会议,32K
31xx | 电话会议,16K
30xx | 电话会议,8K
2000-2002 | 呼叫组
1000-1019 | 默认分机号

曾遇到过一个问题,接通9664后立刻被自动挂断,接上摄像头后问题消失。

配置电信/联通双线

复制internal.xml为internal2.xml,修改internal2.xml里第一行的name为internal2,再将sip-ip和rtp-ip改为与internal里不同的那个公网ip,重启freeswitch即可。(用sofia status命令应该可以看到新建的internal2生效)

要使用智能域名解析,将vars.xml里的domain改为域名即可。

防掉线

在profile文件里修改nat-options-ping属性为true,大约每30秒FreeSwitch会发一个options包给客户端以保持连接。
http://wiki.freeswitch.org/wiki/Sofia.conf.xml#nat-options-ping

中文语音

中文语音包下载和使用方法:https://groups.google.com/forum/#!topic/freeswitch-cn/gYXmAv7sGKU

参考资料

http://www.dujinfang.com/2010/04/14/freeswitch-chu-bu.html