Changeset 3751 for pjproject/branches/1.x/pjsip/src/pjsua-lib/pjsua_call.c
- Timestamp:
- Sep 16, 2011 3:12:27 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.x/pjsip/src/pjsua-lib/pjsua_call.c
r3749 r3751 1243 1243 pjsua_call *call; 1244 1244 pjsua_conf_port_id port_id; 1245 pjsip_dialog *dlg;1246 pj_status_t status;1247 1245 1248 1246 PJ_ASSERT_RETURN(call_id>=0 && call_id<(int)pjsua_var.ua_cfg.max_calls, 1249 1247 PJ_EINVAL); 1250 1248 1251 status = acquire_call("pjsua_call_get_conf_port()", call_id, &call, &dlg); 1252 if (status != PJ_SUCCESS) 1253 return PJSUA_INVALID_ID; 1254 1249 /* Use PJSUA_LOCK() instead of acquire_call(): 1250 * https://trac.pjsip.org/repos/ticket/1371 1251 */ 1252 PJSUA_LOCK(); 1253 1254 call = &pjsua_var.calls[call_id]; 1255 1255 port_id = call->conf_slot; 1256 1256 1257 pjsip_dlg_dec_lock(dlg);1257 PJSUA_UNLOCK(); 1258 1258 1259 1259 return port_id; … … 1269 1269 { 1270 1270 pjsua_call *call; 1271 pjsip_dialog *dlg;1272 pj_status_t status;1273 1271 1274 1272 PJ_ASSERT_RETURN(call_id>=0 && call_id<(int)pjsua_var.ua_cfg.max_calls, … … 1277 1275 pj_bzero(info, sizeof(*info)); 1278 1276 1279 status = acquire_call("pjsua_call_get_info()", call_id, &call, &dlg); 1280 if (status != PJ_SUCCESS) { 1281 return status; 1282 } 1277 /* Use PJSUA_LOCK() instead of acquire_call(): 1278 * https://trac.pjsip.org/repos/ticket/1371 1279 */ 1280 PJSUA_LOCK(); 1281 1282 call = &pjsua_var.calls[call_id]; 1283 1283 1284 1284 /* id and role */ … … 1376 1376 } 1377 1377 1378 pjsip_dlg_dec_lock(dlg);1378 PJSUA_UNLOCK(); 1379 1379 1380 1380 return PJ_SUCCESS;
Note: See TracChangeset
for help on using the changeset viewer.