Is it possible to get pjmedia_sdp_session from pjsip_tx_data?

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

 



On Tue, Jun 17, 2008 at 6:12 PM, Pedro Gon?alves <pedro.pandre at gmail.com> wrote:
> Hi again!
>
> I updated to the latest version of PJSIP and I am using
> pjmedia_ice_create(), pjmedia_transport_media_create() successfully.
> I can see the offer in the SDP, going from the caller to the callee.
> The callee receives that offer, uses pjmedia_ice_create() and
> pjmedia_transport_media_create() successfully.
> However, I've been unable to make the callee use
> pjmedia_transport_media_start perfectly, because "local reported
> ice-mismatch".
> Why? What do I have to do to prevent this from happening?
>

I'm not sure why and probably I'm not too interested in finding that
out right now, since the transport interface is being changed yet
again. :)

Here's what we're doing now:
http://trac.pjsip.org/repos/wiki/0.9/Media_Interface_Change

> Another question: I've been trying to understand the addresses used in
> transport_ice.c transport_media_start(...), like
> *conn_addr* and *cand[cand_cnt].addr*:
> how can I get a string representation like x.x.x.x?
> I tried to use pj_inet_ntoa(conn_addr.ipv4.sin_addr), but the result doesn't
> seem OK (some strange characters appear as the IP address).
>

You can use pj_sockaddr_print() which will work for IPv6 as well.

Cheers
 Benny



[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