Changeset 5283 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
- Timestamp:
- May 9, 2016 6:58:29 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r5282 r5283 391 391 #endif 392 392 if (status != PJ_SUCCESS) { 393 pjsua_perror(THIS_FILE, "STUN resolve error", status); 394 goto on_error; 393 if (!pjsua_var.ua_cfg.stun_ignore_failure) { 394 pjsua_perror(THIS_FILE, "STUN resolve error", status); 395 goto on_error; 396 } 397 398 PJ_LOG(4,(THIS_FILE, "Ignoring STUN resolve error %d", 399 status)); 400 401 if (!pj_sockaddr_has_addr(&bound_addr)) { 402 pj_sockaddr addr; 403 404 /* Get local IP address. */ 405 status = pj_gethostip(af, &addr); 406 if (status != PJ_SUCCESS) 407 goto on_error; 408 409 pj_sockaddr_copy_addr(&bound_addr, &addr); 410 } 411 412 for (i=0; i<2; ++i) { 413 pj_sockaddr_init(af, &mapped_addr[i], NULL, 0); 414 pj_sockaddr_copy_addr(&mapped_addr[i], &bound_addr); 415 pj_sockaddr_set_port(&mapped_addr[i], 416 (pj_uint16_t)(acc->next_rtp_port+i)); 417 } 418 break; 395 419 } 396 420
Note: See TracChangeset
for help on using the changeset viewer.