Adding main config to the plugin init
Fix llGetSimulatorHostname to return configured hostname
Fix llGetSimulatorHostname to return configured hostname
Format cleanup
Environment Module - allows Environment settings for Viewer3 warning: includes database region store migrations for mssql, mysql, sqlite

enable/disable this module:
Cap_EnvironmentSettings = "localhost" (for enable)
Cap_EnvironmentSettings = "" (for disable) at ClientStack.LindenCaps section (OpenSimDefaults.ini file)
 or owerwrite in OpenSim.ini

mantis: http://opensimulator.org/mantis/view.php?id=5860

Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
Merge branch 'master' of /home/opensim/var/repo/opensim
Merge branch 'master' of /home/opensim/src/OpenSim
If an agent is still registered as 'in transit' by the source region, don't allow an immediate teleport back.

This is to help relieve a race condition when an agent teleports then immediately attempts to teleport back before the source region has properly cleaned up/demoted the old ScenePresence.
This is rare in viewers but much more possible via scripting or region module.
However, more needs to be done since virtually all clean up happens after the transit flag is cleared .
Possibly need to add a 'cleaning up' state to in transit.
This change required making the EntityTransferModule and HGEntityTransferModule per-region rather than shared, in order to allow separate transit lists.
Changes were also required in LocalSimulationConnector.
Tested in standalone, grid and with local and remote region crossings with attachments.
Make ISimulationScene.GetScene() used the more efficient region id for lookup rather than the region handle.
Comment out accidentally left in log line that was printing out the control file on OAR save
Merge branch 'master' of /home/opensim/var/repo/opensim
porting IDE tooltip-friendly documentation tweaks from Aurora-Sim

Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
adding status codes from rfc 6585

Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
Merge branch 'master' of /home/opensim/var/repo/opensim
Fix issue where a dns resolution failure on the final destination might leave the user unable to teleport since the transit flag was not being reset.

This moves the 'already in transit' check further up and resets the flag if dns resolution fails and in the new required places.
Now that the EntityTransferModule is per-region, fetch the event queue module once rather than repeatedly via scene presences
On inter-region teleport, only stand the avatar up if the QueryAccess call to the destination scene actually succeeds.
Don't actually proceed on a within-region teleport if another is already taking place, rather than just (falsely) logging that we're not going to proceed.

An oversight from recent commit 9ab0c81
Merge branch 'master' of /home/opensim/var/repo/opensim
In remote QueryAccess, also receive the actual status (true|false) instead of always true no matter what the callee actually returned.

This was due to two things
1) SimulationServiceConnector.QueryAccess was always looking to the outer result["success"].
But if a "_Result" map is returned (which is certainly the case right now), then the true success is _Result["success"], result["success"] is always true no matter what
2) If QueryAccess was false at the destination, then AgentHandlers.DoQueryAccess() was never putting this in the result.
The default action of SerializeJsonString() is not to put false booleans in the JSON!!!, so this has to be explicitly set.