enable TURN and ICE

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

 



Hasan,

STUN socket transport is framework that provides send and receive 
interface for UDP packets.

TURN is client transport that provides relaying data via TURN server, 
you make a direct communicaction with "relayed-transport-address".

ICE works together with some protocols, like STUN and TURN, ICE can 
offering several candidate paths for the communication.

Your code is correctly, you just need to check the servers.

-Thiago Rondon

Hasan H escreveu:
> Hi,
>
> I want to do p2p audio. To do that i think i need to enable TURN and 
> ICE. But i am confused about STUN. Do i need STUN too?
>
> To enable STUN i used
>
> cfg.stun_host = pj_str("stun.pjsip.org <http://stun.pjsip.org>");
>
> To enable ICE  i used
>
> med_cfg.enable_ice = 1;
>
> To enable TURN i used
>
>     med_cfg.enable_turn = 1;
> //    med_cfg.turn_conn_type == PJ_TURN_TP_UDP;
>     med_cfg.turn_server = pj_str("ip:port");
>     med_cfg.turn_auth_cred.data.static_cred.username = pj_str("uname");
>     med_cfg.turn_auth_cred.data.static_cred.data = pj_str("password");
>
> please correct me if i am wrong with those configuration..
>
> Thanks
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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
>   




[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