Fix compile of chan_ooh323.c from IPv6 integration.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@274827 65c4cc65-6c06-0410-ace0-fbb531ad65f3
certified/1.8.6
Richard Mudgett 15 years ago
parent 9bd88923f6
commit 9d81fc3273

@ -484,7 +484,7 @@ static struct ooh323_pvt *ooh323_alloc(int callref, char *callToken)
ouraddr.sin_family = AF_INET; ouraddr.sin_family = AF_INET;
ouraddr.sin_addr = ipAddr; ouraddr.sin_addr = ipAddr;
tmp = ast_sockaddr_from_sin(ouraddr); ast_sockaddr_from_sin(&tmp, &ouraddr);
if (!(pvt->rtp = ast_rtp_instance_new("asterisk", sched, &tmp, NULL))) { if (!(pvt->rtp = ast_rtp_instance_new("asterisk", sched, &tmp, NULL))) {
ast_log(LOG_WARNING, "Unable to create RTP session: %s\n", ast_log(LOG_WARNING, "Unable to create RTP session: %s\n",
strerror(errno)); strerror(errno));
@ -3937,7 +3937,7 @@ void setup_rtp_connection(ooCallData *call, const char *remoteIp,
them.sin_family = AF_INET; them.sin_family = AF_INET;
them.sin_addr.s_addr = inet_addr(remoteIp); /* only works for IPv4 */ them.sin_addr.s_addr = inet_addr(remoteIp); /* only works for IPv4 */
them.sin_port = htons(remotePort); them.sin_port = htons(remotePort);
tmp = ast_sockaddr_from_sin(&them); ast_sockaddr_from_sin(&tmp, &them);
ast_rtp_instance_set_remote_address(p->rtp, &tmp); ast_rtp_instance_set_remote_address(p->rtp, &tmp);
if (p->writeformat & AST_FORMAT_G726_AAL2) if (p->writeformat & AST_FORMAT_G726_AAL2)

Loading…
Cancel
Save