In fact, be even more pedantic
authorMark Spencer <markster@digium.com>
Sun, 21 Nov 2004 19:36:46 +0000 (19:36 +0000)
committerMark Spencer <markster@digium.com>
Sun, 21 Nov 2004 19:36:46 +0000 (19:36 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4305 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 97833ed..6d9b85d 100755 (executable)
@@ -7255,7 +7255,7 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
                                ast_queue_frame(p->owner, &af);
                } else if (debug)
                        ast_verbose("Ignoring this request\n");
-               if (!p->lastinvite && !p->owner) {
+               if (!p->lastinvite && !ignore && !p->owner) {
                        /* Handle authentication if this is our first invite */
                        res = check_user(p, req, cmd, e, 1, sin, ignore);
                        if (res) {