Index: channels/chan_sip.c =================================================================== RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v retrieving revision 1.894 diff -u -r1.894 chan_sip.c --- channels/chan_sip.c 17 Oct 2005 22:26:33 -0000 1.894 +++ channels/chan_sip.c 19 Oct 2005 18:37:46 -0000 @@ -9390,6 +9390,11 @@ ast_log(LOG_DEBUG, "SIP response %d to standard invite\n", resp); } + if (ast_test_flag(p, SIP_ALREADYGONE)) { /* This call is already gone */ + ast_log(LOG_DEBUG, "Got response on call that is already terminated: %s (ignoring)\n", p->callid); + return; + } + switch (resp) { case 100: /* Trying */ sip_cancel_destroy(p);