From 9463049c47d6ac9e6c833fa35461a9b7b9d7cb22 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Thu, 22 Sep 2011 08:13:15 +0000 Subject: Fixed bug in re #1376: pjsua_call_info() could not be called when state is disconnected git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3771 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/src/pjsua-lib/pjsua_call.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pjsip') diff --git a/pjsip/src/pjsua-lib/pjsua_call.c b/pjsip/src/pjsua-lib/pjsua_call.c index 1899d662..532bc12b 100644 --- a/pjsip/src/pjsua-lib/pjsua_call.c +++ b/pjsip/src/pjsua-lib/pjsua_call.c @@ -1283,13 +1283,13 @@ PJ_DEF(pj_status_t) pjsua_call_get_info( pjsua_call_id call_id, */ PJSUA_LOCK(); - if (!pjsua_call_is_active(call_id)) { + call = &pjsua_var.calls[call_id]; + + if (!call->inv) { PJSUA_UNLOCK(); return PJSIP_ESESSIONTERMINATED; } - call = &pjsua_var.calls[call_id]; - /* id and role */ info->id = call_id; info->role = call->inv->role; -- cgit v1.2.3