Skip to content
Snippets Groups Projects
Commit 4534fbb7 authored by Olle Johansson's avatar Olle Johansson
Browse files

Merged revisions 55834 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r55834 | oej | 2007-02-21 09:32:34 +0100 (Wed, 21 Feb 2007) | 2 lines

Issue #8848 - Turn off lamp more quickly after transfer (decrement inuse early on transferer's call leg)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@55835 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 8f288007
No related branches found
No related tags found
No related merge requests found
...@@ -3578,6 +3578,11 @@ static int sip_hangup(struct ast_channel *ast) ...@@ -3578,6 +3578,11 @@ static int sip_hangup(struct ast_channel *ast)
} }
   
if (ast_test_flag(&p->flags[0], SIP_DEFER_BYE_ON_TRANSFER)) { if (ast_test_flag(&p->flags[0], SIP_DEFER_BYE_ON_TRANSFER)) {
if (ast_test_flag(&p->flags[0], SIP_INC_COUNT)) {
if (option_debug && sipdebug)
ast_log(LOG_DEBUG, "update_call_counter(%s) - decrement call limit counter on hangup\n", p->username);
update_call_counter(p, DEC_CALL_LIMIT);
}
if (option_debug >3) if (option_debug >3)
ast_log(LOG_DEBUG, "SIP Transfer: Not hanging up right now... Rescheduling hangup for %s.\n", p->callid); ast_log(LOG_DEBUG, "SIP Transfer: Not hanging up right now... Rescheduling hangup for %s.\n", p->callid);
if (p->autokillid > -1) if (p->autokillid > -1)
...@@ -3601,9 +3606,11 @@ static int sip_hangup(struct ast_channel *ast) ...@@ -3601,9 +3606,11 @@ static int sip_hangup(struct ast_channel *ast)
ast_log(LOG_DEBUG, "Hanging up zombie call. Be scared.\n"); ast_log(LOG_DEBUG, "Hanging up zombie call. Be scared.\n");
   
sip_pvt_lock(p); sip_pvt_lock(p);
if (option_debug && sipdebug) if (ast_test_flag(&p->flags[0], SIP_INC_COUNT)) {
ast_log(LOG_DEBUG, "update_call_counter(%s) - decrement call limit counter on hangup\n", p->username); if (option_debug && sipdebug)
update_call_counter(p, DEC_CALL_LIMIT); ast_log(LOG_DEBUG, "update_call_counter(%s) - decrement call limit counter on hangup\n", p->username);
update_call_counter(p, DEC_CALL_LIMIT);
}
   
/* Determine how to disconnect */ /* Determine how to disconnect */
if (p->owner != ast) { if (p->owner != ast) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment