]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Use proper bind address
authorMark Spencer <markster@digium.com>
Thu, 8 Jul 2004 13:04:42 +0000 (13:04 +0000)
committerMark Spencer <markster@digium.com>
Thu, 8 Jul 2004 13:04:42 +0000 (13:04 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3394 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 2eb483cd450ad0b198e82bb60d165b9fdbd1c6d4..3ae5273775b84131c38703502b8686391c6007fa 100755 (executable)
@@ -2229,9 +2229,9 @@ static struct sip_pvt *sip_alloc(char *callid, struct sockaddr_in *sin, int useg
        } else {
                memcpy(&p->ourip, &__ourip, sizeof(p->ourip));
        }
-       p->rtp = ast_rtp_new_with_bindaddr(sched, io, 1, 0, p->ourip);
+       p->rtp = ast_rtp_new_with_bindaddr(sched, io, 1, 0, __ourip);
        if (videosupport)
-               p->vrtp = ast_rtp_new_with_bindaddr(sched, io, 1, 0, p->ourip);
+               p->vrtp = ast_rtp_new_with_bindaddr(sched, io, 1, 0, __ourip);
        p->branch = rand();     
        p->tag = rand();