summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-11-21 19:34:19 +0000
committerMark Spencer <markster@digium.com>2004-11-21 19:34:19 +0000
commit4c624caef3549c90fd5ff0d271e67f4a123d3f39 (patch)
treed44b3bf696d0b27f0a70fb06630cef71d4623bef
parent77f36c6b8738b78d6cc87de3bcadbf66308fde5f (diff)
Don't create owner twice (this should go to -stable too)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4304 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rwxr-xr-xchannels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index dbcd5e4e5..97833ed6b 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -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) {
+ if (!p->lastinvite && !p->owner) {
/* Handle authentication if this is our first invite */
res = check_user(p, req, cmd, e, 1, sin, ignore);
if (res) {