Skip to content
Snippets Groups Projects
Commit c6c0018a authored by Tristan Matthews's avatar Tristan Matthews
Browse files

sipaccountbase: fix build for --disable-video

Refs #53127

Change-Id: Id30c350618d7658f04014d255af92a580b85fd5c
parent e5e031ca
Branches
Tags
No related merge requests found
...@@ -161,9 +161,7 @@ void SIPAccountBase::unserialize(const YAML::Node &node) ...@@ -161,9 +161,7 @@ void SIPAccountBase::unserialize(const YAML::Node &node)
parseValue(srtpMap, RTP_FALLBACK_KEY, srtpFallback_); parseValue(srtpMap, RTP_FALLBACK_KEY, srtpFallback_);
unserializeRange(node, AUDIO_PORT_MIN_KEY, AUDIO_PORT_MAX_KEY, audioPortRange_); unserializeRange(node, AUDIO_PORT_MIN_KEY, AUDIO_PORT_MAX_KEY, audioPortRange_);
#ifdef SFL_VIDEO
unserializeRange(node, VIDEO_PORT_MIN_KEY, VIDEO_PORT_MAX_KEY, videoPortRange_); unserializeRange(node, VIDEO_PORT_MIN_KEY, VIDEO_PORT_MAX_KEY, videoPortRange_);
#endif
} }
......
...@@ -101,10 +101,8 @@ namespace Conf { ...@@ -101,10 +101,8 @@ namespace Conf {
const char *const CRED_KEY = "credential"; const char *const CRED_KEY = "credential";
const char *const AUDIO_PORT_MIN_KEY = "audioPortMin"; const char *const AUDIO_PORT_MIN_KEY = "audioPortMin";
const char *const AUDIO_PORT_MAX_KEY = "audioPortMax"; const char *const AUDIO_PORT_MAX_KEY = "audioPortMax";
#ifdef SFL_VIDEO
const char *const VIDEO_PORT_MIN_KEY = "videoPortMin"; const char *const VIDEO_PORT_MIN_KEY = "videoPortMin";
const char *const VIDEO_PORT_MAX_KEY = "videoPortMax"; const char *const VIDEO_PORT_MAX_KEY = "videoPortMax";
#endif
} }
class SIPVoIPLink; class SIPVoIPLink;
...@@ -385,12 +383,10 @@ protected: ...@@ -385,12 +383,10 @@ protected:
*/ */
std::pair<uint16_t, uint16_t> audioPortRange_ {16384, 32766}; std::pair<uint16_t, uint16_t> audioPortRange_ {16384, 32766};
#ifdef SFL_VIDEO
/** /**
* Port range for video RTP ports * Port range for video RTP ports
*/ */
std::pair<uint16_t, uint16_t> videoPortRange_ {49152, (MAX_PORT) - 2}; std::pair<uint16_t, uint16_t> videoPortRange_ {49152, (MAX_PORT) - 2};
#endif
static bool portsInUse_[HALF_MAX_PORT]; static bool portsInUse_[HALF_MAX_PORT];
static uint16_t getRandomEvenNumber(const std::pair<uint16_t, uint16_t> &range); static uint16_t getRandomEvenNumber(const std::pair<uint16_t, uint16_t> &range);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment