On Wed, Sep 10, 2008 at 11:02 AM, Pedro Gon?alves <pedro.pandre at gmail.com>wrote: > Hi! > > With PJSUA such problem does not occour, which leads me to conclude that it > must be some problem in my application, somewhere around the area where the > INVITE is built / sent. > Yeah that's what I thought. > With your experience, do you have any idea why in this case the candidates > in use are not some of the candidates included in SDP and why they are > always 4000 (RTP) and 4001(RTCP)? > The default candidates (the c= and a=rtcp lines) are written to SDP by pjmedia_endpt_create_sdp(), using the information from the sock_info parameter. The sock_info normally comes from pjmedia_transport_get_info(). Looking at your log, I remember that I saw you call pjmedia_endpt_create_sdp() in the beginning of the call, before the ICE transport initialization completes. Or perhaps even before the ICE transport is created at all! I suspect it's the later case, and in this case, you need to check where do you get the sock_info from. It could be that you put some hardcoded values there. The correct steps should be like this: - create the ICE media transport - wait until initialization completes (STUN resolution and TURN allocation completes) - call pjmedia_transport_get_info() to get the sock_info (the default address) - call pjmedia_endpt_create_sdp() - then proceed with the rest as usual (pjmedia_transport_media_create(), pjmedia_transport_encode_sdp(), send the INVITE, etc.) Cheers Benny > Where in PJSIP are the candidates in use selected? > > Best Regards and many thanks for your help > Pedro Gon?alves > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080910/eb306923/attachment.html