ast_log(LOG_DEBUG,"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_debug(0,"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));
}
}
@ -1198,7 +1198,7 @@ static int bridge_p2p_rtp_write(struct ast_rtp *rtp, struct ast_rtp *bridged, un
ast_debug(1,"RTP Transmission error of packet to %s:%d: %s\n",ast_inet_ntoa(bridged->them.sin_addr),ntohs(bridged->them.sin_port),strerror(errno));
ast_log(LOG_DEBUG,"RTP NAT: Can't write RTP to private address %s:%d, waiting for other end to send audio...\n",ast_inet_ntoa(bridged->them.sin_addr),ntohs(bridged->them.sin_port));
ast_debug(0,"RTP NAT: Can't write RTP to private address %s:%d, waiting for other end to send audio...\n",ast_inet_ntoa(bridged->them.sin_addr),ntohs(bridged->them.sin_port));
/* Only give this error message once if we are not RTP debugging */
if(option_debug||rtpdebug)
ast_log(LOG_DEBUG,"RTP NAT: Can't write RTP to private address %s:%d, waiting for other end to send audio...\n",ast_inet_ntoa(rtp->them.sin_addr),ntohs(rtp->them.sin_port));
ast_debug(0,"RTP NAT: Can't write RTP to private address %s:%d, waiting for other end to send audio...\n",ast_inet_ntoa(rtp->them.sin_addr),ntohs(rtp->them.sin_port));
ast_set_flag(rtp,FLAG_NAT_INACTIVE_NOWARN);
}
}else{
@ -3204,7 +3204,7 @@ static int p2p_rtp_callback(int *id, int fd, short events, void *cbdata)
rtp->rxseqno=0;
ast_set_flag(rtp,FLAG_NAT_ACTIVE);
if(option_debug||rtpdebug)
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_debug(0,"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));
}
/* Write directly out to other RTP stream if bridged */