From 108c17718a031d555bae31d2a8358b17bfa8da01 Mon Sep 17 00:00:00 2001 From: Brian West Date: Mon, 18 Jan 2010 04:30:48 +0000 Subject: [PATCH] ESL Mangaged examples and solution file for esl.dll git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16353 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/esl/managed/ESL.vcproj | 214 ++++++++++++++++++ libs/esl/managed/ManagedEsl.csproj | 56 +++++ .../ManagedEslTest/ManagedEslTest.csproj | 58 +++++ libs/esl/managed/ManagedEslTest/Program.cs | 23 ++ .../ManagedEslTest/Properties/AssemblyInfo.cs | 36 +++ libs/esl/managed/Properties/AssemblyInfo.cs | 36 +++ libs/esl/managed/managed_esl.2008.sln | 60 +++++ 7 files changed, 483 insertions(+) create mode 100644 libs/esl/managed/ESL.vcproj create mode 100644 libs/esl/managed/ManagedEsl.csproj create mode 100644 libs/esl/managed/ManagedEslTest/ManagedEslTest.csproj create mode 100644 libs/esl/managed/ManagedEslTest/Program.cs create mode 100644 libs/esl/managed/ManagedEslTest/Properties/AssemblyInfo.cs create mode 100644 libs/esl/managed/Properties/AssemblyInfo.cs create mode 100644 libs/esl/managed/managed_esl.2008.sln diff --git a/libs/esl/managed/ESL.vcproj b/libs/esl/managed/ESL.vcproj new file mode 100644 index 0000000000..deadbe1967 --- /dev/null +++ b/libs/esl/managed/ESL.vcproj @@ -0,0 +1,214 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/libs/esl/managed/ManagedEsl.csproj b/libs/esl/managed/ManagedEsl.csproj new file mode 100644 index 0000000000..25491c73f7 --- /dev/null +++ b/libs/esl/managed/ManagedEsl.csproj @@ -0,0 +1,56 @@ + + + + Debug + AnyCPU + 9.0.30729 + 2.0 + {DEE5837B-E01D-4223-B351-EDF9418F3F8E} + Library + Properties + ManagedEsl + ManagedEsl + v2.0 + 512 + + + + + true + full + false + Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/libs/esl/managed/ManagedEslTest/ManagedEslTest.csproj b/libs/esl/managed/ManagedEslTest/ManagedEslTest.csproj new file mode 100644 index 0000000000..c311fd7476 --- /dev/null +++ b/libs/esl/managed/ManagedEslTest/ManagedEslTest.csproj @@ -0,0 +1,58 @@ + + + + Debug + AnyCPU + 9.0.30729 + 2.0 + {2321D01A-D64B-4461-9837-FACF38652212} + Exe + Properties + ManagedEslTest + ManagedEslTest + v2.0 + 512 + + + + + true + full + false + ..\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + ..\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + {DEE5837B-E01D-4223-B351-EDF9418F3F8E} + ManagedEsl + True + + + + + \ No newline at end of file diff --git a/libs/esl/managed/ManagedEslTest/Program.cs b/libs/esl/managed/ManagedEslTest/Program.cs new file mode 100644 index 0000000000..dcf779b414 --- /dev/null +++ b/libs/esl/managed/ManagedEslTest/Program.cs @@ -0,0 +1,23 @@ +using System; + +namespace ManagedEslTest +{ + class Program + { + static void Main(string[] args) + { + // Connect to FreeSWITCH + ESLconnection eslConnection = new ESLconnection("localhost", "8021", "ClueCon"); + // We want all Events (probably will want to change this depending on your needs) + eslConnection.sendRecv("event plain ALL"); + + + // Grab Events until process is killed + while (eslConnection.connected() == 1) + { + ESLevent eslEvent = eslConnection.recvEvent(); + Console.WriteLine(eslEvent.serialize(String.Empty)); + } + } + } +} diff --git a/libs/esl/managed/ManagedEslTest/Properties/AssemblyInfo.cs b/libs/esl/managed/ManagedEslTest/Properties/AssemblyInfo.cs new file mode 100644 index 0000000000..2d46d2ab12 --- /dev/null +++ b/libs/esl/managed/ManagedEslTest/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("ManagedEslTest")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("ManagedEslTest")] +[assembly: AssemblyCopyright("Copyright © 2010")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("a5c8de92-fc6b-4fb5-840a-89d531bb64ec")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/libs/esl/managed/Properties/AssemblyInfo.cs b/libs/esl/managed/Properties/AssemblyInfo.cs new file mode 100644 index 0000000000..433b35bbc3 --- /dev/null +++ b/libs/esl/managed/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("ManagedEsl")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("ManagedEsl")] +[assembly: AssemblyCopyright("Copyright © 2010")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("aae64db9-9847-4c9e-9d83-a5a6e8fb8a09")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/libs/esl/managed/managed_esl.2008.sln b/libs/esl/managed/managed_esl.2008.sln new file mode 100644 index 0000000000..fd5f490d5a --- /dev/null +++ b/libs/esl/managed/managed_esl.2008.sln @@ -0,0 +1,60 @@ + +Microsoft Visual Studio Solution File, Format Version 10.00 +# Visual Studio 2008 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ESL", "ESL.vcproj", "{FEA2D0AE-6713-4E41-A473-A143849BC7FF}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ManagedEsl", "ManagedEsl.csproj", "{DEE5837B-E01D-4223-B351-EDF9418F3F8E}" + ProjectSection(ProjectDependencies) = postProject + {FEA2D0AE-6713-4E41-A473-A143849BC7FF} = {FEA2D0AE-6713-4E41-A473-A143849BC7FF} + EndProjectSection +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ManagedEslTest", "ManagedEslTest\ManagedEslTest.csproj", "{2321D01A-D64B-4461-9837-FACF38652212}" + ProjectSection(ProjectDependencies) = postProject + {FEA2D0AE-6713-4E41-A473-A143849BC7FF} = {FEA2D0AE-6713-4E41-A473-A143849BC7FF} + EndProjectSection +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|Mixed Platforms = Debug|Mixed Platforms + Debug|Win32 = Debug|Win32 + Release|Any CPU = Release|Any CPU + Release|Mixed Platforms = Release|Mixed Platforms + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {FEA2D0AE-6713-4E41-A473-A143849BC7FF}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {FEA2D0AE-6713-4E41-A473-A143849BC7FF}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {FEA2D0AE-6713-4E41-A473-A143849BC7FF}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {FEA2D0AE-6713-4E41-A473-A143849BC7FF}.Debug|Win32.ActiveCfg = Debug|Win32 + {FEA2D0AE-6713-4E41-A473-A143849BC7FF}.Debug|Win32.Build.0 = Debug|Win32 + {FEA2D0AE-6713-4E41-A473-A143849BC7FF}.Release|Any CPU.ActiveCfg = Release|Win32 + {FEA2D0AE-6713-4E41-A473-A143849BC7FF}.Release|Mixed Platforms.ActiveCfg = Release|Win32 + {FEA2D0AE-6713-4E41-A473-A143849BC7FF}.Release|Mixed Platforms.Build.0 = Release|Win32 + {FEA2D0AE-6713-4E41-A473-A143849BC7FF}.Release|Win32.ActiveCfg = Release|Win32 + {FEA2D0AE-6713-4E41-A473-A143849BC7FF}.Release|Win32.Build.0 = Release|Win32 + {DEE5837B-E01D-4223-B351-EDF9418F3F8E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DEE5837B-E01D-4223-B351-EDF9418F3F8E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DEE5837B-E01D-4223-B351-EDF9418F3F8E}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {DEE5837B-E01D-4223-B351-EDF9418F3F8E}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {DEE5837B-E01D-4223-B351-EDF9418F3F8E}.Debug|Win32.ActiveCfg = Debug|Any CPU + {DEE5837B-E01D-4223-B351-EDF9418F3F8E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DEE5837B-E01D-4223-B351-EDF9418F3F8E}.Release|Any CPU.Build.0 = Release|Any CPU + {DEE5837B-E01D-4223-B351-EDF9418F3F8E}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {DEE5837B-E01D-4223-B351-EDF9418F3F8E}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {DEE5837B-E01D-4223-B351-EDF9418F3F8E}.Release|Win32.ActiveCfg = Release|Any CPU + {2321D01A-D64B-4461-9837-FACF38652212}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2321D01A-D64B-4461-9837-FACF38652212}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2321D01A-D64B-4461-9837-FACF38652212}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {2321D01A-D64B-4461-9837-FACF38652212}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {2321D01A-D64B-4461-9837-FACF38652212}.Debug|Win32.ActiveCfg = Debug|Any CPU + {2321D01A-D64B-4461-9837-FACF38652212}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2321D01A-D64B-4461-9837-FACF38652212}.Release|Any CPU.Build.0 = Release|Any CPU + {2321D01A-D64B-4461-9837-FACF38652212}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {2321D01A-D64B-4461-9837-FACF38652212}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {2321D01A-D64B-4461-9837-FACF38652212}.Release|Win32.ActiveCfg = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal