Changeset 5217 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
- Timestamp:
- Dec 24, 2015 12:25:58 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r5205 r5217 254 254 255 255 /* Make sure STUN server resolution has completed */ 256 if (!use_ipv6 && pjsua_ sip_acc_is_using_stun(call_med->call->acc_id)) {256 if (!use_ipv6 && pjsua_media_acc_is_using_stun(call_med->call->acc_id)) { 257 257 status = resolve_stun_server(PJ_TRUE); 258 258 if (status != PJ_SUCCESS) { … … 351 351 * and make sure that the mapped RTCP port is adjacent with the RTP. 352 352 */ 353 if (!use_ipv6 && pjsua_sip_acc_is_using_stun(call_med->call->acc_id) && 353 if (!use_ipv6 && 354 pjsua_media_acc_is_using_stun(call_med->call->acc_id) && 354 355 pjsua_var.stun_srv.addr.sa_family != 0) 355 356 { … … 748 749 749 750 /* Make sure STUN server resolution has completed */ 750 status = resolve_stun_server(PJ_TRUE); 751 if (status != PJ_SUCCESS) { 752 pjsua_perror(THIS_FILE, "Error resolving STUN server", status); 753 return status; 751 if (pjsua_media_acc_is_using_stun(call_med->call->acc_id)) { 752 status = resolve_stun_server(PJ_TRUE); 753 if (status != PJ_SUCCESS) { 754 pjsua_perror(THIS_FILE, "Error resolving STUN server", status); 755 return status; 756 } 754 757 } 755 758 … … 766 769 767 770 /* Configure STUN settings */ 768 if (pj_sockaddr_has_addr(&pjsua_var.stun_srv)) { 771 if (pj_sockaddr_has_addr(&pjsua_var.stun_srv) && 772 pjsua_media_acc_is_using_stun(call_med->call->acc_id)) 773 { 769 774 pj_sockaddr_print(&pjsua_var.stun_srv, stunip, sizeof(stunip), 0); 770 775 ice_cfg.stun.server = pj_str(stunip);
Note: See TracChangeset
for help on using the changeset viewer.