diff --git a/rtp.c b/rtp.c index c933039fe8..e931c624e2 100644 --- a/rtp.c +++ b/rtp.c @@ -509,7 +509,7 @@ struct ast_frame *ast_rtp_read(struct ast_rtp *rtp) ast_verbose("Got RTP packet from %s:%d (type %d, seq %d, ts %d, len %d)\n" , ast_inet_ntoa(iabuf, sizeof(iabuf), sin.sin_addr), ntohs(sin.sin_port), payloadtype, seqno, timestamp,res - hdrlen); - rtpPT = ast_rtp_lookup_pt(rtp, payloadtype); + rtpPT = ast_rtp_lookup_pt(rtp, payloadtype); if (!rtpPT.isAstFormat) { /* This is special in-band data that's not one of our codecs */ if (rtpPT.code == AST_RTP_DTMF) {