[Asterisk-code-review] rtp_range: Add tests to verify rtp range settings are followed. (testsuite[16])

Michael Bradeen asteriskteam at digium.com
Wed Nov 17 17:54:57 CST 2021


Attention is currently required from: Michael Bradeen.
Hello Joshua Colp, Kevin Harwell, Friendly Automation, Richard Mudgett, 

I'd like you to reexamine a change. Please visit

    https://gerrit.asterisk.org/c/testsuite/+/16636

to look at the new patch set (#4).

Change subject: rtp_range: Add tests to verify rtp range settings are followed.
......................................................................

rtp_range: Add tests to verify rtp range settings are followed.

New set of tests to verify that the rtp range configured in rtp.conf
is not exceeded by the port search logic and that asterisk does not
get into an infinite loop while searching for a free port.
Four tests are added based on even/odd start and stop port pairings.
rtp_range_even_even: begining and end of range are even
rtp_range_even_odd: start port is even, end port is odd
rtp_range_odd_even: start port is odd, end port is even
rtp_range_odd_odd: start port is odd, end port is odd

In each test we expect three calls to pass then three more to fail,
rejected with a 488 by asterisk due to it being out of free ports.

ASTERISK-27406

Change-Id: Iefa8545cc1785b1e32a42d740f8f567706c73199
---
A tests/rtp/rtp_range/rtp_range_even_even/configs/ast1/extensions.conf
A tests/rtp/rtp_range/rtp_range_even_even/configs/ast1/pjsip.conf
A tests/rtp/rtp_range/rtp_range_even_even/configs/ast1/rtp.conf
A tests/rtp/rtp_range/rtp_range_even_even/sipp/call_accept_test_range.xml
A tests/rtp/rtp_range/rtp_range_even_even/test-config.yaml
A tests/rtp/rtp_range/rtp_range_even_odd/configs/ast1/extensions.conf
A tests/rtp/rtp_range/rtp_range_even_odd/configs/ast1/pjsip.conf
A tests/rtp/rtp_range/rtp_range_even_odd/configs/ast1/rtp.conf
A tests/rtp/rtp_range/rtp_range_even_odd/sipp/call_accept_test_range.xml
A tests/rtp/rtp_range/rtp_range_even_odd/test-config.yaml
A tests/rtp/rtp_range/rtp_range_odd_even/configs/ast1/extensions.conf
A tests/rtp/rtp_range/rtp_range_odd_even/configs/ast1/pjsip.conf
A tests/rtp/rtp_range/rtp_range_odd_even/configs/ast1/rtp.conf
A tests/rtp/rtp_range/rtp_range_odd_even/sipp/call_accept_test_range.xml
A tests/rtp/rtp_range/rtp_range_odd_even/test-config.yaml
A tests/rtp/rtp_range/rtp_range_odd_odd/configs/ast1/extensions.conf
A tests/rtp/rtp_range/rtp_range_odd_odd/configs/ast1/pjsip.conf
A tests/rtp/rtp_range/rtp_range_odd_odd/configs/ast1/rtp.conf
A tests/rtp/rtp_range/rtp_range_odd_odd/sipp/call_accept_test_range.xml
A tests/rtp/rtp_range/rtp_range_odd_odd/test-config.yaml
A tests/rtp/rtp_range/tests.yaml
M tests/rtp/tests.yaml
22 files changed, 702 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/36/16636/4
-- 
To view, visit https://gerrit.asterisk.org/c/testsuite/+/16636
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: testsuite
Gerrit-Branch: 16
Gerrit-Change-Id: Iefa8545cc1785b1e32a42d740f8f567706c73199
Gerrit-Change-Number: 16636
Gerrit-PatchSet: 4
Gerrit-Owner: Michael Bradeen <mbradeen at sangoma.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-Attention: Michael Bradeen <mbradeen at sangoma.com>
Gerrit-MessageType: newpatchset
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20211117/f3ed898a/attachment-0001.html>


More information about the asterisk-code-review mailing list