diff --git a/src/preferences.cpp b/src/preferences.cpp index 86dcea4f6543083fd69ac537a802c7ec0fb2d7a9..649dd612a1d652163cb9e2c0a2c9b3e008af8cb3 100644 --- a/src/preferences.cpp +++ b/src/preferences.cpp @@ -96,8 +96,6 @@ constexpr const char* const VoipPreference::CONFIG_LABEL; static constexpr const char* PLAY_DTMF_KEY {"playDtmf"}; static constexpr const char* PLAY_TONES_KEY {"playTones"}; static constexpr const char* PULSE_LENGTH_KEY {"pulseLength"}; -static constexpr const char* SYMMETRIC_RTP_KEY {"symmetric"}; -static constexpr const char* ZID_FILE_KEY {"zidFile"}; // audio preferences constexpr const char* const AudioPreference::CONFIG_LABEL; @@ -242,7 +240,6 @@ VoipPreference::VoipPreference() : playDtmf_(true) , playTones_(true) , pulseLength_(PULSE_LENGTH_DEFAULT) - , symmetricRtp_(true) {} void @@ -252,8 +249,6 @@ VoipPreference::serialize(YAML::Emitter& out) const out << YAML::Key << PLAY_DTMF_KEY << YAML::Value << playDtmf_; out << YAML::Key << PLAY_TONES_KEY << YAML::Value << playTones_; out << YAML::Key << PULSE_LENGTH_KEY << YAML::Value << pulseLength_; - out << YAML::Key << SYMMETRIC_RTP_KEY << YAML::Value << symmetricRtp_; - out << YAML::Key << ZID_FILE_KEY << YAML::Value << zidFile_; out << YAML::EndMap; } @@ -264,8 +259,6 @@ VoipPreference::unserialize(const YAML::Node& in) parseValue(node, PLAY_DTMF_KEY, playDtmf_); parseValue(node, PLAY_TONES_KEY, playTones_); parseValue(node, PULSE_LENGTH_KEY, pulseLength_); - parseValue(node, SYMMETRIC_RTP_KEY, symmetricRtp_); - parseValue(node, ZID_FILE_KEY, zidFile_); } AudioPreference::AudioPreference() diff --git a/src/preferences.h b/src/preferences.h index 2ab1e581bc3a017a83a91389e6d89c6ab2811796..452f4d50664ada5a475bf3561a6bc73c5a52a352 100644 --- a/src/preferences.h +++ b/src/preferences.h @@ -123,18 +123,10 @@ public: void setPulseLength(int length) { pulseLength_ = length; } - bool getSymmetricRtp() const { return symmetricRtp_; } - void setSymmetricRtp(bool sym) { symmetricRtp_ = sym; } - - std::string getZidFile() const { return zidFile_; } - void setZidFile(const std::string& file) { zidFile_ = file; } - private: bool playDtmf_; bool playTones_; int pulseLength_; - bool symmetricRtp_; - std::string zidFile_; constexpr static const char* const CONFIG_LABEL = "voipPreferences"; };