From 9c51e21da3d2af30051c8219f11a7ffabccfd08e Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Wed, 17 Nov 2010 09:15:04 +0000 Subject: Fixed #1159: UPDATE is sent to lock codec even though call is being disconnected git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3371 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/src/pjsua-lib/pjsua_call.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pjsip/src/pjsua-lib') diff --git a/pjsip/src/pjsua-lib/pjsua_call.c b/pjsip/src/pjsua-lib/pjsua_call.c index f1705dc7..c3ff7561 100644 --- a/pjsip/src/pjsua-lib/pjsua_call.c +++ b/pjsip/src/pjsua-lib/pjsua_call.c @@ -3079,6 +3079,13 @@ static pj_status_t perform_lock_codec(pjsua_call *call) return PJ_SUCCESS; } + /* Don't do this if call is disconnecting! */ + if (call->inv->state > PJSIP_INV_STATE_CONFIRMED || + call->inv->cause >= 200) + { + return PJ_SUCCESS; + } + /* Verify if another SDP negotiation has been completed by comparing * the SDP version. */ -- cgit v1.2.3