diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-05-29 09:41:40 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-05-29 09:41:40 +0000 |
commit | ee7fe295c695161e93eaee489913327a1160bf6f (patch) | |
tree | bd69830f99875bbe095a8971ee95a357bf573326 /channels | |
parent | 16cfa2cc9da733e6f2ddf16b69c7f431f9cff7d9 (diff) |
Merged revisions 66349 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r66349 | oej | 2007-05-29 09:53:14 +0200 (Tue, 29 May 2007) | 2 lines
Issue #9802 - Change inuse counter on CANCEL
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@66363 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 16c5f5b8a..cdc84e241 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -14196,6 +14196,10 @@ static int handle_request_cancel(struct sip_pvt *p, struct sip_request *req) ast_log(LOG_DEBUG, "Got CANCEL on an answered call. Ignoring... \n"); return 0; } + + if (ast_test_flag(&p->flags[0], SIP_INC_COUNT)) + update_call_counter(p, DEC_CALL_LIMIT); + stop_media_flows(p); /* Immediately stop RTP, VRTP and UDPTL as applicable */ if (p->owner) |