diff options
Diffstat (limited to 'OpenSim/Services/FreeswitchService/FreeswitchService.cs')
-rw-r--r-- | OpenSim/Services/FreeswitchService/FreeswitchService.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/OpenSim/Services/FreeswitchService/FreeswitchService.cs b/OpenSim/Services/FreeswitchService/FreeswitchService.cs index b62a65a..21518f3 100644 --- a/OpenSim/Services/FreeswitchService/FreeswitchService.cs +++ b/OpenSim/Services/FreeswitchService/FreeswitchService.cs | |||
@@ -34,6 +34,7 @@ using OpenSim.Framework; | |||
34 | using OpenSim.Data; | 34 | using OpenSim.Data; |
35 | using OpenSim.Services.Interfaces; | 35 | using OpenSim.Services.Interfaces; |
36 | using OpenMetaverse; | 36 | using OpenMetaverse; |
37 | using OpenMetaverse.StructuredData; | ||
37 | using System.Collections; | 38 | using System.Collections; |
38 | 39 | ||
39 | namespace OpenSim.Services.FreeswitchService | 40 | namespace OpenSim.Services.FreeswitchService |
@@ -384,5 +385,24 @@ namespace OpenSim.Services.FreeswitchService | |||
384 | 385 | ||
385 | return response; | 386 | return response; |
386 | } | 387 | } |
388 | |||
389 | public string GetJsonConfig() | ||
390 | { | ||
391 | OSDMap map = new OSDMap(11); | ||
392 | |||
393 | map.Add("Realm", m_freeSwitchRealm); | ||
394 | map.Add("SIPProxy", m_freeSwitchSIPProxy); | ||
395 | map.Add("AttemptUseSTUN", m_freeSwitchAttemptUseSTUN); | ||
396 | map.Add("EchoServer", m_freeSwitchEchoServer); | ||
397 | map.Add("EchoPort", m_freeSwitchEchoPort); | ||
398 | map.Add("DefaultWellKnownIP", m_freeSwitchDefaultWellKnownIP); | ||
399 | map.Add("DefaultTimeout", m_freeSwitchDefaultTimeout); | ||
400 | map.Add("Context", m_freeSwitchContext); | ||
401 | map.Add("ServerUser", m_freeSwitchServerUser); | ||
402 | map.Add("ServerPass", m_freeSwitchServerPass); | ||
403 | map.Add("APIPrefix", m_freeSwitchAPIPrefix); | ||
404 | |||
405 | return OSDParser.SerializeJsonString(map); | ||
406 | } | ||
387 | } | 407 | } |
388 | } | 408 | } |