ast_log(LOG_WARNING, "RTP Read too short\n");
return &null_frame;
}
+
+ /* Ignore if the other side hasn't been given an address
+ yet. */
+ if (!rtp->them.sin_addr.s_addr || !rtp->them.sin_port)
+ return &null_frame;
+
if (rtp->nat) {
/* Send to whoever sent to us */
if ((rtp->them.sin_addr.s_addr != sin.sin_addr.s_addr) ||
ast_log(LOG_DEBUG, "RTP NAT: Using address %s:%d\n", inet_ntoa(rtp->them.sin_addr), ntohs(rtp->them.sin_port));
}
}
- /* Ignore if the other side hasn't been given an address
- yet. */
- if (!rtp->them.sin_addr.s_addr || !rtp->them.sin_port)
- return &null_frame;
/* Get fields */
seqno = ntohl(rtpheader[0]);