pjsip close NAT transport just use turn-server

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

 



Is pjsua successfully connecting with TURN relay? Please send a log 
file. - Bill

On 9/13/2015 10:23 PM, zhuyongwen at made-in-china.com wrote:
>  hi Bill Gardner ,
>     My endpoint were all coded  in pjsip-pjsua ,  so the does'nt need 
> to condisider one endpoint doesn't support turn .
>
>
> my media configure are like below:
> "
> pjsua_media_config med_cfg;
> pjsua_media_config_default(&med_cfg);
>
>
> //med_cfg.enable_ice  = PJ_TRUE ;
> med_cfg.enable_turn = PJ_TRUE ;
> med_cfg.turn_conn_type = PJ_TURN_TP_TCP ;
> med_cfg.turn_server=pj_str("192.168.17.153:3478");
>
> med_cfg.turn_auth_cred.type = PJ_STUN_AUTH_CRED_STATIC ;
> med_cfg.turn_auth_cred.data.static_cred.realm=pj_str("www.vemic.com");
> med_cfg.turn_auth_cred.data.static_cred.data_type = PJ_STUN_PASSWD_HASHED;//PJ_STUN_PASSWD_PLAIN;//PJ_STUN_PASSWD_HASHED ;
> med_cfg.turn_auth_cred.data.static_cred.username=pj_str("test");
> med_cfg.turn_auth_cred.data.static_cred.data=pj_str("test");
> //med_cfg.ice_max_host_cands=0;
> med_cfg.ice_opt.aggressive = PJ_TRUE ;
>
> "
> bu pjsua still use NAT as media transport,  still not use turn relay 
>  as  call media transport.
>
> is there s'th i missed  in my configure ? and idea please give  me 
> some hits !  thanks a lot
>
>
>
>
> ------------------------------------------------------------------------
> Best regards.
>
>     *From:* Bill Gardner <mailto:billg at wavearts.com>
>     *Date:* 2015-09-11 21:51
>     *To:* pjsip <mailto:pjsip at lists.pjsip.org>
>     *Subject:* Re: [pjsip] pjsip close NAT transport just use turn-server
>     I think if you set up pjsua to use a turn relay but don't enable
>     ICE, pjsua will publish the turn relay in the SDP and the other
>     endpoint will connect to it. The same thing happens if ICE is
>     enabled but the other endpoint doesn't support it, the turn relay
>     is used by default. - Bill
>
>     On 9/11/2015 3:18 AM, zhuyongwen at made-in-china.com wrote:
>>     Hi  all ,
>>         in pjsua is there any way to close thd NAT transport and host
>>     candidate ? i just want to test how to use turn-server for media
>>     transport!!
>>
>>
>>     anyone know how can i do this test  ?   thanks a lot!
>>
>>     ------------------------------------------------------------------------
>>     Best regards.
>>
>>
>>     _______________________________________________
>>     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
>
>
>
> _______________________________________________
> 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/20150914/b0af0022/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