Skip to content

rest_api/external_interaction/attended_transfer: Add delay to end of referer scenarios.#144

Merged
github-actions[bot] merged 1 commit into
asterisk:masterfrom
gtjoseph:master-ari-attended-transfer
Jun 22, 2026
Merged

rest_api/external_interaction/attended_transfer: Add delay to end of referer scenarios.#144
github-actions[bot] merged 1 commit into
asterisk:masterfrom
gtjoseph:master-ari-attended-transfer

Conversation

@gtjoseph

Copy link
Copy Markdown
Member

In these tests, the referer scenarios are 3pcc masters and the referee scenarios
are 3pcc slaves. If the master ends before the slave, the slave will fail
and cause the test to fail even though it actually passed. Normally, Asterisk sends
a BYE to the referee first, then the master which is fine but occasionally, it sends
the BYE to the master first which causes the error. Adding a delay to the end of
the referer script ensures that even if it receives the BYE first, it won't end before
the referee. The test case kills the scenarios in the correct order so in practice,
the added delay doesn't actually add overall elapsed time to the test.

…referer scenarios.

In these tests, the referer scenarios are 3pcc masters and the referee scenarios
are 3pcc slaves.  If the master ends before the slave, the slave will fail
and cause the test to fail even though it actually passed.  Normally, Asterisk sends
a BYE to the referee first, then the master which is fine but occasionally, it sends
the BYE to the master first which causes the error.  Adding a delay to the end of
the referer script ensures that even if it receives the BYE first, it won't end before
the referee.  The test case kills the scenarios in the correct order so in practice,
the added delay doesn't actually add overall elapsed time to the test.
@gtjoseph

Copy link
Copy Markdown
Member Author

cherry-pick-to: 20
cherry-pick-to: 21
cherry-pick-to: 22
cherry-pick-to: 23
cherry-pick-to: certified/20.7
cherry-pick-to: certified/22.8

@github-actions

Copy link
Copy Markdown

Workflow Check completed successfully

@gtjoseph

Copy link
Copy Markdown
Member Author

FYI... I ran 100 iterations of the 8 tests in rest_api/external_interaction/attended_transfer without a single failure. Before this fix, I could never get beyond 50.

@github-actions github-actions Bot added cherry-pick-testing-in-progress Cherry-Pick tests in progress cherry-pick-checks-passed Cherry-Pick checks passed and removed cherry-pick-test cherry-pick-testing-in-progress Cherry-Pick tests in progress labels Jun 20, 2026
@github-actions

Copy link
Copy Markdown

Workflow CPCheck completed successfully

@github-actions github-actions Bot merged commit ec37658 into asterisk:master Jun 22, 2026
49 checks passed
@github-actions

Copy link
Copy Markdown

Successfully merged to branch master and cherry-picked to ["20","21","22","23","certified/20.7","certified/22.8"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants