提交 bc24e0f2 authored 作者: Anthony Minessale's avatar Anthony Minessale 提交者: Michael Jerris

support AVPF too

上级 6ba2205c
...@@ -1401,6 +1401,10 @@ void sdp_media_transport(sdp_media_t *m, char const *s) ...@@ -1401,6 +1401,10 @@ void sdp_media_transport(sdp_media_t *m, char const *s)
m->m_proto = sdp_proto_extended_srtp, m->m_proto_name = "RTP/SAVPF"; m->m_proto = sdp_proto_extended_srtp, m->m_proto_name = "RTP/SAVPF";
else if (su_casematch(s, "UDP/TLS/RTP/SAVPF")) else if (su_casematch(s, "UDP/TLS/RTP/SAVPF"))
m->m_proto = sdp_proto_extended_srtp, m->m_proto_name = "UDP/TLS/RTP/SAVPF"; m->m_proto = sdp_proto_extended_srtp, m->m_proto_name = "UDP/TLS/RTP/SAVPF";
else if (su_casematch(s, "RTP/AVPF"))
m->m_proto = sdp_proto_extended_rtp, m->m_proto_name = "RTP/AVPF";
else if (su_casematch(s, "UDP/RTP/AVPF"))
m->m_proto = sdp_proto_extended_rtp, m->m_proto_name = "UDP/RTP/AVPF";
else if (su_casematch(s, "udptl")) else if (su_casematch(s, "udptl"))
/* Lower case - be compatible with people living by T.38 examples */ /* Lower case - be compatible with people living by T.38 examples */
m->m_proto = sdp_proto_udptl, m->m_proto_name = "udptl"; m->m_proto = sdp_proto_udptl, m->m_proto_name = "udptl";
...@@ -1421,7 +1425,7 @@ void sdp_media_transport(sdp_media_t *m, char const *s) ...@@ -1421,7 +1425,7 @@ void sdp_media_transport(sdp_media_t *m, char const *s)
/** Check if media uses RTP as its transport protocol. */ /** Check if media uses RTP as its transport protocol. */
int sdp_media_has_rtp(sdp_media_t const *m) int sdp_media_has_rtp(sdp_media_t const *m)
{ {
return m && (m->m_proto == sdp_proto_rtp || m->m_proto == sdp_proto_srtp || m->m_proto == sdp_proto_extended_srtp); return m && (m->m_proto == sdp_proto_rtp || m->m_proto == sdp_proto_srtp || m->m_proto == sdp_proto_extended_srtp || m->m_proto == sdp_proto_extended_rtp);
} }
#define RTPMAP(pt, encoding, rate, params) \ #define RTPMAP(pt, encoding, rate, params) \
......
...@@ -246,7 +246,8 @@ typedef enum ...@@ -246,7 +246,8 @@ typedef enum
sdp_proto_udptl = 258, /**< UDPTL. @NEW_1_12_4. */ sdp_proto_udptl = 258, /**< UDPTL. @NEW_1_12_4. */
sdp_proto_msrp = 259, /**< TCP/MSRP @NEW_MSRP*/ sdp_proto_msrp = 259, /**< TCP/MSRP @NEW_MSRP*/
sdp_proto_msrps = 260, /**< TCP/TLS/MSRP @NEW_MSRP*/ sdp_proto_msrps = 260, /**< TCP/TLS/MSRP @NEW_MSRP*/
sdp_proto_extended_srtp = 261, /** WEBRTC */ sdp_proto_extended_srtp = 261, /** WEBRTC SAVPF */
sdp_proto_extended_rtp = 262, /** WEBRTC AVPF */
sdp_proto_tls = 511, /**< TLS over TCP */ sdp_proto_tls = 511, /**< TLS over TCP */
sdp_proto_any = 512 /**< * wildcard */ sdp_proto_any = 512 /**< * wildcard */
} sdp_proto_e; } sdp_proto_e;
......
...@@ -1443,8 +1443,8 @@ typedef enum { ...@@ -1443,8 +1443,8 @@ typedef enum {
CF_REINVITE, CF_REINVITE,
CF_AUTOFLUSH_DURING_BRIDGE, CF_AUTOFLUSH_DURING_BRIDGE,
CF_RTP_NOTIMER_DURING_BRIDGE, CF_RTP_NOTIMER_DURING_BRIDGE,
CF_WEBRTC, CF_AVPF,
CF_WEBRTC_MOZ, CF_AVPF_MOZ,
CF_ICE, CF_ICE,
CF_DTLS, CF_DTLS,
CF_VERBOSE_SDP, CF_VERBOSE_SDP,
......
差异被折叠。
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论