[asterisk-commits] oej: branch oej/codename-pineapple r55865 -
/team/oej/codename-pineapple/chan...
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Feb 21 02:42:03 MST 2007
Author: oej
Date: Wed Feb 21 03:41:55 2007
New Revision: 55865
URL: http://svn.digium.com/view/asterisk?view=rev&rev=55865
Log:
Fix call counter on transfer
Modified:
team/oej/codename-pineapple/channels/chan_sip3.c
Modified: team/oej/codename-pineapple/channels/chan_sip3.c
URL: http://svn.digium.com/view/asterisk/team/oej/codename-pineapple/channels/chan_sip3.c?view=diff&rev=55865&r1=55864&r2=55865
==============================================================================
--- team/oej/codename-pineapple/channels/chan_sip3.c (original)
+++ team/oej/codename-pineapple/channels/chan_sip3.c Wed Feb 21 03:41:55 2007
@@ -1100,6 +1100,12 @@
}
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)
ast_log(LOG_DEBUG, "SIP Transfer: Not hanging up right now... Rescheduling hangup for %s.\n", p->callid);
if (p->autokillid > -1)
@@ -1122,9 +1128,12 @@
ast_log(LOG_DEBUG, "Hanging up zombie call. Be scared.\n");
dialog_lock(p, TRUE);
- if (option_debug && sipdebug)
- ast_log(LOG_DEBUG, "update_call_counter(%s) - decrement call limit counter on hangup\n", p->peername);
- update_call_counter(p, DEC_CALL_LIMIT); /* Fix call limit counter */
+ 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);
+ }
+
/* Determine how to disconnect */
if (p->owner != ast) {
More information about the asterisk-commits
mailing list