Dne 3.9.2015 v 13:27 Marek ?ervenka napsal(a): > hello, > > is m=audio UDP/TLS/RTP/SAVPF compatible with m=audio RTP/SAVPF ? > > In function pjmedia_sdp_transport_cmp (called process_m_answer) are > these transports supposed as incompatible > can you include this patch? --- pjmedia/src/pjmedia/sdp.c 2015-06-12 05:03:48.000000000 +0200 +++ pjmedia/src/pjmedia/sdp.c.new 2015-09-08 12:24:26.379218144 +0200 @@ -1522,16 +1522,14 @@ PJ_DEF(pj_status_t) pjmedia_sdp_transport_cmp( const pj_str_t *t1, const pj_str_t *t2) { - static const pj_str_t ID_RTP_AVP = { "RTP/AVP", 7 }; - static const pj_str_t ID_RTP_SAVP = { "RTP/SAVP", 8 }; - + static const pj_str_t ID_RTP = { "RTP/", 4 }; /* Exactly equal? */ if (pj_stricmp(t1, t2) == 0) return PJ_SUCCESS; - /* Compatible? */ - if ((!pj_stricmp(t1, &ID_RTP_AVP) || !pj_stricmp(t1, &ID_RTP_SAVP)) && - (!pj_stricmp(t2, &ID_RTP_AVP) || !pj_stricmp(t2, &ID_RTP_SAVP))) + /* Compatible? As in https://github.com/rtcweb-wg/jsep/issues/70 + * assume everything with *RTP* as compatible */ + if ((pj_strstr(t1, &ID_RTP) != NULL) && (pj_strstr(t2, &ID_RTP) != NULL)) return PJ_SUCCESS; return PJMEDIA_SDP_ETPORTNOTEQUAL; -- --------------------------------------- Marek Cervenka =======================================