From e1e96cd997bd65fe480f06eaf648eebb96d3565a Mon Sep 17 00:00:00 2001 From: Robert Adams Date: Sun, 3 Nov 2024 01:27:16 +0000 Subject: [PATCH] Create directories and separate DLLs for the various modules and services. --- Janus/WebRtcJanus.csproj | 117 +++++++++++++++++ .../WebRtcJanusService.cs | 0 .../IWebRtcVoiceService.cs | 0 WebRtcVoice/WebRtcJanusService.cs | 47 +++++++ WebRtcVoice/WebRtcVoice.csproj | 121 ++++++++++++++++++ .../WebRtcVoiceConnector.cs | 0 .../WebRtcVoiceService.cs | 0 .../WebRtcVoiceModule.cs | 0 WebRtcVoiceModule/WebRtcVoiceModule.csproj | 117 +++++++++++++++++ .../WebRtcVoiceServiceModule.cs | 2 +- .../WebRtcVoiceServiceModule.csproj | 117 +++++++++++++++++ os-webrtc-janus.ini | 6 +- prebuild.xml => prebuild-janus.xml | 14 +- prebuild-servicemodule.xml | 45 +++++++ prebuild-webrtc.xml | 47 +++++++ 15 files changed, 623 insertions(+), 10 deletions(-) create mode 100644 Janus/WebRtcJanus.csproj rename WebRtcJanusService.cs => Janus/WebRtcJanusService.cs (100%) rename IWebRtcVoiceService.cs => WebRtcVoice/IWebRtcVoiceService.cs (100%) create mode 100644 WebRtcVoice/WebRtcJanusService.cs create mode 100644 WebRtcVoice/WebRtcVoice.csproj rename WebRtcVoiceConnector.cs => WebRtcVoice/WebRtcVoiceConnector.cs (100%) rename WebRtcVoiceService.cs => WebRtcVoice/WebRtcVoiceService.cs (100%) rename WebRTCVoiceModule.cs => WebRtcVoiceModule/WebRtcVoiceModule.cs (100%) create mode 100644 WebRtcVoiceModule/WebRtcVoiceModule.csproj rename WebRtcVoiceServiceModule.cs => WebRtcVoiceServiceModule/WebRtcVoiceServiceModule.cs (98%) create mode 100644 WebRtcVoiceServiceModule/WebRtcVoiceServiceModule.csproj rename prebuild.xml => prebuild-janus.xml (77%) create mode 100755 prebuild-servicemodule.xml create mode 100755 prebuild-webrtc.xml diff --git a/Janus/WebRtcJanus.csproj b/Janus/WebRtcJanus.csproj new file mode 100644 index 0000000..dfb3ecc --- /dev/null +++ b/Janus/WebRtcJanus.csproj @@ -0,0 +1,117 @@ + + + + net8.0 + false + Library + false + disable + WebRtcJanus + true + false + false + true + false + + + + True + 285212672 + + + TRACE + + True + 4096 + False + false + True + False + False + ../../../bin/ + False + False + False + 4 + False + CA1416,SYSLIB0011,SYSLIB0014,SYSLIB0039 + AnyCPU + + + True + 285212672 + + + + + False + 4096 + True + false + True + False + False + ../../../bin/ + False + False + False + 4 + False + CA1416,SYSLIB0011,SYSLIB0014,SYSLIB0039 + AnyCPU + + + + log4net + /home/opensim/opensim-mb/bin/log4net.dll + False + + + Mono.Addins + ../../../bin/Mono.Addins.dll + False + + + Nini + /home/opensim/opensim-mb/bin/Nini.dll + False + + + OpenMetaverse + /home/opensim/opensim-mb/bin/OpenMetaverse.dll + False + + + OpenMetaverse.StructuredData + /home/opensim/opensim-mb/bin/OpenMetaverse.StructuredData.dll + False + + + OpenMetaverseTypes + /home/opensim/opensim-mb/bin/OpenMetaverseTypes.dll + False + + + WebRtcVoice + /home/opensim/opensim-mb/bin/WebRtcVoice.dll + False + + + + + + + + + + + + + + + + + Code + + + diff --git a/WebRtcJanusService.cs b/Janus/WebRtcJanusService.cs similarity index 100% rename from WebRtcJanusService.cs rename to Janus/WebRtcJanusService.cs diff --git a/IWebRtcVoiceService.cs b/WebRtcVoice/IWebRtcVoiceService.cs similarity index 100% rename from IWebRtcVoiceService.cs rename to WebRtcVoice/IWebRtcVoiceService.cs diff --git a/WebRtcVoice/WebRtcJanusService.cs b/WebRtcVoice/WebRtcJanusService.cs new file mode 100644 index 0000000..1951b34 --- /dev/null +++ b/WebRtcVoice/WebRtcJanusService.cs @@ -0,0 +1,47 @@ +// Copyright 2024 Robert Adams (misterblue@misterblue.com) +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System.Reflection; + +using OpenSim.Framework; +using OpenSim.Services.Interfaces; +using OpenSim.Services.Base; + +using OpenMetaverse.StructuredData; +using OpenMetaverse; + +using Nini.Config; +using log4net; + +namespace WebRtcVoice + { + public class WebRtcJanusService : ServiceBase, IWebRtcVoiceService + { + private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); + private static readonly string LogHeader = "[WEBRTC JANUS SERVICE]"; + + public WebRtcJanusService(IConfigSource pConfig) : base(pConfig) + { + m_log.DebugFormat("{0} WebRtcJanusService constructor", LogHeader); + } + + public OSDMap ProvisionVoiceAccountRequest(OSDMap pRequest, UUID pUserID, IScene pScene) + { + throw new System.NotImplementedException(); + } + + public OSDMap VoiceSignalingRequest(OSDMap pRequest, UUID pUserID, IScene pScene) + { + throw new System.NotImplementedException(); + } + } + } diff --git a/WebRtcVoice/WebRtcVoice.csproj b/WebRtcVoice/WebRtcVoice.csproj new file mode 100644 index 0000000..22f575c --- /dev/null +++ b/WebRtcVoice/WebRtcVoice.csproj @@ -0,0 +1,121 @@ + + + + net8.0 + false + Library + false + disable + WebRtcVoice + true + false + false + true + false + + + + True + 285212672 + + + TRACE + + True + 4096 + False + false + True + False + False + ../../../bin/ + False + False + False + 4 + False + CA1416,SYSLIB0011,SYSLIB0014,SYSLIB0039 + AnyCPU + + + True + 285212672 + + + + + False + 4096 + True + false + True + False + False + ../../../bin/ + False + False + False + 4 + False + CA1416,SYSLIB0011,SYSLIB0014,SYSLIB0039 + AnyCPU + + + + log4net + /home/opensim/opensim-mb/bin/log4net.dll + False + + + Mono.Addins + ../../../bin/Mono.Addins.dll + False + + + Nini + /home/opensim/opensim-mb/bin/Nini.dll + False + + + OpenMetaverse + /home/opensim/opensim-mb/bin/OpenMetaverse.dll + False + + + OpenMetaverse.StructuredData + /home/opensim/opensim-mb/bin/OpenMetaverse.StructuredData.dll + False + + + OpenMetaverseTypes + /home/opensim/opensim-mb/bin/OpenMetaverseTypes.dll + False + + + + + + + + + + + + + + + + + Code + + + Code + + + Code + + + Code + + + diff --git a/WebRtcVoiceConnector.cs b/WebRtcVoice/WebRtcVoiceConnector.cs similarity index 100% rename from WebRtcVoiceConnector.cs rename to WebRtcVoice/WebRtcVoiceConnector.cs diff --git a/WebRtcVoiceService.cs b/WebRtcVoice/WebRtcVoiceService.cs similarity index 100% rename from WebRtcVoiceService.cs rename to WebRtcVoice/WebRtcVoiceService.cs diff --git a/WebRTCVoiceModule.cs b/WebRtcVoiceModule/WebRtcVoiceModule.cs similarity index 100% rename from WebRTCVoiceModule.cs rename to WebRtcVoiceModule/WebRtcVoiceModule.cs diff --git a/WebRtcVoiceModule/WebRtcVoiceModule.csproj b/WebRtcVoiceModule/WebRtcVoiceModule.csproj new file mode 100644 index 0000000..e20b72d --- /dev/null +++ b/WebRtcVoiceModule/WebRtcVoiceModule.csproj @@ -0,0 +1,117 @@ + + + + net8.0 + false + Library + false + disable + WebRtcVoiceModule + true + false + false + true + false + + + + True + 285212672 + + + TRACE + + True + 4096 + False + false + True + False + False + ../../../bin/ + False + False + False + 4 + False + CA1416,SYSLIB0011,SYSLIB0014,SYSLIB0039 + AnyCPU + + + True + 285212672 + + + + + False + 4096 + True + false + True + False + False + ../../../bin/ + False + False + False + 4 + False + CA1416,SYSLIB0011,SYSLIB0014,SYSLIB0039 + AnyCPU + + + + log4net + /home/opensim/opensim-mb/bin/log4net.dll + False + + + Mono.Addins + ../../../bin/Mono.Addins.dll + False + + + Nini + /home/opensim/opensim-mb/bin/Nini.dll + False + + + OpenMetaverse + /home/opensim/opensim-mb/bin/OpenMetaverse.dll + False + + + OpenMetaverse.StructuredData + /home/opensim/opensim-mb/bin/OpenMetaverse.StructuredData.dll + False + + + OpenMetaverseTypes + /home/opensim/opensim-mb/bin/OpenMetaverseTypes.dll + False + + + WebRtcVoice + /home/opensim/opensim-mb/bin/WebRtcVoice.dll + False + + + + + + + + + + + + + + + + + Code + + + diff --git a/WebRtcVoiceServiceModule.cs b/WebRtcVoiceServiceModule/WebRtcVoiceServiceModule.cs similarity index 98% rename from WebRtcVoiceServiceModule.cs rename to WebRtcVoiceServiceModule/WebRtcVoiceServiceModule.cs index ee05a0a..870ebbd 100644 --- a/WebRtcVoiceServiceModule.cs +++ b/WebRtcVoiceServiceModule/WebRtcVoiceServiceModule.cs @@ -87,7 +87,7 @@ namespace WebRtcVoice // ISharedRegionModule.Name public string Name { - get { return "WebRtcVoiceModule"; } + get { return "WebRtcVoiceServiceModule"; } } // ISharedRegionModule.AddRegion diff --git a/WebRtcVoiceServiceModule/WebRtcVoiceServiceModule.csproj b/WebRtcVoiceServiceModule/WebRtcVoiceServiceModule.csproj new file mode 100644 index 0000000..0d941b2 --- /dev/null +++ b/WebRtcVoiceServiceModule/WebRtcVoiceServiceModule.csproj @@ -0,0 +1,117 @@ + + + + net8.0 + false + Library + false + disable + WebRtcVoiceServiceModule + true + false + false + true + false + + + + True + 285212672 + + + TRACE + + True + 4096 + False + false + True + False + False + ../../../bin/ + False + False + False + 4 + False + CA1416,SYSLIB0011,SYSLIB0014,SYSLIB0039 + AnyCPU + + + True + 285212672 + + + + + False + 4096 + True + false + True + False + False + ../../../bin/ + False + False + False + 4 + False + CA1416,SYSLIB0011,SYSLIB0014,SYSLIB0039 + AnyCPU + + + + log4net + /home/opensim/opensim-mb/bin/log4net.dll + False + + + Mono.Addins + ../../../bin/Mono.Addins.dll + False + + + Nini + /home/opensim/opensim-mb/bin/Nini.dll + False + + + OpenMetaverse + /home/opensim/opensim-mb/bin/OpenMetaverse.dll + False + + + OpenMetaverse.StructuredData + /home/opensim/opensim-mb/bin/OpenMetaverse.StructuredData.dll + False + + + OpenMetaverseTypes + /home/opensim/opensim-mb/bin/OpenMetaverseTypes.dll + False + + + WebRtcVoice + /home/opensim/opensim-mb/bin/WebRtcVoice.dll + False + + + + + + + + + + + + + + + + + Code + + + diff --git a/os-webrtc-janus.ini b/os-webrtc-janus.ini index f857cf4..210c475 100644 --- a/os-webrtc-janus.ini +++ b/os-webrtc-janus.ini @@ -1,11 +1,11 @@ [WebRtcVoice] Enabled=true ; Module to load for WebRtcVoice - BaseService=OpenSim.Services.WebRtcVoiceService.dll:WebRtcVoiceService + BaseService=WebRtcVoice.dll:WebRtcVoiceService ; Module to use for spacial WebRtcVoice - SpacialVoiceService=OpenSim.Services.WebRtcVoiceService.dll:WebRtcJanusService + SpacialVoiceService=WebRtcJanus.dll:WebRtcJanusService ; Module to use for non-spacial WebRtcVoice - NonSpacialVoiceService=OpenSim.Services.WebRtcVoiceService.dll:WebRtcJanusService + NonSpacialVoiceService=WebRtcJanus.dll:WebRtcJanusService ; URL for the grid service that is providing the WebRtcVoiceService WebRtcVoiceServerURI = ${Const|PrivURL}:${Const|PrivatePort} diff --git a/prebuild.xml b/prebuild-janus.xml similarity index 77% rename from prebuild.xml rename to prebuild-janus.xml index b1a387d..04df32d 100755 --- a/prebuild.xml +++ b/prebuild-janus.xml @@ -1,22 +1,22 @@ - ../../bin/ + ../../../bin/ true - ../../bin/ + ../../../bin/ true - ../../bin/ + ../../../bin/ @@ -30,7 +30,9 @@ - + + + diff --git a/prebuild-servicemodule.xml b/prebuild-servicemodule.xml new file mode 100755 index 0000000..1fcd998 --- /dev/null +++ b/prebuild-servicemodule.xml @@ -0,0 +1,45 @@ + + + + + ../../../bin/ + + + + + ../../../bin/ + + + + ../../../bin/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/prebuild-webrtc.xml b/prebuild-webrtc.xml new file mode 100755 index 0000000..f6524c8 --- /dev/null +++ b/prebuild-webrtc.xml @@ -0,0 +1,47 @@ + + + + + ../../../bin/ + true + + + + + ../../../bin/ + true + + + + ../../../bin/ + + + + + + + + + + + + + + + + + + + + + + + + + + + +