- Timestamp:
- Sep 22, 2011 6:13:22 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.x/pjsip/src/pjsua-lib/pjsua_call.c
r3751 r3768 1242 1242 { 1243 1243 pjsua_call *call; 1244 pjsua_conf_port_id port_id ;1244 pjsua_conf_port_id port_id = PJSUA_INVALID_ID; 1245 1245 1246 1246 PJ_ASSERT_RETURN(call_id>=0 && call_id<(int)pjsua_var.ua_cfg.max_calls, … … 1252 1252 PJSUA_LOCK(); 1253 1253 1254 if (!pjsua_call_is_active(call_id)) 1255 goto on_return; 1256 1254 1257 call = &pjsua_var.calls[call_id]; 1255 1258 port_id = call->conf_slot; 1256 1259 1260 on_return: 1257 1261 PJSUA_UNLOCK(); 1258 1262 … … 1279 1283 */ 1280 1284 PJSUA_LOCK(); 1285 1286 if (!pjsua_call_is_active(call_id)) { 1287 PJSUA_UNLOCK(); 1288 return PJSIP_ESESSIONTERMINATED; 1289 } 1281 1290 1282 1291 call = &pjsua_var.calls[call_id];
Note: See TracChangeset
for help on using the changeset viewer.