1
0
mirror of https://github.com/coturn/coturn.git synced 2026-05-07 19:56:10 +02:00

Merge tag 'upstream/4.4.5.2'

Upstream version 4.4.5.2
This commit is contained in:
Oleg Moskalenko 2015-06-06 01:06:47 -07:00
commit b5a9483434
14 changed files with 72 additions and 50 deletions

View File

@ -1,11 +1,16 @@
4/9/2015 Oleg Moskalenko <mom040267@gmail.com>
Version 4.4.5.1 'Ardee West':
5/29/2015 Oleg Moskalenko <mom040267@gmail.com>
Version 4.4.5.2 'Ardee West':
- dual allocation adjusted according to the new TURN-bis draft;
- options sha256, sha384, sha512 retired as non-standard;
- third-party authorization (oAuth) updated according to the
version 14 of the draft;
- C++ fixes;
- C++ compilation fixes;
- cosmetic fixes;
- fixed binary package for CentOS 7.1;
- support for older SQLite versions added;
- compilation support for older CentOS release 5.x added;
- Issue 11 fixed;
- Issue 12 fixed.
3/31/2015 Oleg Moskalenko <mom040267@gmail.com>
Version 4.4.4.2 'Ardee West':

28
configure vendored
View File

@ -1169,33 +1169,11 @@ fi
if [ -z "${TURN_NO_SCTP}" ] ; then
if [ -z "${TURN_SCTP_INCLUDE}" ] ; then
if [ -f /usr/include/linux/sctp.h ] ; then
TURN_SCTP_INCLUDE="-DTURN_SCTP_INCLUDE=\"\\\"/usr/include/linux/sctp.h\\\"\""
elif [ -f /usr/include/netinet/sctp.h ] ; then
TURN_SCTP_INCLUDE="-DTURN_SCTP_INCLUDE=\"</usr/include/netinet/sctp.h>\""
else
if ! [ "${PREFIX}" = "/usr" ] ; then
if ! [ "${PREFIX}" = "/usr/local" ] ; then
TURN_SCTP_INCLUDE=`${FIND_CMD} ${PREFIX}/include/ -name sctp.h`
if [ -f /usr/include/netinet/sctp.h ] ; then
TURN_SCTP_INCLUDE="-DTURN_SCTP_INCLUDE=\"</usr/include/netinet/sctp.h>\""
fi
fi
if [ -z "${TURN_SCTP_INCLUDE}" ] ; then
TURN_SCTP_INCLUDE=`${FIND_CMD} /usr/local/include/ -name sctp.h`
fi
if [ -z "${TURN_SCTP_INCLUDE}" ] ; then
TURN_SCTP_INCLUDE=`${FIND_CMD} /usr/include/ -name sctp.h`
fi
if [ -z "${TURN_SCTP_INCLUDE}" ] ; then
TURN_NO_SCTP="-DTURN_NO_SCTP"
else
for ip in ${TURN_SCTP_INCLUDE} ; do
TURN_SCTP_INCLUDE="-DTURN_SCTP_INCLUDE=\"\\\"${ip}\\\"\""
break
done
fi
fi
else
TURN_SCTP_INCLUDE="-DTURN_SCTP_INCLUDE=\"\\\"${TURN_SCTP_INCLUDE}\\\"\""
TURN_SCTP_INCLUDE="-DTURN_SCTP_INCLUDE=\"\\\"${TURN_SCTP_INCLUDE}\\\"\""
fi
else
TURN_NO_SCTP="-DTURN_NO_SCTP"

View File

@ -169,7 +169,7 @@
#
#lt-cred-mech
# This option is opposite to lt-cred-mech or st-cred-mech.
# This option is opposite to lt-cred-mech.
# (TURN Server with no-auth option allows anonymous access).
# If neither option is defined, and no users are defined,
# then no-auth is default. If at least one user is defined,

View File

@ -8,7 +8,6 @@ CPWD=`pwd`
cd ${CPWD}
EPELRPM=epel-release-6-8.noarch.rpm
LIBEVENT_MAJOR_VERSION=2
LIBEVENT_VERSION=${LIBEVENT_MAJOR_VERSION}.0.21
LIBEVENT_DISTRO=libevent-${LIBEVENT_VERSION}-stable.tar.gz
@ -78,12 +77,12 @@ fi
# EPEL (for hiredis)
cd ${CPWD}
./epel.install.sh
./epel6.install.sh
# Platform file
echo "CentOS6.6" > ${BUILDDIR}/platform
cp ${CPWD}/epel.install.sh ${BUILDDIR}/install.sh
cp ${CPWD}/epel6.install.sh ${BUILDDIR}/install.sh
cd ${CPWD}

View File

@ -8,8 +8,6 @@ CPWD=`pwd`
cd ${CPWD}
EPELRPM=epel-release-6-8.noarch.rpm
# Common packs
PACKS="libevent-devel mariadb-devel sqlite sqlite-devel"
@ -24,12 +22,12 @@ fi
# EPEL (for hiredis)
cd ${CPWD}
./epel.install.sh
./epel7.install.sh
# Platform file
echo "CentOS7" > ${BUILDDIR}/platform
echo "CentOS7.1" > ${BUILDDIR}/platform
cp ${CPWD}/epel.install.sh ${BUILDDIR}/install.sh
cp ${CPWD}/epel7.install.sh ${BUILDDIR}/install.sh
cd ${CPWD}

View File

@ -2,7 +2,7 @@
# Common settings script.
TURNVERSION=4.4.5.1
TURNVERSION=4.4.5.2
BUILDDIR=~/rpmbuild
ARCH=`uname -p`
TURNSERVER_SVN_URL=http://coturn.googlecode.com/svn

39
rpm/epel7.install.sh Executable file
View File

@ -0,0 +1,39 @@
#!/bin/bash
CPWD=`pwd`
# Epel installation script
EPEL=epel-release-7-5.noarch
EPELRPM=${EPEL}.rpm
BUILDDIR=~/rpmbuild
WGETOPTIONS="--no-check-certificate"
RPMOPTIONS="-ivh --force"
mkdir -p ${BUILDDIR}
mkdir -p ${BUILDDIR}/RPMS
sudo yum -y install wget
cd ${BUILDDIR}/RPMS
if ! [ -f ${EPELRPM} ] ; then
wget ${WGETOPTIONS} http://download.fedoraproject.org/pub/epel/7/x86_64/e/${EPELRPM}
ER=$?
if ! [ ${ER} -eq 0 ] ; then
cd ${CPWD}
exit -1
fi
fi
PACK=${EPELRPM}
sudo rpm ${RPMOPTIONS} ${PACK}
ER=$?
if ! [ ${ER} -eq 0 ] ; then
echo "Cannot install package ${PACK}"
cd ${CPWD}
exit -1
fi
cd ${CPWD}

View File

@ -1,5 +1,5 @@
Name: turnserver
Version: 4.4.5.1
Version: 4.4.5.2
Release: 0%{dist}
Summary: Coturn TURN Server
@ -289,8 +289,8 @@ fi
%{_includedir}/turn/client/TurnMsgLib.h
%changelog
* Thu Apr 09 2015 Oleg Moskalenko <mom040267@gmail.com>
- Sync to 4.4.5.1
* Wed May 29 2015 Oleg Moskalenko <mom040267@gmail.com>
- Sync to 4.4.5.2
* Tue Mar 31 2015 Oleg Moskalenko <mom040267@gmail.com>
- Sync to 4.4.4.2
* Sun Mar 15 2015 Oleg Moskalenko <mom040267@gmail.com>

View File

@ -97,6 +97,8 @@ static void redisLibeventReadEvent(int fd, short event, void *arg) {
if(redis_le_valid(e)) {
redisAsyncHandleRead(e->context);
}
} else {
redis_reconnect(e);
}
}

View File

@ -97,6 +97,8 @@ static void sqlite_unlock(int write)
static int sqlite_init_multithreaded(void) {
#if defined(SQLITE_CONFIG_MULTITHREAD)
sqlite3_shutdown();
if (sqlite3_threadsafe() > 0) {
@ -112,6 +114,7 @@ static int sqlite_init_multithreaded(void) {
TURN_LOG_FUNC(TURN_LOG_LEVEL_ERROR, "Your SQLite database is not compiled to be threadsafe.\n");
return -1;
}
#endif
return 0;
}

View File

@ -1689,12 +1689,6 @@ static void print_features(unsigned long mfn)
TURN_LOG_FUNC(TURN_LOG_LEVEL_INFO, "\n");
#if !defined(TURN_NO_SCTP)
TURN_LOG_FUNC(TURN_LOG_LEVEL_INFO, "SCTP supported\n");
#else
TURN_LOG_FUNC(TURN_LOG_LEVEL_INFO, "SCTP is not supported\n");
#endif
TURN_LOG_FUNC(TURN_LOG_LEVEL_INFO, "Default Net Engine version: %d (%s)\n\n=====================================================\n\n", (int)turn_params.net_engine_version, turn_params.net_engine_version_txt[(int)turn_params.net_engine_version]);
}

View File

@ -309,7 +309,7 @@ void add_listener_addr(const char* addr) {
size_t i = 0;
for(i=0;i<turn_params.listener.addrs_number;++i) {
if(addr_eq(turn_params.listener.encaddrs[turn_params.listener.addrs_number-1],&baddr)) {
if(addr_eq(turn_params.listener.encaddrs[i],&baddr)) {
return;
}
}
@ -336,7 +336,7 @@ int add_relay_addr(const char* addr) {
size_t i = 0;
for(i=0;i<turn_params.relays_number;++i) {
if(!strcmp(turn_params.relay_addrs[turn_params.relays_number-1],sbaddr)) {
if(!strcmp(turn_params.relay_addrs[i],sbaddr)) {
return 0;
}
}

View File

@ -31,7 +31,7 @@
#ifndef __IOADEFS__
#define __IOADEFS__
#define TURN_SERVER_VERSION "4.4.5.1"
#define TURN_SERVER_VERSION "4.4.5.2"
#define TURN_SERVER_VERSION_NAME "Ardee West"
#define TURN_SOFTWARE "Coturn-" TURN_SERVER_VERSION " '" TURN_SERVER_VERSION_NAME "'"
@ -218,6 +218,10 @@ typedef u32bits turn_time_t;
////////////////////////////////////////////////////////
#if !defined(IPPROTO_SCTP)
#define TURN_NO_SCTP
#endif
#define CLIENT_DGRAM_SOCKET_TYPE SOCK_DGRAM
#define CLIENT_DGRAM_SOCKET_PROTOCOL IPPROTO_IP