From c1e884baaed1d9990ede66182d4d535c7b855779 Mon Sep 17 00:00:00 2001 From: Nanang Izzuddin Date: Tue, 20 Oct 2009 13:14:40 +0000 Subject: 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 --- pjsip/src/pjsua-lib/pjsua_call.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pjsip') 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; -- cgit v1.2.3