Merge pull request #100 from bondagit/issue-94

Fixed SDP related RFCs compliance issues. See #94
This commit is contained in:
Andrea Bondavalli 2022-11-18 09:26:25 +01:00 committed by GitHub
commit 51e2dea807
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -620,6 +620,9 @@ std::string SessionManager::get_source_sdp_(uint32_t id,
if (IN_MULTICAST(info.stream.m_ui32DestIP)) {
ss << "/" << static_cast<unsigned>(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<unsigned>(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<unsigned>(ptp_config_.domain) << "\n";
}
ss << "a=recvonly\n";