FreeSWITCH 1.2
使用 FreeSWITCH 构建强大的开源高性能电话系统
作者:James.zhu,邮箱:james.zhu@hiastar.com freepbx@qq.com
获得开源通信技术信息,请关注微信公众号:asterisk-cn
深圳星昊通科技有限公司 www.hiastar.com
1
深圳星昊通科技有限公司 www.hiastar.com
FreePBX/Asterisk/FreeSWITCH 硬件整体解决方案
Asterisk/FreeSWITCH 语音板卡系列
VEGA 数字 E1/模拟网关系列(支持许可证端口升
级,内置 PROXY 功能,支持 SIP/PSTN 逃生)
DIY 网关(可支持一体机或独立安装,最
大 32E1, 网关界面+语音卡)
FreePBX 一体机设备(支持不同并发处理)
SIP 终端话机
FreePBX 商业模块(传真,语音广播,会议,CRM,
弹屏等等)
PortSIP WebRTC 网关
Sangoma 边界回话控制器(5-4000)呼叫
2
深圳星昊通科技有限公司 www.hiastar.com
FreeSWITCH 1.2
第二版
使用 FreeSWITCH 构建强大的高性能电话通信系统
Anthony Minessale
Michael S Collins
Darren Schreibe
Raymond Chandler
3
深圳星昊通科技有限公司 www.hiastar.com
FreeSWITCH 1.2
第二版
Copyright © 2013 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in
any form or by any means, without the prior written permission of the publisher, except in the case of brief
quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information
presented. However, the information contained in this book is sold without warranty, either express or implied.
Neither the authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages
caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products
mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the
accuracy of this information.
First edition: July 2010
Second edition: May 2013
Production Reference: 1170513
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78216-100-4
www.packtpub.com
Cover Image by Suresh Mogre (suresh.mogre.99@gmail.com)
4
深圳星昊通科技有限公司 www.hiastar.com
本书贡献者
Project Coordinator
Arshad Sopariwala
Proofreader
Paul Hindle
Indexer
Monica Ajmera Mehta
Graphics
Abhinash Sahu
Production Coordinator
Pooja Chipulunkar
Cover Work
Pooja Chipulunkar
Authors
Anthony Minessale
Michael S Collins
Darren Schreiber
Raymond Chandler
Reviewers
Norm Brandinger
Kristian Kielhofner
Jeff Leung
Brian Wiese
Acquisition Editor
Usha Iyer
Lead Technical Editor
Ankita Shashi
Technical Editors
Chirag Jani
Soumya Kanti
Ankita Meshram
Dheera Meril Paul
Zafeer Rais
5
深圳星昊通科技有限公司 www.hiastar.com
关于作者
Anthony Minessale 在计算机领域有着30年的工作经验. 他是FreeSWITCH项目的发起人和核心技术
人,目前担任梭子鱼旗下公司CudaTEL的CTO。
他创建了并主持ClueCon 通信开发人员大会,此大会每年八月份在美国芝加哥举行。
他有着非常丰富的网络和VOIP经验。在创建FreeSWITCH之前,他一直为Asterisk开源项目贡献代码,
并且为Asterisk开发了许多功能,这些功能今天仍然在使用。在公司梭子鱼网络, Anthony负责总体
CudaTEL PBX 设备的开发,此设备的核心电话系统引擎使用FreeSWITCH平台。
以下是作者-技术牛人,好男人对家庭的感谢:
I would like to thank my awesome family: my wife, Jill, son, Eric, and daughter, Abbi, for putting up with
the long hours and supporting me on my cause to revolutionize the telephony industry. Thanks to my dogs,
Chewie and Gypsy, for staying up with me at 2 a.m. on long nights. I would also like to thank the open source
community at large, especially those involved in the FreeSWITCH project, and I hope to see you all every
summer at ClueCon!
Michael S Collins 是一位开源通信软件的狂热爱好者. 他对PBX有着非常深入的了解,从事PBX技术
5年,呼叫中心开发长达9 年以上。他是活跃的FreeSWITCH社区成员。
另外他是FreeSWITCH CookBook核心作者. 目前在梭子鱼网络工作,和妻子孩子居住在加利福尼亚州
中部。以下是作者的感谢语:
I would like to thank first and foremost my wife, Lisa, my daughter,Katherine, and my son, Sean, who keep
me going each day. Without them I could not contribute to open source projects like FreeSWITCH, much less
co-author a book.
I would also like to thank the many FreeSWITCH experts around the world who are so willing to answer
technical questions: Anthony Minessale, Michael Jerris, Moises Silva, Raymond Chandler, Ken Rice, Travis
Cross, and many more. I would especially like to thank Brian K. West for patiently educating me in the ways of
VoIP.
I am also grateful to the many people who devote themselves to answering questions on the FreeSWITCH
mailing list and IRC channel: Steven Ayre, Avi Marcus, Steve Underwood, and all the rest. The FreeSWITCH
worldwide community is a great example of what an open source community should be. Well done!
Darren Schreiber 是2600 HZ项目的CEO。他对一直对开源的FreeSWITCH非常关心,投入了大量的时
间和精力,并且和Brian, Mike 和Anthony一起推动FreeSWITCH。他的项目支持了企业级的VOIP平台,支
持客户做多方面的拓展语音开发,短信和视频服务。
他有着15 年的IT经验,部署了企业级的SaaS 环境。他同时也是一个大学的讲师,负责国际性的VOIP
培训。从年轻时开始,他一直专注于VOIP技术。他毕业于伦斯勒理工学院,获得电脑科学和经济管理本科
学位。
他也是FreeSWITCH Cookbook的核心作者,以下是他的感谢语:
I'd like to thank, first and foremost, the FreeSWITCH team. Without them, I wouldn't have been challenged
6
with some of the most intriguing technology and people I've ever worked with. It has been a gift working with
深圳星昊通科技有限公司 www.hiastar.com
them.
I'd also like to thank my family and friends who have put up with my crazy work schedule and constant
tardiness, and have helped provide funds and moral support for our work. Thanks for everything.
Finally, I'd like to thank the open source community. Their tireless patience and countless selfless
contributions are a constant reminder that the world is not an evil place, and that people are generally out for the
greater good of society.
Raymond Chandler(@intralanman) 在过去10 年一直专注于开源项目。Raymond 的VOIP经验开始于一
个SER路由和Asterisk语音邮箱集成的项目。通过此项目,他发现一些asterisk的局限性,和SER本身功能的
缺乏,他后来开始使用OpenSER和CallWeaver。这样的组合比以前的方式好一点,但是他还是没有找到他
喜欢的完美解决方案。在2006的时候,朋友给他介绍了FreeSWITCH。从那时开始他一直使用FreeSWITCH
并且定期贡献一些代码。他是 mod_lcr 和其他PHP 脚本工具的作者。现在在CudaTel 专门从事软件开发。
从2011 春天开始,他是OSTAG 小组成员), 他的工作是推动开源通信项目,使得开源项目能够达到一个新
高度。此项目的共享一些OSTAG计划,并且获得了其他组织在的资金援助。以下是感谢语:
I'd like to thank my loving wife, Samantha, our daughters Makenzie, Trinity, Alecsys, and Kristian, and our
sons Kaiden and Casper for their support while they get less time with me than any of us would like. I'd also like
to thank the countless volunteers who step up to help out in the FreeSWITCH and other open source project
communities. It would be impossible to keep any project running without them.
7