31 using System.Collections;
32 using System.Reflection;
34 using OpenSim.Framework;
36 using OpenSim.Services.Interfaces;
37 using OpenSim.Server.Base;
40 namespace OpenSim.Services.Connectors
44 private static readonly ILog m_log =
46 MethodBase.GetCurrentMethod().DeclaringType);
48 private string m_ServerURI = String.Empty;
56 m_ServerURI = serverURI.TrimEnd(
'/') +
"/region-config";
66 IConfig freeswitchConfig = source.Configs[
"FreeSwitchVoice"];
67 if (freeswitchConfig == null)
69 m_log.Error(
"[FREESWITCH CONNECTOR]: FreeSwitchVoice missing from OpenSim.ini");
70 throw new Exception(
"Freeswitch connector init error");
73 string serviceURI = freeswitchConfig.GetString(
"FreeswitchServiceURL",
76 if (serviceURI == String.Empty)
78 m_log.Error(
"[FREESWITCH CONNECTOR]: No FreeswitchServiceURL named in section FreeSwitchVoice");
79 throw new Exception(
"Freeswitch connector init error");
81 m_ServerURI = serviceURI.TrimEnd(
'/') +
"/region-config";
87 return new Hashtable();
93 return new Hashtable();
98 m_log.DebugFormat(
"[FREESWITCH CONNECTOR]: Requesting config from {0}", m_ServerURI);
99 return SynchronousRestFormsRequester.MakeRequest(
"GET",
100 m_ServerURI, String.Empty);
RemoteFreeswitchConnector(string serverURI)
RemoteFreeswitchConnector()
virtual void Initialise(IConfigSource source)
RemoteFreeswitchConnector(IConfigSource source)
Hashtable HandleDialplanRequest(Hashtable requestBody)
Hashtable HandleDirectoryRequest(Hashtable requestBody)