Index: channels/chan_sip.c =================================================================== RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v retrieving revision 1.510.2.51 diff -u -r1.510.2.51 chan_sip.c --- channels/chan_sip.c 21 Feb 2005 03:57:27 -0000 1.510.2.51 +++ channels/chan_sip.c 24 Feb 2005 22:40:45 -0000 @@ -7152,6 +7152,7 @@ int seqno; int len; int ignore=0; + int really_ignore = 0; int respid; int res; int gotdest; @@ -7279,8 +7280,11 @@ /* Queue NULL frame to prod ast_rtp_bridge if appropriate */ if (p->owner) ast_queue_frame(p->owner, &af); - } else if (debug) + } else { + if (debug) ast_verbose("Ignoring this request\n"); + really_ignore = 1; + } if (!p->lastinvite && !ignore && !p->owner) { /* Handle authentication if this is our first invite */ res = check_user(p, req, cmd, e, 1, sin, ignore); @@ -7350,6 +7354,8 @@ c = p->owner; if (!ignore && p) p->lastinvite = seqno; + if (really_ignore) + return 0; if (c) { switch(c->_state) { case AST_STATE_DOWN: