- Timestamp:
- Oct 4, 2016 9:10:11 AM (8 years ago)
- Location:
- pjproject/trunk/pjsip
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsua-lib/pjsua_internal.h
r5337 r5442 375 375 pj_sockaddr addr; /**< Result */ 376 376 pj_stun_sock *stun_sock; /**< Testing STUN sock */ 377 pj_bool_t async_wait;/**< Async resolution 378 of STUN entry */ 377 379 } pjsua_stun_resolve; 378 380 -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
r5423 r5442 1285 1285 sess->srv[sess->idx].ptr, errmsg)); 1286 1286 1287 if (op == PJ_STUN_SOCK_BINDING_OP && !sess->async_wait) { 1288 /* Just return here, we will destroy the STUN socket and 1289 * continue the STUN resolution later in resolve_stun_entry(). 1290 * For more details, please refer to ticket #19xx. 1291 */ 1292 return PJ_FALSE; 1293 } 1294 1287 1295 pj_stun_sock_destroy(stun_sock); 1288 1296 sess->stun_sock = NULL; … … 1373 1381 pj_bzero(&stun_sock_cb, sizeof(stun_sock_cb)); 1374 1382 stun_sock_cb.on_status = &test_stun_on_status; 1383 sess->async_wait = PJ_FALSE; 1375 1384 status = pj_stun_sock_create(&pjsua_var.stun_cfg, "stunresolve", 1376 1385 pj_AF_INET(), &stun_sock_cb, … … 1405 1414 * stun_sock_cb() 1406 1415 */ 1416 sess->async_wait = PJ_TRUE; 1407 1417 return; 1408 1418 }
Note: See TracChangeset
for help on using the changeset viewer.