diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-03-14 22:49:26 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-03-14 22:49:26 +0000 |
commit | 62943eced1d23d2c1abb42bc0f826aed22898f14 (patch) | |
tree | 7b157a03e8683d7ecb14787500811598d2567260 /rtp.c | |
parent | b5e08ad637cd395d5d38799c2d3663234123c5b6 (diff) |
If an RTP peer hasn't been set, ignore audio from it (Plexus workaround)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2425 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'rtp.c')
-rwxr-xr-x | rtp.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |