Skip to content
Permalink
Browse files

apps/reConServer: make RTP receive FIFO maximum size configurable

  • Loading branch information...
dpocock committed May 13, 2019
1 parent ee32513 commit 91037bee941ef51ba5883e3b5ad0c6217d9b0a61
Showing with 7 additions and 0 deletions.
  1. +3 −0 apps/reConServer/reConServer.config
  2. +4 −0 apps/reConServer/reConServer.cxx
@@ -164,6 +164,9 @@ NatTraversalServerPort = 3478
# bug #137, it may be desirable to disable it.
AddViaRport = true

# Maximum number of frames that can be buffered in the RTP receive FIFO
MaxReceiveFifoSize = 1000

########################################################
# Authentication settings
########################################################
@@ -809,6 +809,7 @@ ReConServerProcess::main (int argc, char** argv)
Data stunUsername = reConServerConfig.getConfigData("StunUsername", "", true);
Data stunPassword = reConServerConfig.getConfigData("StunPassword", "", true);
bool addViaRport = reConServerConfig.getConfigBool("AddViaRport", true);
unsigned int maxReceiveFifoSize = reConServerConfig.getConfigInt("MaxReceiveFifoSize", 1000);
unsigned short tcpPort = reConServerConfig.getConfigUnsignedShort("TCPPort", 5062);
unsigned short udpPort = reConServerConfig.getConfigUnsignedShort("UDPPort", 5062);
unsigned short tlsPort = reConServerConfig.getConfigUnsignedShort("TLSPort", 5063);
@@ -890,6 +891,7 @@ ReConServerProcess::main (int argc, char** argv)
InfoLog( << " Secure Media Mode = " << secureMediaMode);
InfoLog( << " NAT Traversal Mode = " << natTraversalMode);
InfoLog( << " NAT Server = " << natTraversalServerHostname << ":" << natTraversalServerPort);
InfoLog( << " Max RTP receive FIFO size = " << maxReceiveFifoSize);
InfoLog( << " STUN/TURN user = " << stunUsername);
InfoLog( << " STUN/TURN password = " << stunPassword);
InfoLog( << " TCP Port = " << tcpPort);
@@ -1291,6 +1293,8 @@ ReConServerProcess::main (int argc, char** argv)
conversationProfile->secureMediaRequired() = secureMediaRequired;
conversationProfile->secureMediaDefaultCryptoSuite() = ConversationProfile::SRTP_AES_CM_128_HMAC_SHA1_80;

Flow::maxReceiveFifoSize = maxReceiveFifoSize;

//////////////////////////////////////////////////////////////////////////////
// Create ConverationManager and UserAgent
//////////////////////////////////////////////////////////////////////////////

0 comments on commit 91037be

Please sign in to comment.
You can’t perform that action at this time.