]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Issue #9802 - Change inuse counter on CANCEL
authorOlle Johansson <oej@edvina.net>
Tue, 29 May 2007 07:53:14 +0000 (07:53 +0000)
committerOlle Johansson <oej@edvina.net>
Tue, 29 May 2007 07:53:14 +0000 (07:53 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@66349 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index da5c1584e025961d3396b1da66a3f23d309eabcd..1a676ebd8732bcd78056e82bbfd14fd49d3ad618 100644 (file)
@@ -10912,6 +10912,10 @@ static int handle_request_cancel(struct sip_pvt *p, struct sip_request *req, int
                
        check_via(p, req);
        ast_set_flag(p, SIP_ALREADYGONE);       
+
+       if (ast_test_flag(p, SIP_INC_COUNT)) 
+               update_call_counter(p, DEC_CALL_LIMIT);
+
        if (p->rtp) {
                /* Immediately stop RTP */
                ast_rtp_stop(p->rtp);