Changeset 4280 for pjproject/trunk
- Timestamp:
- Oct 8, 2012 5:23:34 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
r4273 r4280 1509 1509 pj_status_t status = PJ_SUCCESS; 1510 1510 pj_time_val time_start, timeout; 1511 pjsip_dialog *dlg = NULL; 1511 1512 1512 1513 pj_gettimeofday(&time_start); … … 1536 1537 has_pjsua_lock = PJ_TRUE; 1537 1538 call = &pjsua_var.calls[call_id]; 1538 1539 if (call->inv == NULL) { 1539 if (call->inv) 1540 dlg = call->inv->dlg; 1541 else 1542 dlg = call->async_call.dlg; 1543 1544 if (dlg == NULL) { 1540 1545 PJSUA_UNLOCK(); 1541 1546 PJ_LOG(3,(THIS_FILE, "Invalid call_id %d in %s", call_id, title)); … … 1543 1548 } 1544 1549 1545 status = pjsip_dlg_try_inc_lock( call->inv->dlg);1550 status = pjsip_dlg_try_inc_lock(dlg); 1546 1551 if (status != PJ_SUCCESS) { 1547 1552 PJSUA_UNLOCK(); … … 1568 1573 1569 1574 *p_call = call; 1570 *p_dlg = call->inv->dlg;1575 *p_dlg = dlg; 1571 1576 1572 1577 return PJ_SUCCESS;
Note: See TracChangeset
for help on using the changeset viewer.