HOW TO Add Secure RTP to Asterisk 1.8
来源:互联网 发布:青年作家投稿软件 编辑:程序博客网 时间:2024/06/11 22:58
http://www.pbxinaflash.com/community/index.php?threads/how-to-add-secure-rtp-to-asterisk-1-8.8881/
http://www.voip-info.org/wiki/view/Asterisk+SRTP
http://www.remiphilippe.fr/2011/01/16/asterisk-srtp-with-1-8/
It turns out that it's quite straightforward to add sRTP functionality to Asterisk 1.8 (purple for us PIAF users). You just need to compile and install libsrtp, and then re-configure and re-compile Asterisk. Here's a short howto.
1) Download libsrtp source. There are a couple of spots out there to get it, but I found this link that already has everything set up for CentOS.
f-t-p://f-t-p.owlriver.com/pub/local/ORC/srtp/srtp-1.4.4-1orc.src.rpm
2) Install the source package.
rpm -ivv srtp-1.44-1orc.src.rpm
It will complain about not having a particular user on your system, but that's not a big deal.
3) cd to /usr/src/redhat/SOURCES and extract the tarball
tar xvf srtp-1.4.4.tgz
4) cd to /usr/src/redhat/SOURCES/srtp and build libsrtp.
cd srtp
./configure
make
make install
5) cd to /usr/src/asterisk and reconfigure.
cd /usr/src/asterisk
./configure
Note - I didn't use any extra configure flags. Not sure if the official PIAF build does or not. If there should be some, somebody will let me know, I'm guessing. My build seems to work fine without any.
6) Make sure that res_srtp is enabled in the menuconfig.
make menuconfig
Go to the resources section and check that res_srtp has a * by it.
7) Build asterisk.
amportal stop
make
make install
amportal start
8) Rebuild Flite
amportal stop
cd /usr/src/asterisk-flite
make
make install
amportal start
That's all - you should now have sRTP support.
I've got a Polycom 601 phone that supports sRTP. To get that working, I added the following lines to my local-sip.cfg for provisioning the phone:
sec.srtp.enable="1"
sec.srtp.leg.enable="1"
sec.srtp.offer="1"
sec.srtp.leg.allowLocalConf="0"
According to the Polycom documentation, this set of commands should enable sRTP for registrations that support it. If you try to register to an older version of asterisk without sRTP support, the phone quietly ignores these settings. You can see that the encryption is enabled by the padlock on the display when making a call.
Several other brands of IP phones support sRTP, and there are even a couple of soft-phones that support it.
Dave
- HOW TO Add Secure RTP to Asterisk 1.8
- how to add lun
- How to write secure Yii applications
- How To: Configure Secure FTP Server (VSFTPD)
- How-to: Write an Asterisk Module
- How to add shortcut icon
- How to add AD attribute?
- How to add custom scripts
- How To Add Static Text to point
- How to add a button to PreferenceScreen
- How to add customized button to SM30.
- How to add help to Apex pages
- How to add row numbers to DataGridView
- how to add pch to Xcode 6
- how to add tomcat8.0 to eclipse
- How to add event listener to div
- How to update Docker image to maintain your containers secure
- How to Secure Your Web Site Running on IBM i
- VC6配置WDK
- oracle 修改表名、列名、字段类型、添加列、删除列
- 请问设置虚拟机网卡为NAT模式的步骤是怎样的?
- DLL注入呼出窗口
- hbase shell 练习
- HOW TO Add Secure RTP to Asterisk 1.8
- CAP理论和ACID模型
- Windows服务(Windows Service,system权限)程序显示界面与用户交互(xp,win7通用)
- java 线程同步 synchronized
- c++多线程学习7信号
- 提示接收到信息的程序
- Android Jamendo源码分析之 网络连接模块
- c++多线程8event
- HTML5学习(3) SVG的学习及应用六 路径(复杂图形的实现)