diff --git a/daemon/src/sip/sipaccountbase.cpp b/daemon/src/sip/sipaccountbase.cpp index 84608c36c13dbe6951a7e05e54c8c4ac52119faa..3314c41fa4f93ac1308e880c095df86246a41999 100644 --- a/daemon/src/sip/sipaccountbase.cpp +++ b/daemon/src/sip/sipaccountbase.cpp @@ -161,9 +161,7 @@ void SIPAccountBase::unserialize(const YAML::Node &node) parseValue(srtpMap, RTP_FALLBACK_KEY, srtpFallback_); 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_); -#endif } diff --git a/daemon/src/sip/sipaccountbase.h b/daemon/src/sip/sipaccountbase.h index 0cdf549b3fff51a020ad6e3083f2b7f4c7497fda..5cf84981027cb5d9e04290dfa8804c4aaebcfaa0 100644 --- a/daemon/src/sip/sipaccountbase.h +++ b/daemon/src/sip/sipaccountbase.h @@ -101,10 +101,8 @@ namespace Conf { const char *const CRED_KEY = "credential"; const char *const AUDIO_PORT_MIN_KEY = "audioPortMin"; const char *const AUDIO_PORT_MAX_KEY = "audioPortMax"; -#ifdef SFL_VIDEO const char *const VIDEO_PORT_MIN_KEY = "videoPortMin"; const char *const VIDEO_PORT_MAX_KEY = "videoPortMax"; -#endif } class SIPVoIPLink; @@ -385,12 +383,10 @@ protected: */ std::pair<uint16_t, uint16_t> audioPortRange_ {16384, 32766}; -#ifdef SFL_VIDEO /** * Port range for video RTP ports */ std::pair<uint16_t, uint16_t> videoPortRange_ {49152, (MAX_PORT) - 2}; -#endif static bool portsInUse_[HALF_MAX_PORT]; static uint16_t getRandomEvenNumber(const std::pair<uint16_t, uint16_t> &range);