diff options
author | Benny Prijono <bennylp@teluu.com> | 2011-09-22 08:13:15 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2011-09-22 08:13:15 +0000 |
commit | 9463049c47d6ac9e6c833fa35461a9b7b9d7cb22 (patch) | |
tree | 459bfc13e89659a73b03c149139941055d83f192 | |
parent | 4b5d70727093a0441e50b42ab9b1a239819812f4 (diff) |
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
-rw-r--r-- | pjsip/src/pjsua-lib/pjsua_call.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |