SDP encoding issue with SRTP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Benny, thanks for reply.
Yo wrote:

>
> 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.
>
But i already use this flag. Look:
* pjmedia_srtp_setting_default(&srtp_settings);
 srtp_settings.use = PJMEDIA_SRTP_MANDATORY;
 status = pjmedia_transport_srtp_create(med_endpt, udp_transport,
&srtp_settings, &srtp_transport);*
then we i call
 *status = pjmedia_transport_encode_sdp(tp, dialog->pool, sdp, NULL,
Calls[newId]->media[0].media_index);*
i have that issue i wrote.
Problem is as i think in ln 1331 in transport_srtp.c:
* return pjmedia_transport_encode_sdp(srtp->member_tp, sdp_pool,
   sdp_local, sdp_remote, media_index);*
Because it call encode_sdp from the transport_udp.c. In this file we have
definition in ln 40:
 *static const pj_str_t ID_RTP_AVP = { "RTP/AVP", 7 };*
So when the compiler do the check of the transport it use this definition,
not one from the transport_srtp.c . I use MSVC compiler, may be it is a
problem in compiler :) And also may be we don't need to cal an encode_sdp
method from the transport member of the srtp transport?
Regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090519/fff42eb5/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux