On Fri, May 15, 2009 at 6:06 PM, Ponik Supapupa <spunyk at gmail.com> wrote: > Hi all. > I wrote aboute this issue some time ago, but as i see in 1.2 version it is > the same. > Sorry we missed that! > So, problem is: when i want to create a SDP for the SRTP session i call > transport_encode_sdp() method of the SRTP transport (transport_srtp.c), this > method at the end returns a result of the transport_encode_sdp() of the UDP > transport (transport_udp.c), but there we see next: > [i] > if (pj_stricmp(&m_loc->desc.transport, &ID_RTP_AVP) || > (m_rem && pj_stricmp(&m_rem->desc.transport, &ID_RTP_AVP))) > { > pjmedia_sdp_media_deactivate(pool, m_loc); > return PJMEDIA_SDP_EINPROTO; > } > [/i] > Media with RTP/AVP can't talk to RTP/SAVP (and vice versa), hence the above code. > In this moment we RTP/SAVP transport, not RTP/AVP and, of course, we'll got > a wrong deactivated SDP. > I resolve it for me by adding check also for the RTP/SAVP - but may be i'm > wrong? > The SRTP transport supports both RTP/AVP and RTP/SAVP, via the pjmedia_srtp_use flag. If you set it to PJMEDIA_SRTP_MANDATORY, RTP/SAVP will be used instead. > Best regards and thanks for the great library:) > Thanks! cheers Benny -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090519/dc99bf68/attachment.html>