-
Notifications
You must be signed in to change notification settings - Fork 75
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
TURN REST API: Error parsing API from Janus #891
Comments
If you increase the log level in Janus, you should see what was received: |
I modified nothing from the request with curl and wget to get the response from
Even tried 127.0.0.1 instead of localhost with no avail... |
There is no code path that returns an empty response for the TURN endpoint, even in case of errors - so I'm a bit lost as to why Janus seems to receive 0 bytes. Which version of Janus and libcurl is this? Could you configure the frontend webserver address of your signaling server in Janus and check the webserver log? Maybe this shows some more details. |
CC @fancycode
Issue number one: The TURN REST API capability provided by the signaling server is not well documented, when one must use TURN with Janus.
nextcloud-spreed-signaling/backend_server.go
Line 180 in 4e34e97
Documentation should specify correctly that they should add the
turn_rest_api
option in Janus pointing to/turn/credentials
forjanus.jcfg
in order to utilzeturn_rest_api_key
:Issue number two:
Directly accessing
http://localhost:8080/turn/credentials?service=turn&api=<REDACTED>&key=<REDACTED>&username=example
(same format as https://github.com/meetecho/janus-gateway/blob/dc8323741043a75537fb770d42ca37498a3d8947/src/turnrest.c#L140) results correctly in:{"username":"1700000000:example","password":"<REDACTED>","ttl":86400,"uris":["turn:turn.myurl.invalid:3478?transport=udp","turn:turn.myurl.invalid:3478?transport=tcp"]}
But in Janus:
Therefore, the TURN REST API is not usable, possibly an empty response for some reason?
The text was updated successfully, but these errors were encountered: