dect
/
asterisk
Archived
13
0
Fork 0

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:
markster 2004-07-08 14:06:22 +00:00
parent 98f9393f83
commit ac8c379292
1 changed files with 2 additions and 2 deletions

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, __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();