Use real bind address
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3396 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
98f9393f83
commit
ac8c379292
|
@ -2229,9 +2229,9 @@ static struct sip_pvt *sip_alloc(char *callid, struct sockaddr_in *sin, int useg
|
||||||
} else {
|
} else {
|
||||||
memcpy(&p->ourip, &__ourip, sizeof(p->ourip));
|
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)
|
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->branch = rand();
|
||||||
p->tag = rand();
|
p->tag = rand();
|
||||||
|
|
||||||
|
|
Reference in New Issue