Use proper bind address

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3394 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2004-07-08 13:04:42 +00:00
parent 8ebfe337a7
commit 12b3b6c86e

View File

@@ -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();