From 1a4f5ac6c1ba0b57efb2471e3728e9f2db0a803e Mon Sep 17 00:00:00 2001 From: Andrea Bondavalli Date: Thu, 29 Sep 2022 17:07:28 +0200 Subject: [PATCH] Fixed SDP related RFCs compliance issues. See #94 --- daemon/session_manager.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/daemon/session_manager.cpp b/daemon/session_manager.cpp index ffa5dbc..6d44cb7 100644 --- a/daemon/session_manager.cpp +++ b/daemon/session_manager.cpp @@ -620,6 +620,9 @@ std::string SessionManager::get_source_sdp_(uint32_t id, if (IN_MULTICAST(info.stream.m_ui32DestIP)) { ss << "/" << static_cast(info.stream.m_byTTL); } + /*ss << "\na=source-filter: incl IN IP4 " + << ip::address_v4(info.stream.m_ui32DestIP).to_string() << " " + << config_->get_ip_addr_str();*/ ss << "\nt=0 0\n" << "a=clock-domain:PTPv2 " << static_cast(ptp_config_.domain) << "\n" @@ -636,10 +639,11 @@ std::string SessionManager::get_source_sdp_(uint32_t id, << "a=framecount:" << info.stream.m_ui32MaxSamplesPerPacket << "\n" << "a=ptime:" << ptime << "\n" << "a=mediaclk:direct=0\n"; + ss << "a=ts-refclk:ptp=IEEE1588-2008:"; if (info.refclk_ptp_traceable) { - ss << "a=ts-refclk:ptp=traceable\n"; + ss << "traceable\n"; } else { - ss << "a=ts-refclk:ptp=IEEE1588-2008:" << ptp_status_.gmid << ":" + ss << ptp_status_.gmid << ":" << static_cast(ptp_config_.domain) << "\n"; } ss << "a=recvonly\n";