mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 19:52:48 +00:00
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
This commit is contained in:
5
rtp.c
5
rtp.c
@@ -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));
|
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 */
|
/* Get fields */
|
||||||
seqno = ntohl(rtpheader[0]);
|
seqno = ntohl(rtpheader[0]);
|
||||||
payloadtype = (seqno & 0x7f0000) >> 16;
|
payloadtype = (seqno & 0x7f0000) >> 16;
|
||||||
|
Reference in New Issue
Block a user