Fix calls of ast_sockaddr_from_sin() from IPv6 integration.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@274828 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Richard Mudgett
2010-07-08 23:46:20 +00:00
parent 9d81fc3273
commit c0fd67750b
3 changed files with 9 additions and 9 deletions

View File

@@ -962,7 +962,7 @@ static int __oh323_rtp_create(struct oh323_pvt *pvt)
{
struct ast_sockaddr tmp;
tmp = ast_sockaddr_from_sin(bindaddr);
ast_sockaddr_from_sin(&tmp, &bindaddr);
if (ast_find_ourip(&our_addr, &tmp)) {
ast_mutex_unlock(&pvt->lock);
ast_log(LOG_ERROR, "Unable to locate local IP address for RTP stream\n");
@@ -1994,7 +1994,7 @@ static void setup_rtp_connection(unsigned call_reference, const char *remoteIp,
{
struct ast_sockaddr tmp;
tmp = ast_sockaddr_from_sin(them);
ast_sockaddr_from_sin(&tmp, &them);
ast_rtp_instance_set_remote_address(pvt->rtp, &tmp);
}
if (pvt->recvonly) {