]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
don't create owner twice
authorRussell Bryant <russell@russellbryant.com>
Mon, 22 Nov 2004 03:57:41 +0000 (03:57 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 22 Nov 2004 03:57:41 +0000 (03:57 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4310 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index a776a688fb111468ba93bc751481d5c70f87c034..700301f335967a1892e1a9f1653cba1f1c4aecb6 100755 (executable)
@@ -7227,7 +7227,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) {
+               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) {