From 3088ffa82ee420b2755273c08adbd3a4b3697f00 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 18 Feb 2026 11:03:07 -0400 Subject: [PATCH] MT#55283 add test for a=mid collision Change-Id: I3d7980362c607edaab950f5994f571341626bd23 (cherry picked from commit 8f0af256ebdcb7922e14cc3e6544f2306d0036cb) (cherry picked from commit bcaf8d97a028c9a8c78747cb176fe0a35c62930a) --- t/auto-daemon-tests-pubsub.pl | 129 +++++++++++++++++++++++++++++++++- 1 file changed, 128 insertions(+), 1 deletion(-) diff --git a/t/auto-daemon-tests-pubsub.pl b/t/auto-daemon-tests-pubsub.pl index f3cc5ab69..274cd0bf9 100755 --- a/t/auto-daemon-tests-pubsub.pl +++ b/t/auto-daemon-tests-pubsub.pl @@ -29,6 +29,133 @@ use_json(1); +new_call; + +offer('a=mid collision', { }, < '1', flags => ['SIPREC', 'all'] }, <{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}, 184, 'port usage'); +is($resp->{interfaces}[0]{ports}{used}, 192, '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');