diff --git a/src/rtp/rtp.c b/src/rtp/rtp.c index 76d73cf5f..b9c914658 100644 --- a/src/rtp/rtp.c +++ b/src/rtp/rtp.c @@ -17,7 +17,6 @@ #include #include "rtcp.h" - #define DEBUG_MODULE "rtp" #define DEBUG_LEVEL 5 #include @@ -167,6 +166,12 @@ static void rtcp_recv_handler(const struct sa *src, struct mbuf *mb, void *arg) struct rtp_sock *rs = arg; struct rtcp_msg *msg; +#ifdef RE_RTP_PCAP + char tid[32]; + re_snprintf(tid, sizeof(tid), "RTCP ssrc=%u", rs->enc.ssrc); + re_text2pcap_trace("RTCP", true, mb); +#endif + while (0 == rtcp_decode(&msg, mb)) { /* handle internally first */ @@ -202,6 +207,12 @@ static void udp_recv_handler(const struct sa *src, struct mbuf *mb, void *arg) } } +#ifdef RE_RTP_PCAP + char tid[32]; + re_snprintf(tid, sizeof(tid), "RTP ssrc=%u", rs->enc.ssrc); + re_text2pcap_trace(tid, true, mb); +#endif + err = rtp_decode(rs, mb, &hdr); if (err) return;