STUN issue

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

 



Ok, I can see now that STUN doesn't work with TCP socket

2010/6/25 Attila Nyers <atixlevlist at gmail.com>

> Hi!
>
> I want to send my TCP socket's public IP & port in SDP (on Windows Mobile).
> In order to get my public address I use:
>
> status = pjstun_get_mapped_addr(&pjsua_var.cp.factory, 1, sockets,
> &stun_srv, pj_ntohs(pjsua_var.stun_srv.ipv4.sin_port), &stun_srv,
> pj_ntohs(pjsua_var.stun_srv.ipv4.sin_port), &publicAddr);
>
> If I use UDP socket, it works flawlessly,
> If I use TCP socket, it fails:
>
> STUN resolve error: Socket is not connected (WSAENOTCONN) [status=130057]
>
> Why should I connect?
> I cannot connect to the other side before I don't get the answer SDP for
> the offer which contains the target IP & port, so what should I do?
>
> sry for my English
>
> bye,
> Attila
>



-- 
?dv,
Attila
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20100625/78c31981/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