Browse Source

Use discard port 9 instead of 0 in description media entries

Paul-Louis Ageneau 4 years ago
parent
commit
b608a192c0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/description.cpp

+ 2 - 1
src/description.cpp

@@ -376,7 +376,8 @@ Description::Entry::Entry(string mline, string mid, Direction dir)
 
 string Description::Entry::generateSdp(string_view eol) const {
 	std::ostringstream sdp;
-	sdp << "m=" << type() << ' ' << 0 << ' ' << description() << eol;
+	// Port 9 is the discard protocol
+	sdp << "m=" << type() << ' ' << 9 << ' ' << description() << eol;
 	sdp << "c=IN IP4 0.0.0.0" << eol;
 	sdp << "a=bundle-only" << eol;
 	sdp << "a=mid:" << mMid << eol;