Thanks for you reply, finally , my test were successed , when i opend the configure "med_cfg.enable_ice = PJ_TRUE ; " and close stun configure , and the last step is startup my turn-server with paramters "no-stun" , then the two endpoint were success transfer the media by my turn-server. thanks a lot. Best regards. From: Bill Gardner Date: 2015-09-14 22:36 To: pjsip Subject: Re: pjsip close NAT transport just use turn-server 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 Date: 2015-09-11 21:51 To: pjsip Subject: Re: 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/20150915/624ff5f6/attachment.html>