Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support set the ice-ufrag and ice-pwd for connectivity check. v5.0.191 v6.0.91 #3837

Merged
merged 5 commits into from Oct 17, 2023

Conversation

winlinvip
Copy link
Member

@winlinvip winlinvip commented Oct 15, 2023

Checking the HTTPS API or UDP connectivity for WHIP tests can be difficult. For example, if the UDP port isn't available but the API is fine, OBS only says it can't connect to the server. It's hard to see the HTTPS API response or check if the UDP port is available.

This feature lets you set the ice username and password in SRS. You can then send a STUN request using nc and see the response, making it easier to check UDP port connectivity.

  1. Use curl to test the WHIP API, including ice-frag and ice-pwd queries.
  2. Use nc to send a STUN binding request to test UDP connectivity.
  3. If both the API and UDP are working, you should get a STUN response.

Troubleshooting Connection Failures in OBS WHIP, see #2843


Co-authored-by: john hondaxiao@tencent.com

Checking the HTTPS API or UDP connectivity for WHIP tests can be difficult. For example, if the UDP port isn't available but the API is fine, OBS only says it can't connect to the server. It's hard to see the HTTPS API response or check if the UDP port is available.

This feature lets you set the ice username and password in SRS. You can then send a STUN request using nc and see the response, making it easier to check UDP port connectivity.

1. Use curl to test the WHIP API, including ice-frag and ice-pwd queries.
2. Use nc to send a STUN binding request to test UDP connectivity.
3. If both the API and UDP are working, you should get a STUN response.
@winlinvip winlinvip added the EnglishNative This issue is conveyed exclusively in English. label Oct 15, 2023
@winlinvip
Copy link
Member Author

winlinvip commented Oct 15, 2023

We need to combine 5 and 6.

TRANS_BY_GPT4

@winlinvip
Copy link
Member Author

winlinvip commented Oct 16, 2023

There's another related improvement. When accessing the WHIP API using HTTP GET, the error messages are not clear enough. You can refer to this link for more details: #3838

TRANS_BY_GPT4

@xiaozhihong xiaozhihong changed the title Support set the ice-ufrag and ice-pwd for connectivity check Support set the ice-ufrag and ice-pwd for connectivity check. v5.0.191 v6.0.91 Oct 17, 2023
@xiaozhihong xiaozhihong added the RefinedByAI Refined by AI/GPT. label Oct 17, 2023
@xiaozhihong xiaozhihong merged commit bb94d0f into ossrs:develop Oct 17, 2023
17 checks passed
xiaozhihong added a commit that referenced this pull request Oct 17, 2023
#3837)

Checking the HTTPS API or UDP connectivity for WHIP tests can be
difficult. For example, if the UDP port isn't available but the API is
fine, OBS only says it can't connect to the server. It's hard to see the
HTTPS API response or check if the UDP port is available.

This feature lets you set the ice username and password in SRS. You can
then send a STUN request using nc and see the response, making it easier
to check UDP port connectivity.

1. Use curl to test the WHIP API, including ice-frag and ice-pwd
queries.
2. Use nc to send a STUN binding request to test UDP connectivity.
3. If both the API and UDP are working, you should get a STUN response.

---------

Co-authored-by: john <hondaxiao@tencent.com>
duiniuluantanqin pushed a commit to duiniuluantanqin/srs that referenced this pull request Oct 27, 2023
ossrs#3837)

Checking the HTTPS API or UDP connectivity for WHIP tests can be
difficult. For example, if the UDP port isn't available but the API is
fine, OBS only says it can't connect to the server. It's hard to see the
HTTPS API response or check if the UDP port is available.

This feature lets you set the ice username and password in SRS. You can
then send a STUN request using nc and see the response, making it easier
to check UDP port connectivity.

1. Use curl to test the WHIP API, including ice-frag and ice-pwd
queries.
2. Use nc to send a STUN binding request to test UDP connectivity.
3. If both the API and UDP are working, you should get a STUN response.

---------

Co-authored-by: john <hondaxiao@tencent.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EnglishNative This issue is conveyed exclusively in English. RefinedByAI Refined by AI/GPT.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants