summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2010-11-17 09:15:04 +0000
committerBenny Prijono <bennylp@teluu.com>2010-11-17 09:15:04 +0000
commit9c51e21da3d2af30051c8219f11a7ffabccfd08e (patch)
treee6653096a59888091e0c9e6281ae0950ec6465b1
parent45ac311d10ab73063d97a87dd6866dfbfc13873c (diff)
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
-rw-r--r--pjsip/src/pjsua-lib/pjsua_call.c7
1 files changed, 7 insertions, 0 deletions
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.
*/