10000 test: add testing of RTCP FIR-RFC5104 by alfredh · Pull Request #1281 · baresip/re · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

test: add testing of RTCP FIR-RFC5104 #1281

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions test/rtcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ static void rtcp_recv_handler(const struct sa *src, struct rtcp_msg *msg,

case RTCP_PSFB:
++ag->psfb_count;
re_cancel();

if (msg->hdr.count == RTCP_PSFB_PLI)
re_cancel();
break;

default:
Expand Down Expand Up @@ -290,6 +292,11 @@ static int test_rtcp_loop_base(bool mux)
rtcp_start(a.rtp_sock, "cname", &b.laddr_rtcp);
rtcp_start(b.rtp_sock, "cname", &a.laddr_rtcp);

const uint8_t fir_seqn = 22;
err = rtcp_send_fir_rfc5104(a.rtp_sock, rtp_sess_ssrc(b.rtp_sock),
fir_seqn);
TEST_ERR(err);

err = rtcp_send_app(a.rtp_sock, "PING", (void *)"PONG", 4);
TEST_ERR(err);

Expand All @@ -307,7 +314,7 @@ static int test_rtcp_loop_base(bool mux)
ASSERT_EQ(0, a.app_count);

ASSERT_EQ(0, b.rtp_count);
ASSERT_EQ(1, b.psfb_count);
ASSERT_EQ(2, b.psfb_count);
ASSERT_EQ(1, b.rtpfb_count);
ASSERT_EQ(1, b.gnack_count);
ASSERT_EQ(1, b.app_count);
Expand Down
Loading
0