Index: channels/chan_sip.c =================================================================== RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v retrieving revision 1.672 diff -u -r1.672 chan_sip.c --- channels/chan_sip.c 9 Mar 2005 04:56:51 -0000 1.672 +++ channels/chan_sip.c 11 Mar 2005 06:39:52 -0000 @@ -7905,6 +7905,7 @@ int seqno; int len; int ignore=0; + int really_ignore = 0; int respid; int res; int gotdest; @@ -8031,8 +8032,11 @@ ast_log(LOG_DEBUG, "Hm.... No sdp for the moment\n"); } } - } else if (debug) + } else if { + 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); @@ -8117,6 +8121,8 @@ c = p->owner; if (!ignore && p) p->lastinvite = seqno; + if (really_ignore) + return 0; if (c) { switch(c->_state) { case AST_STATE_DOWN: