Module: sems Branch: master Commit: 58f59388d83640a9b6ce15109381b2a3ddb2dec0 URL: https://github.com/sems-server/sems/commit/58f59388d83640a9b6ce15109381b2a3ddb2dec0
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: 2015-11-17T16:48:26+01:00 c/f: remove obsolete MAX_RTP_SESSIONS, unused since using libevent --- Modified: CMakeLists.txt Modified: Makefile.defs Modified: core/CMakeLists.txt Modified: doc/Tuning.txt Modified: doc/src/doxyref.h --- Diff: https://github.com/sems-server/sems/commit/58f59388d83640a9b6ce15109381b2a3ddb2dec0.diff Patch: https://github.com/sems-server/sems/commit/58f59388d83640a9b6ce15109381b2a3ddb2dec0.patch --- diff --git a/CMakeLists.txt b/CMakeLists.txt index def471f..587b5e1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,7 +47,6 @@ OPTION(SEMS_USE_TTS "Build with Text-to-speech support (requires Flite OPTION(SEMS_USE_OPENSSL "Build with OpenSSL" OFF) OPTION(SEMS_USE_MONITORING "Build with monitoring support" OFF) OPTION(SEMS_USE_IPV6 "Build with IPv6 support" OFF) -OPTION(MAX_RTP_SESSIONS:int "How many rtp sessions SEMS will handle simultaneously? (default 2048)" 2048) # Fix weird static libs handling in old CMake IF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} STREQUAL "2.4") diff --git a/Makefile.defs b/Makefile.defs index 0c93b3b..c76592a 100644 --- a/Makefile.defs +++ b/Makefile.defs @@ -32,7 +32,6 @@ CPPFLAGS += -D_DEBUG \ -DOS='"$(OS)"' \ -DSYSTEM_SAMPLECLOCK_RATE=$(SYSTEM_SAMPLECLOCK_RATE) \ -DSEMS_APP_NAME='"$(APP_NAME)"' -# -DMAX_RTP_SESSIONS=8192 \ # -DSUPPORT_IPV6 \ # -DNO_THREADID_LOG \ # -DLOG_PRETTY_FUNCTION \ diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index fcf41a6..8160992 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -13,12 +13,6 @@ INCLUDE_DIRECTORIES (amci) ADD_EXECUTABLE (sems ${sems_SRCS}) TARGET_LINK_LIBRARIES(sems ${CMAKE_DL_LIBS} stdc++ resolv) -IF(NOT MAX_RTP_SESSIONS) - SET(MAX_RTP_SESSIONS 2048) -ENDIF(NOT MAX_RTP_SESSIONS) - -ADD_DEFINITIONS(-DMAX_RTP_SESSIONS=${MAX_RTP_SESSIONS}) - TARGET_LINK_LIBRARIES(sems ${CMAKE_DL_LIBS} event event_pthreads) IF(SPANDSP_FOUND) diff --git a/doc/Tuning.txt b/doc/Tuning.txt index c69f0ac..3b1264f 100644 --- a/doc/Tuning.txt +++ b/doc/Tuning.txt @@ -18,11 +18,6 @@ Tuning SEMS for high load unlimited open files limit is not possible, but it is sufficient to set it to some very high value (e.g. ulimit -n 100000). - There is a compile-time variable that sets a limit on how many RTP - sessions are supported concurrently, this is MAX_RTP_SESSIONS. You may - either add this at compile time to your value, or edit Makefile.defs - and adapt the value there. - SEMS normally uses one thread per session (processing of the signaling). This thread sleeps on a mutex (the session's event queue) most of the time (RTP/audio processing is handled by the diff --git a/doc/src/doxyref.h b/doc/src/doxyref.h index 2412920..cf4876c 100644 --- a/doc/src/doxyref.h +++ b/doc/src/doxyref.h @@ -88,10 +88,6 @@ * user. Note that an unlimited open files limit is not possible, but it is sufficient * to set it to some very high value (e.g. ulimit -n 100000).</p> * - * <p>There is a compile-time variable that sets a limit on how many RTP sessions are - * supported concurrently, this is MAX_RTP_SESSIONS. You may either add this at compile - * time to your value, or edit Makefile.defs and adapt the value there.</p> - * * <p>SEMS normally uses one thread per session (processing of the signaling). This thread * sleeps on a mutex (the session's event queue) most of the time * (RTP/audio processing is handled by the AmMediaProcessor _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
