aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-29 07:53:14 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-29 07:53:14 +0000
commit20679196f8143c52409bc30870ec27bc48758e6e (patch)
treeafb1e4c9b433f8c233009a0aa03d16d0ba973226
parente2573d9dce4fdb597da2257c561e16f79905a6cc (diff)
Issue #9802 - Change inuse counter on CANCEL
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@66349 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index da5c1584e..1a676ebd8 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -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);