ast_log(LOG_DEBUG,"P2P RTP NAT: Got audio from other end. Now sending to address %s:%d\n",ast_inet_ntoa(rtp->them.sin_addr),ntohs(rtp->them.sin_port));
ast_log(LOG_DEBUG,"P2P RTCP NAT: Got RTCP from other end. Now sending to address %s:%d\n",ast_inet_ntoa(rtp->rtcp->them.sin_addr),ntohs(rtp->rtcp->them.sin_port));
ast_log(LOG_DEBUG,"P2P RTP NAT: Got audio from other end. Now sending to address %s:%d\n",ast_inet_ntoa(rtp->them.sin_addr),ntohs(rtp->them.sin_port));
}
/* If this came from the RTP stream, write out via RTP - if it's RTCP, write out via RTCP */
if(ast_rtp_get_bridged(rtp)){
if(is_rtp)
bridge_p2p_rtp_write(rtp,header,res,hdrlen);
elseif(is_rtcp)
bridge_p2p_rtcp_write(rtp,header,res);
}
/* Write directly out to other RTP stream if bridged */
ast_log(LOG_DEBUG,"P2P RTCP NAT: Got RTCP from other end. Now sending to address %s:%d\n",ast_inet_ntoa(rtcp->them.sin_addr),ntohs(rtcp->them.sin_port));
}
if(ast_rtp_get_bridged(rtp))
bridge_p2p_rtcp_write(rtp,header,res);
return1;
}
@ -2920,7 +2931,7 @@ static int p2p_callback_enable(struct ast_channel *chan, struct ast_rtp *rtp, in