Commit 0893b4fa authored by Pekka Pessi's avatar Pekka Pessi

sdp_parse.c: use lower-case udptl

According to T.38 V3.4 some implementations are case-sensitive when checking
transport protocol name. Thanks to Timo Bruhn for the hint.

darcs-hash:20081112180029-db55f-35e4a7b1a776fd1a5867d734d79c726d85daf723.gz
parent 1ee686fe
......@@ -1374,8 +1374,9 @@ 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, "udptl") == 0)
/* Lower case - be compatible with people living by T.38 examples */
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)
......
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