David Foxworth
Member
- Joined
- Oct 26, 2013
- Messages
- 69
- Reaction score
- 23
I notice the IncrediblePBX install script actually clones from the github repository the latest version of libsrtp, and then compiles and installs. The version of libsrtp that gets installed using this method is 2.2.0-pre. According to this link, they recommend staying with 1.5.4 in production systems:
https://wiki.asterisk.org/wiki/display/AST/libsrtp
I can confirm there are issues with libsrtp 2.2.0-pre. When I enable SRTP in Asterisk and on my phone, and place a call, Asterisk shuts down:
== Setting global variable 'SIPDOMAIN' to '10.0.44.1'
asterisk*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
I made some changes to the IncrediblePBX script to install libsrtp from the RPM on the EPEL repo, which is v1.5.4, by changing this line:
yum -y install --enablerepo="epel" php-mcrypt
to:
yum -y install --enablerepo="epel" php-mcrypt libsrtp libsrtp-devel
And commenting out the lines that install libsrtp from the Github repo:
# Commenting out for now to try older version 1.5.4
# cd /usr/src
# git clone https://github.com/cisco/libsrtp.git
# cd libsrtp
# ./configure CFLAGS=-fPIC
# make && make install
# echo "/usr/local/lib" > /etc/ld.so.conf.d/libsrtp.conf
# ldconfig
Now SRTP calls no longer cause Asterisk to shutdown...
https://wiki.asterisk.org/wiki/display/AST/libsrtp
I can confirm there are issues with libsrtp 2.2.0-pre. When I enable SRTP in Asterisk and on my phone, and place a call, Asterisk shuts down:
== Setting global variable 'SIPDOMAIN' to '10.0.44.1'
asterisk*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
I made some changes to the IncrediblePBX script to install libsrtp from the RPM on the EPEL repo, which is v1.5.4, by changing this line:
yum -y install --enablerepo="epel" php-mcrypt
to:
yum -y install --enablerepo="epel" php-mcrypt libsrtp libsrtp-devel
And commenting out the lines that install libsrtp from the Github repo:
# Commenting out for now to try older version 1.5.4
# cd /usr/src
# git clone https://github.com/cisco/libsrtp.git
# cd libsrtp
# ./configure CFLAGS=-fPIC
# make && make install
# echo "/usr/local/lib" > /etc/ld.so.conf.d/libsrtp.conf
# ldconfig
Now SRTP calls no longer cause Asterisk to shutdown...