Closed madmath03 closed 4 years ago
Ejabberd does not seem to setup one (correct me if I'm wrong).
Yes, ejabberd uses the configured (XMPP) authentication backend for STUN/TURN.
I would like a parameter for listening module
ejabberd_stun
to set a TURN REST API secret.
If STUN/TURN is to be used in the context of XMPP, it seems more obvious to add support for XEP-0215.
Forgive if I'm going to say something stupid, kind of new to the XMPP environment, but I do not see how external service discovery would solve the use case I mentioned. By that I mean that the XMPP client needs to implement XEP-0215, ie send a request for credentials. So clients, like JSXC, would also need an evolution to support this, am I right ?
Otherwise, I do agree that the XEP-0215 spec is directly related to TURN REST API suggested so that seems like a good thing to implement :+1:
So clients, like JSXC, would also need an evolution to support this, am I right ?
Yes. Just like support for querying some REST API would have to be added; unless they (or the libraries they're using) already do that (dunno). The Jingle clients I'm aware of just specify the user's XMPP credentials for STUN/TURN, as currently expected by ejabberd.
No news in this ticket for two months, I guess it's either solved or isn't relevant anymore.
@badlop wait, what ? As discussed with @weiss, this ticket pretty much ended up as a feature request to support XEP-0215. As far as I know, the XEP-0215 support has not been added to Ejabberd, so why close it if "no news" since the news would be on processone side ??
@madmath03 please stop behaving like you own ProcessOne. The ticket was not assigned to anyone, which means nobody in ProcessOne is interested in the feature. I personally don't like the mentioned XEP because there is a standardized mechanism to discover STUN/TURN servers (RFC5389, Section 9). And in regards to authentication: ejabberd supports Long-Term Credential Mechanism to authenticate against existing accounts. If you need more features you're better off to use standalone feature rich STUN/TURN server.
@zinid I absolutely did not think that I own ProcessOne 😅 Simply the message from @badlop made me think that they were expecting news from me to advance further on the subject, not that the feature will be dropped because no one consider it worthwhile. Your answer in that regard gives a better explanation on the reason to close this, so thanks for that.
Is your feature request related to a problem? Please describe. Several (if not all) WebRTC clients, like NextCloud Talk or JavaScript XMPP Chat, ask for a TURN secret to authenticate but Ejabberd does not seem to setup one (correct me if I'm wrong).
Describe the solution you'd like I would like a parameter for listening module
ejabberd_stun
to set a TURN REST API secret. I'm guessingauth_type
should also be updated to allow asecret
type. Configuration could look like that:As reference, same function but from the coturn doc:
Describe alternatives you've considered Not using ejabberd for STUN/TURN ? 😅
Additional context NA