Skip to content
Snippets Groups Projects
Commit 9e83daa3 authored by Mark Spencer's avatar Mark Spencer
Browse files

If an RTP peer hasn't been set, ignore audio from it (Plexus workaround)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2425 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent ea92b714
No related branches found
No related tags found
No related merge requests found
......@@ -409,6 +409,11 @@ struct ast_frame *ast_rtp_read(struct ast_rtp *rtp)
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]);
payloadtype = (seqno & 0x7f0000) >> 16;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment