Skip to content

Conversation

@maximilianfridrich
Copy link
Contributor

This commit adds comprehensive test coverage for SIP MESSAGE redirect handling with 305 Use Proxy responses in Asterisk's PJSIP stack.

Test coverage includes:

  • Basic MESSAGE redirect with redirect_method=uri_pjsip configured
  • Verification that redirects are NOT followed when redirect_method is unset
  • Multiple Contact header handling with q-value priority
  • Contact failover when higher-priority contacts reject (4xx responses)
  • Redirect loop detection and prevention

This commit adds comprehensive test coverage for SIP MESSAGE redirect
handling with 305 Use Proxy responses in Asterisk's PJSIP stack.

Test coverage includes:
- Basic MESSAGE redirect with redirect_method=uri_pjsip configured
- Verification that redirects are NOT followed when redirect_method is
  unset
- Multiple Contact header handling with q-value priority
- Contact failover when higher-priority contacts reject (4xx responses)
- Redirect loop detection and prevention
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Checklist Complete

@github-actions
Copy link

github-actions bot commented Nov 7, 2025

Workflow PRCheck failed
master-gates: FAILED TEST: channels/pjsip/message/message_redirect
master-gates: FAILED TEST: channels/pjsip/message/message_redirect_multiple

@maximilianfridrich
Copy link
Contributor Author

maximilianfridrich commented Nov 7, 2025

The two new message/message_redirect* tests that failed are exactly the ones that I would expect to fail without the new Asterisk improvement. The tests pass in the corresponding Asterisk PR with the redirect improvement which uses this testsuite PR: asterisk/asterisk#1580 (link to corresponding job).

@maximilianfridrich
Copy link
Contributor Author

maximilianfridrich commented Nov 7, 2025

cherry-pick-to: 20
cherry-pick-to: 22
cherry-pick-to: 23
asterisk-test-pr: 1580

@gtjoseph
Copy link
Member

gtjoseph commented Nov 7, 2025

I probably forgot to announce this but you can now add asterisk-test-pr: <pr> to testsuite PRs just like you added testsuite-test-pr to your asterisk PR. I'll update your comment.

@github-actions
Copy link

github-actions bot commented Nov 7, 2025

Workflow PRCheck completed successfully

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