Add the login server as STUN server to spark.properties
Description
Environment
Activity
Walter Ebeling June 22, 2011 at 6:02 PM
Mass closing of all bugs resoved during 2.6.0 and 2.6.1
wroot June 7, 2011 at 3:37 AM
This is how it was called by original developers in Spark, i think. Maybe it has some special meaning. It is the only stun server available in Spark. You can set stun fallback server in Preferences > Media Settings (use the latest build from http://bamboo.igniterealtime.org/browse/SPARK-INSTALL4J-387/artifact/Install4j). You can also put it manually into spark.properties file like "stunFallbackHost=servername". Not sure whether Spark will use several servers or just the first one. Admin can enable stun services in Openfire via Media Services > STUN settings, so Openfire would act as a STUN server, and he can also add one or more external stun servers so Openfire will send the list to a client. But i don't know whether Spark is able to receive that list and will it use only one server or try all of them. Anyway, enabling stun on a server is not enough, every Spark user has to add their own Openfire server or an external stun server to their preferences or it won't work. In 2.5.8 version one external stun server was hard coded so it was always working out of the box, but this is a security issue for many companies, when a client is constantly trying to establish a connection with some not trusted third party server. So it has been removed.
Harald Steindl June 6, 2011 at 7:31 PM
Correct me if I am wrong, but doesn't the term FALLBACK indicate that it's kind of a backup.
So, what's wrong with defaulting it to the login server but being able to specify it via the user accessible properties?
At the moment it looks to me that stunFallbackHost is instead "StunServerToUse" as there is no other place to specify any STUN server, right?
So before going religious about the fallback we should specify the non-fallback case IMHO.
WHERE and HOW can the user or the admin specify one or more STUN servers to use?
Walter Ebeling May 20, 2011 at 5:58 AM
Can you add a field for STUN fall back service in preferences? Default should be empty.
wroot May 14, 2011 at 2:22 PM
Obviously Spark should only add this line if it is not already there. Maybe someone will want to use external STUN server, so it shouldn't overwrite existing value.
I was able to get back a Call to PC button on my Spark 2.6.0 by enabling STUN service on Openfire and then adding
stunFallbackHost=my_servername
to spark.properties
Wonder. Maybe we can do this automatically (adding a fallback string with login server's name), so one will only need to enable STUN on their server to make Call button appear in all Spark clients logged in to that server.