Browse code

core: made RTP/SAVPF profile known to sems

Juha Heinanen authored on 07/05/2014 12:49:32
Showing 2 changed files
... ...
@@ -97,6 +97,7 @@ inline string transport_p_2_str(int tp)
97 97
   case TP_RTPAVP: return "RTP/AVP";
98 98
   case TP_UDP: return "udp";
99 99
   case TP_RTPSAVP: return "RTP/SAVP";
100
+  case TP_RTPSAVPF: return "RTP/SAVPF";
100 101
   case TP_UDPTL: return "udptl";
101 102
   default: return "<unknown media type>";
102 103
   }
... ...
@@ -352,7 +353,7 @@ void AmSdp::print(string& body) const
352 353
 
353 354
       string options;
354 355
 
355
-      if (media_it->transport == TP_RTPAVP || media_it->transport == TP_RTPSAVP) {
356
+      if (media_it->transport == TP_RTPAVP || media_it->transport == TP_RTPSAVP || media_it->transport == TP_RTPSAVPF) {
356 357
 	for(std::vector<SdpPayload>::const_iterator pl_it = media_it->payloads.begin();
357 358
 	    pl_it != media_it->payloads.end(); pl_it++) {
358 359
 
... ...
@@ -875,7 +876,7 @@ static void parse_sdp_media(AmSdp* sdp_msg, char* s)
875 876
       }
876 877
     case FMT:
877 878
       {
878
-	if (m.transport == TP_RTPAVP || m.transport == TP_RTPSAVP) {
879
+	if (m.transport == TP_RTPAVP || m.transport == TP_RTPSAVP || m.transport == TP_RTPSAVPF) {
879 880
 	  if (contains(media_line, line_end, ' ')) {
880 881
 	    next = parse_until(media_line, ' ');
881 882
 	    string value;
... ...
@@ -1389,6 +1390,8 @@ static TransProt transport_type(string transport)
1389 1390
     return TP_UDP;
1390 1391
   else if(transport_uc == "RTP/SAVP")
1391 1392
     return TP_RTPSAVP;
1393
+  else if(transport_uc == "RTP/SAVPF")
1394
+    return TP_RTPSAVPF;
1392 1395
   else if(transport_uc == "UDPTL")
1393 1396
     return TP_UDPTL;
1394 1397
   else 
... ...
@@ -55,7 +55,7 @@ enum AddressType { AT_NONE=0, AT_V4, AT_V6 };
55 55
 /** media type */
56 56
 enum MediaType { MT_NONE=0, MT_AUDIO, MT_VIDEO, MT_APPLICATION, MT_TEXT, MT_MESSAGE, MT_IMAGE };
57 57
 /** transport protocol */
58
-enum TransProt { TP_NONE=0, TP_RTPAVP, TP_UDP, TP_RTPSAVP, TP_UDPTL };
58
+enum TransProt { TP_NONE=0, TP_RTPAVP, TP_UDP, TP_RTPSAVP, TP_UDPTL, TP_RTPSAVPF };
59 59
 
60 60
 /** \brief c=... line in SDP*/
61 61
 struct SdpConnection