From 7ca05e22e37de73c5c0b0bdab1ee5cb095489c3b Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 10 Mar 2026 08:56:17 -0400 Subject: [PATCH] MT#55283 tests for I410c6af17e Change-Id: I41389971c9ccb578bee57e8ea193725ab056ae08 (cherry picked from commit 14fbc4fa760f600185e392ff9c56aff4780d6190) (cherry picked from commit ccaeb2bdc7c271fcb52fed80ae08a12d99f1aec0) --- t/auto-daemon-tests-pubsub.pl | 463 +++++++++++++++++++++++++++++++++- 1 file changed, 461 insertions(+), 2 deletions(-) diff --git a/t/auto-daemon-tests-pubsub.pl b/t/auto-daemon-tests-pubsub.pl index 274cd0bf9..62ea7e042 100755 --- a/t/auto-daemon-tests-pubsub.pl +++ b/t/auto-daemon-tests-pubsub.pl @@ -20,7 +20,8 @@ my ($sock_a, $sock_b, $sock_c, $sock_d, $port_a, $port_b, $port_c, $ssrc_a, $ssr $sock_ax, $sock_bx, $port_ax, $port_bx, $port_d, $sock_e, $port_e, $sock_cx, $port_cx, $srtp_ctx_a, $srtp_ctx_b, $srtp_ctx_a_rev, $srtp_ctx_b_rev, $ufrag_a, $ufrag_b, @ret1, @ret2, @ret3, @ret4, $srtp_key_a, $srtp_key_b, $ts, $seq, $tag_medias, $media_labels, - $ftr, $ttr, $fts, $ttr2); + $ftr, $ttr, $fts, $ttr2, $sock_f, $sock_g, $sock_h, $port_f, $port_g, $port_h, + $port_cx, $port_dx, $port_gx, $port_hx); @@ -29,6 +30,464 @@ use_json(1); + +($sock_a, $sock_b, $sock_c, $sock_d, $sock_e, $sock_f, $sock_g, $sock_h) = new_call( + [qw(198.51.100.14 6228)], + [qw(198.51.100.14 6232)], + [qw(198.51.100.14 6236)], + [qw(198.51.100.14 6240)], + [qw(198.51.100.14 6244)], + [qw(198.51.100.14 6248)], + [qw(198.51.100.14 6252)], + [qw(198.51.100.14 6256)], +); + +($port_a) = offer('add video', + { }, < ["SIPREC"], 'from-tags' => [ft(), tt()] }, < $ttr }, < ["SIPREC"], 'from-tags' => [ft(), tt()] }, < ["SIPREC"], 'from-tags' => [ft(), tt()], 'to-tag' => $ttr }, < $ttr }, < ["SIPREC"], 'from-tags' => [tt(), ft()], 'to-tag' => $ttr }, < ft() }, < $ttr }, <{response}); is($resp->{interfaces}[0]{name}, 'default', 'intf found'); is($resp->{interfaces}[0]{address}, '203.0.113.1', 'address found'); -is($resp->{interfaces}[0]{ports}{used}, 192, 'port usage'); +is($resp->{interfaces}[0]{ports}{used}, 220, 'port usage'); is($resp->{interfaces}[1]{name}, 'default', 'intf found'); is($resp->{interfaces}[1]{address}, '2001:db8:4321::1', 'address found'); is($resp->{interfaces}[1]{ports}{used}, 2, 'port usage');