summaryrefslogtreecommitdiff
path: root/pjsip
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2009-10-20 13:14:40 +0000
committerNanang Izzuddin <nanang@teluu.com>2009-10-20 13:14:40 +0000
commitc1e884baaed1d9990ede66182d4d535c7b855779 (patch)
treecf5b0609c0d97471f2c28104f1833dc1f76a55db /pjsip
parent102b2df8afc66bf8c177bc05c108906347d0b1e8 (diff)
Ticket #976: Fixed pjsua_call_make_call() to associate call with account before media channel initialization.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2955 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip')
-rw-r--r--pjsip/src/pjsua-lib/pjsua_call.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_call.c b/pjsip/src/pjsua-lib/pjsua_call.c
index 06cddb5b..5a19d95b 100644
--- a/pjsip/src/pjsua-lib/pjsua_call.c
+++ b/pjsip/src/pjsua-lib/pjsua_call.c
@@ -384,13 +384,16 @@ PJ_DEF(pj_status_t) pjsua_call_make_call( pjsua_acc_id acc_id,
call_id = alloc_call_id();
if (call_id == PJSUA_INVALID_ID) {
- pjsua_perror(THIS_FILE, "Error making file", PJ_ETOOMANY);
+ pjsua_perror(THIS_FILE, "Error making call", PJ_ETOOMANY);
PJSUA_UNLOCK();
return PJ_ETOOMANY;
}
call = &pjsua_var.calls[call_id];
+ /* Associate session with account */
+ call->acc_id = acc_id;
+
/* Create temporary pool */
tmp_pool = pjsua_pool_create("tmpcall10", 512, 256);
@@ -499,7 +502,6 @@ PJ_DEF(pj_status_t) pjsua_call_make_call( pjsua_acc_id acc_id,
}
/* Create and associate our data in the session. */
- call->acc_id = acc_id;
call->inv = inv;
dlg->mod_data[pjsua_var.mod.id] = call;