From 54fc71d1d33b4502ebdd9b0be0d1f287e388e9a6 Mon Sep 17 00:00:00 2001 From: Ben Ford Date: Wed, 31 Jan 2024 10:41:08 -0600 Subject: [PATCH] Fix failing tests for pjproject 2.14. pjproject 2.14 introduced some changes that caused some of our tests to fail. These tests ended up being either incorrect or not flexible enough to handle them, so they have been updated to now pass with correct behavior. There are two changes that we were concerned with. The first was a change to the on_media_update callback which allowed it to be called in error scenarios, and another changed the way that PRACK is processed. This resulted in getting CANCELs during INVITEs with invalid sdp, getting additional BYEs in scenarios when multiple INVITEs were sent, (e.g., reinvite_after_bye test), and the order in which we received the 200 for PRACK and 200 for the INVITE swapping the order in which they arrived. Since all of these are valid scenarios, the tests have been updated to reflect that. --- .../call_canceled/sipp/call_invalid_sdp.xml | 16 +++- .../call_canceled/sipp/call_missing_sdp.xml | 17 ++++- .../call_canceled/test-config.yaml | 73 ------------------- .../sipp/reinvite-after-bye.xml | 45 +++++++++++- .../sipp/check_100rel.xml | 25 +------ .../peer_supported_used/sipp/check_100rel.xml | 25 +------ .../transferer_reinvite/sipp/transferer.xml | 43 ++++++++++- 7 files changed, 118 insertions(+), 126 deletions(-) diff --git a/tests/channels/pjsip/basic_calls/outgoing/off-nominal/call_canceled/sipp/call_invalid_sdp.xml b/tests/channels/pjsip/basic_calls/outgoing/off-nominal/call_canceled/sipp/call_invalid_sdp.xml index bdb8f58c2..8cb0615ac 100644 --- a/tests/channels/pjsip/basic_calls/outgoing/off-nominal/call_canceled/sipp/call_invalid_sdp.xml +++ b/tests/channels/pjsip/basic_calls/outgoing/off-nominal/call_canceled/sipp/call_invalid_sdp.xml @@ -59,8 +59,21 @@ ]]> - + + + + + +