sdp: added RED media and UDPTL transport

darcs-hash:20061128163018-ba0b0-0860e5bc2f249a3fe6f42348da371439f360c568.gz
parent 01e5bfc9
......@@ -1359,6 +1359,8 @@ void sdp_media_type(sdp_media_t *m, char const *s)
m->m_type = sdp_media_message, m->m_type_name = "message";
else if (strcasecmp(s, "image") == 0)
m->m_type = sdp_media_image, m->m_type_name = "image";
else if (strcasecmp(s, "red") == 0)
m->m_type = sdp_media_red, m->m_type_name = "red";
else
m->m_type = sdp_media_x, m->m_type_name = s;
}
......@@ -1371,6 +1373,8 @@ void sdp_media_transport(sdp_media_t *m, char const *s)
m->m_proto = sdp_proto_rtp, m->m_proto_name = "RTP/AVP";
else if (strcasecmp(s, "RTP/SAVP") == 0)
m->m_proto = sdp_proto_srtp, m->m_proto_name = "RTP/SAVP";
else if (strcasecmp(s, "UDPTL") == 0)
m->m_proto = sdp_proto_udptl, m->m_proto_name = "UDPTL";
else if (strcasecmp(s, "UDP") == 0)
m->m_proto = sdp_proto_udp, m->m_proto_name = "UDP";
else if (strcasecmp(s, "TCP") == 0)
......
......@@ -578,9 +578,11 @@ static void print_media(sdp_printer_t *p,
}
switch (m->m_proto) {
case sdp_proto_rtp: proto = "RTP/AVP"; break;
case sdp_proto_udp: proto = "udp"; break;
case sdp_proto_tcp: proto = "tcp"; break;
case sdp_proto_udp: proto = "udp"; break;
case sdp_proto_rtp: proto = "RTP/AVP"; break;
case sdp_proto_srtp: proto = "RTP/SAVP"; break;
case sdp_proto_udptl: proto = "UDPTL"; break;
case sdp_proto_tls: proto = "tls"; break;
default: proto = m->m_proto_name; break;
}
......
......@@ -229,7 +229,8 @@ typedef enum
sdp_media_data, /**< Bulk data transfer */
sdp_media_control, /**< Additional conference control */
sdp_media_message, /**< Messaging sessions*/
sdp_media_image /**< Image browsing sessions for JPIP */
sdp_media_image, /**< Image browsing sessions for JPIP, and T.38 */
sdp_media_red /**< Redundancy */
} sdp_media_e;
/** Media transport protocol. */
......@@ -240,6 +241,7 @@ typedef enum
sdp_proto_udp = 17, /**< Plain UDP */
sdp_proto_rtp = 256, /**< RTP/AVP */
sdp_proto_srtp = 257, /**< RTP/SAVP */
sdp_proto_udptl = 258, /**< UDPTL */
sdp_proto_tls = 511, /**< TLS over TCP */
sdp_proto_any = 512 /**< * wildcard */
} sdp_proto_e;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment