--- chan_sip.c- 2007-05-24 09:08:27.000000000 -0400 +++ chan_sip.c 2007-05-23 11:33:13.000000000 -0400 @@ -10619,7 +10619,9 @@ ast_verbose("Using INVITE request as basis request - %s\n", p->callid); sip_cancel_destroy(p); /* This call is no longer outgoing if it ever was */ + update_call_counter(p, DEC_CALL_LIMIT); ast_clear_flag(p, SIP_OUTGOING); + update_call_counter(p, INC_CALL_LIMIT); /* This also counts as a pending invite */ p->pendinginvite = seqno; copy_request(&p->initreq, req);