Use real bind address

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3396 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.0
Mark Spencer 22 years ago
parent 65fc87b245
commit b5780eda44

@ -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, __ourip);
p->rtp = ast_rtp_new_with_bindaddr(sched, io, 1, 0, bindaddr.sin_addr);
if (videosupport)
p->vrtp = ast_rtp_new_with_bindaddr(sched, io, 1, 0, __ourip);
p->vrtp = ast_rtp_new_with_bindaddr(sched, io, 1, 0, bindaddr.sin_addr);
p->branch = rand();
p->tag = rand();

Loading…
Cancel
Save