all: $(MODNAME).so
$(MODNAME).so:
- gmcs -debug -unsafe -t:library -keyfile:public.snk \
- -out:Freeswitch.dll -reference:Mono.Posix.dll \
+ /usr/local/freeswitch/bin/gmcs -debug -unsafe -t:library -keyfile:public.snk \
+ -out:FreeSwitch.dll -reference:Mono.Posix.dll \
Properties/AssemblyInfo.cs \
Marshaling/Types/ApiInterfaceMarshal.cs \
Marshaling/Types/ApplicationInterfaceMarshal.cs \
Marshaling/Types/IOEventHooksMarshal.cs \
Marshaling/Types/LoadableModuleInterfaceMarshal.cs \
Marshaling/Types/LoadableModuleMarshal.cs \
+ Marshaling/Types/StreamHandleMarshal.cs \
Marshaling/Types/TypesMarshal.cs \
Marshaling/BufferMarshaler.cs \
Marshaling/CallerExtensionMarshaler.cs \
Types/ChannelTimetable.cs \
Types/CoreSession.cs \
Types/DtmfCallbackFunction.cs \
+ Types/InputCallbackFunction.cs \
+ Types/InputType.cs \
Types/Event.cs \
Types/FileHandle.cs \
Types/LoadableModule.cs \
Types/StreamHandle.cs \
Types/TextChannel.cs \
Common.cs \
- Core.cs \
- Ivr.cs \
Module.cs \
clean:
rm -fr *.dll
install:
- cp -f Freeswitch.dll /usr/local/freeswitch/lib/
+ cp -f FreeSwitch.dll /usr/local/freeswitch/lib/
*/\r
using System;\r
using System.Runtime.InteropServices;\r
-using FreeSwitch.NET.Marshaling.Types;\r
-using FreeSwitch.NET.Types;\r
+using FreeSwitch.Marshaling.Types;\r
+using FreeSwitch.Types;\r
\r
-namespace FreeSwitch.NET.Marshaling\r
+namespace FreeSwitch.Marshaling\r
{\r
class BufferMarshaler : ICustomMarshaler\r
{\r
\r
public IntPtr MarshalManagedToNative(object obj)\r
{\r
- FreeSwitch.NET.Types.Buffer buffer = (FreeSwitch.NET.Types.Buffer)obj;\r
+ FreeSwitch.Types.Buffer buffer = (FreeSwitch.Types.Buffer)obj;\r
\r
return buffer.marshaledObject.Handle;\r
}\r
\r
public object MarshalNativeToManaged(IntPtr bufferPtr)\r
{\r
- FreeSwitch.NET.Types.Buffer buffer = new FreeSwitch.NET.Types.Buffer();\r
+ FreeSwitch.Types.Buffer buffer = new FreeSwitch.Types.Buffer();\r
BufferMarshal bufferMarshal = new BufferMarshal();\r
\r
Marshal.PtrToStructure(bufferPtr, bufferMarshal);\r
-/*
- * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>
- *
- * Version: MPL 1.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- *
- * The Initial Developer of the Original Code is
- * James Martelletti <james@nerdc0re.com>
- * Portions created by the Initial Developer are Copyright (C)
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *
- * James Martelletti <james@nerdc0re.com>
- *
- *
- * CallerExtensionMarshaler.cs --
- *
+/* \r
+ * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>\r
+ *\r
+ * Version: MPL 1.1\r
+ *\r
+ * The contents of this file are subject to the Mozilla Public License Version\r
+ * 1.1 (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ * http://www.mozilla.org/MPL/\r
+ *\r
+ * Software distributed under the License is distributed on an "AS IS" basis,\r
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License\r
+ * for the specific language governing rights and limitations under the\r
+ * License.\r
+ *\r
+ * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ *\r
+ * The Initial Developer of the Original Code is\r
+ * James Martelletti <james@nerdc0re.com>\r
+ * Portions created by the Initial Developer are Copyright (C)\r
+ * the Initial Developer. All Rights Reserved.\r
+ *\r
+ * Contributor(s):\r
+ * \r
+ * James Martelletti <james@nerdc0re.com>\r
+ *\r
+ *\r
+ * CallerExtensionMarshaler.cs -- \r
+ *\r
*/\r
using System;\r
using System.Runtime.InteropServices;\r
-using FreeSwitch.NET.Types;\r
-using FreeSwitch.NET.Marshaling.Types;\r
+using FreeSwitch.Types;\r
+using FreeSwitch.Marshaling.Types;\r
\r
-namespace FreeSwitch.NET.Marshaling\r
+namespace FreeSwitch.Marshaling\r
{\r
class CallerExtensionMarshaler : ICustomMarshaler\r
{\r
-/*
- * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>
- *
- * Version: MPL 1.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- *
- * The Initial Developer of the Original Code is
- * James Martelletti <james@nerdc0re.com>
- * Portions created by the Initial Developer are Copyright (C)
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *
- * James Martelletti <james@nerdc0re.com>
- *
- *
- * CallerProfileMarshaler.cs --
- *
+/* \r
+ * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>\r
+ *\r
+ * Version: MPL 1.1\r
+ *\r
+ * The contents of this file are subject to the Mozilla Public License Version\r
+ * 1.1 (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ * http://www.mozilla.org/MPL/\r
+ *\r
+ * Software distributed under the License is distributed on an "AS IS" basis,\r
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License\r
+ * for the specific language governing rights and limitations under the\r
+ * License.\r
+ *\r
+ * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ *\r
+ * The Initial Developer of the Original Code is\r
+ * James Martelletti <james@nerdc0re.com>\r
+ * Portions created by the Initial Developer are Copyright (C)\r
+ * the Initial Developer. All Rights Reserved.\r
+ *\r
+ * Contributor(s):\r
+ * \r
+ * James Martelletti <james@nerdc0re.com>\r
+ *\r
+ *\r
+ * CallerProfileMarshaler.cs -- \r
+ *\r
*/\r
using System;\r
using System.Runtime.InteropServices;\r
-using FreeSwitch.NET.Types;\r
-using FreeSwitch.NET.Marshaling.Types;\r
+using FreeSwitch.Types;\r
+using FreeSwitch.Marshaling.Types;\r
\r
-namespace FreeSwitch.NET.Marshaling\r
+namespace FreeSwitch.Marshaling\r
{\r
class CallerProfileMarshaler : ICustomMarshaler\r
{\r
-/*
- * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>
- *
- * Version: MPL 1.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- *
- * The Initial Developer of the Original Code is
- * James Martelletti <james@nerdc0re.com>
- * Portions created by the Initial Developer are Copyright (C)
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *
- * James Martelletti <james@nerdc0re.com>
- *
- *
- * ChannelMarshaler.cs --
- *
+/* \r
+ * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>\r
+ *\r
+ * Version: MPL 1.1\r
+ *\r
+ * The contents of this file are subject to the Mozilla Public License Version\r
+ * 1.1 (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ * http://www.mozilla.org/MPL/\r
+ *\r
+ * Software distributed under the License is distributed on an "AS IS" basis,\r
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License\r
+ * for the specific language governing rights and limitations under the\r
+ * License.\r
+ *\r
+ * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ *\r
+ * The Initial Developer of the Original Code is\r
+ * James Martelletti <james@nerdc0re.com>\r
+ * Portions created by the Initial Developer are Copyright (C)\r
+ * the Initial Developer. All Rights Reserved.\r
+ *\r
+ * Contributor(s):\r
+ * \r
+ * James Martelletti <james@nerdc0re.com>\r
+ *\r
+ *\r
+ * ChannelMarshaler.cs -- \r
+ *\r
*/\r
using System;\r
using System.Runtime.InteropServices;\r
-using FreeSwitch.NET.Types;\r
-using FreeSwitch.NET.Marshaling.Types;\r
+using FreeSwitch.Types;\r
+using FreeSwitch.Marshaling.Types;\r
\r
-namespace FreeSwitch.NET.Marshaling\r
+namespace FreeSwitch.Marshaling\r
{\r
class ChannelMarshaler : ICustomMarshaler\r
{\r
-/*
- * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>
- *
- * Version: MPL 1.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- *
- * The Initial Developer of the Original Code is
- * James Martelletti <james@nerdc0re.com>
- * Portions created by the Initial Developer are Copyright (C)
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *
- * James Martelletti <james@nerdc0re.com>
- *
- *
- * ChannelTimetableMarshaler.cs --
- *
+/* \r
+ * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>\r
+ *\r
+ * Version: MPL 1.1\r
+ *\r
+ * The contents of this file are subject to the Mozilla Public License Version\r
+ * 1.1 (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ * http://www.mozilla.org/MPL/\r
+ *\r
+ * Software distributed under the License is distributed on an "AS IS" basis,\r
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License\r
+ * for the specific language governing rights and limitations under the\r
+ * License.\r
+ *\r
+ * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ *\r
+ * The Initial Developer of the Original Code is\r
+ * James Martelletti <james@nerdc0re.com>\r
+ * Portions created by the Initial Developer are Copyright (C)\r
+ * the Initial Developer. All Rights Reserved.\r
+ *\r
+ * Contributor(s):\r
+ * \r
+ * James Martelletti <james@nerdc0re.com>\r
+ *\r
+ *\r
+ * ChannelTimetableMarshaler.cs -- \r
+ *\r
*/\r
using System;\r
using System.Runtime.InteropServices;\r
-using FreeSwitch.NET.Types;\r
-using FreeSwitch.NET.Marshaling.Types;\r
+using FreeSwitch.Types;\r
+using FreeSwitch.Marshaling.Types;\r
\r
-namespace FreeSwitch.NET.Marshaling\r
+namespace FreeSwitch.Marshaling\r
{\r
class ChannelTimetableMarshaler : ICustomMarshaler\r
{\r
-/*
- * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>
- *
- * Version: MPL 1.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- *
- * The Initial Developer of the Original Code is
- * James Martelletti <james@nerdc0re.com>
- * Portions created by the Initial Developer are Copyright (C)
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *
- * James Martelletti <james@nerdc0re.com>
- *
- *
- * CoreSessionMarshaler.cs --
- *
+/* \r
+ * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>\r
+ *\r
+ * Version: MPL 1.1\r
+ *\r
+ * The contents of this file are subject to the Mozilla Public License Version\r
+ * 1.1 (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ * http://www.mozilla.org/MPL/\r
+ *\r
+ * Software distributed under the License is distributed on an "AS IS" basis,\r
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License\r
+ * for the specific language governing rights and limitations under the\r
+ * License.\r
+ *\r
+ * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ *\r
+ * The Initial Developer of the Original Code is\r
+ * James Martelletti <james@nerdc0re.com>\r
+ * Portions created by the Initial Developer are Copyright (C)\r
+ * the Initial Developer. All Rights Reserved.\r
+ *\r
+ * Contributor(s):\r
+ * \r
+ * James Martelletti <james@nerdc0re.com>\r
+ *\r
+ *\r
+ * CoreSessionMarshaler.cs -- \r
+ *\r
*/\r
using System;\r
using System.Runtime.InteropServices;\r
-using FreeSwitch.NET.Types;\r
-using FreeSwitch.NET.Marshaling.Types;\r
+using FreeSwitch.Types;\r
+using FreeSwitch.Marshaling.Types;\r
\r
-namespace FreeSwitch.NET.Marshaling\r
+namespace FreeSwitch.Marshaling\r
{\r
class CoreSessionMarshaler : ICustomMarshaler\r
{\r
-/*
- * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>
- *
- * Version: MPL 1.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- *
- * The Initial Developer of the Original Code is
- * James Martelletti <james@nerdc0re.com>
- * Portions created by the Initial Developer are Copyright (C)
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *
- * James Martelletti <james@nerdc0re.com>
- *
- *
- * EventMarshaler.cs --
- *
+/* \r
+ * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>\r
+ *\r
+ * Version: MPL 1.1\r
+ *\r
+ * The contents of this file are subject to the Mozilla Public License Version\r
+ * 1.1 (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ * http://www.mozilla.org/MPL/\r
+ *\r
+ * Software distributed under the License is distributed on an "AS IS" basis,\r
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License\r
+ * for the specific language governing rights and limitations under the\r
+ * License.\r
+ *\r
+ * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ *\r
+ * The Initial Developer of the Original Code is\r
+ * James Martelletti <james@nerdc0re.com>\r
+ * Portions created by the Initial Developer are Copyright (C)\r
+ * the Initial Developer. All Rights Reserved.\r
+ *\r
+ * Contributor(s):\r
+ * \r
+ * James Martelletti <james@nerdc0re.com>\r
+ *\r
+ *\r
+ * EventMarshaler.cs -- \r
+ *\r
*/\r
using System;\r
using System.Collections;\r
-using FreeSwitch.NET.Marshaling.Types;\r
-using FreeSwitch.NET.Types;\r
+using FreeSwitch.Marshaling.Types;\r
+using FreeSwitch.Types;\r
using System.Runtime.InteropServices;\r
\r
-namespace FreeSwitch.NET.Marshaling\r
+namespace FreeSwitch.Marshaling\r
{\r
class EventMarshaler : ICustomMarshaler\r
{\r
-/*
- * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>
- *
- * Version: MPL 1.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- *
- * The Initial Developer of the Original Code is
- * James Martelletti <james@nerdc0re.com>
- * Portions created by the Initial Developer are Copyright (C)
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *
- * James Martelletti <james@nerdc0re.com>
- *
- *
- * FileHandleMarshaler.cs --
- *
+/* \r
+ * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>\r
+ *\r
+ * Version: MPL 1.1\r
+ *\r
+ * The contents of this file are subject to the Mozilla Public License Version\r
+ * 1.1 (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ * http://www.mozilla.org/MPL/\r
+ *\r
+ * Software distributed under the License is distributed on an "AS IS" basis,\r
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License\r
+ * for the specific language governing rights and limitations under the\r
+ * License.\r
+ *\r
+ * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ *\r
+ * The Initial Developer of the Original Code is\r
+ * James Martelletti <james@nerdc0re.com>\r
+ * Portions created by the Initial Developer are Copyright (C)\r
+ * the Initial Developer. All Rights Reserved.\r
+ *\r
+ * Contributor(s):\r
+ * \r
+ * James Martelletti <james@nerdc0re.com>\r
+ *\r
+ *\r
+ * FileHandleMarshaler.cs -- \r
+ *\r
*/\r
using System;\r
using System.Runtime.InteropServices;\r
-using FreeSwitch.NET.Types;\r
-using FreeSwitch.NET.Marshaling.Types;\r
+using FreeSwitch.Types;\r
+using FreeSwitch.Marshaling.Types;\r
\r
-namespace FreeSwitch.NET.Marshaling\r
+namespace FreeSwitch.Marshaling\r
{\r
class FileHandleMarshaler : ICustomMarshaler\r
{\r
-/*
- * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>
- *
- * Version: MPL 1.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- *
- * The Initial Developer of the Original Code is
- * James Martelletti <james@nerdc0re.com>
- * Portions created by the Initial Developer are Copyright (C)
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *
- * James Martelletti <james@nerdc0re.com>
- *
- *
- * MemoryPoolMarshaler.cs --
- *
+/* \r
+ * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>\r
+ *\r
+ * Version: MPL 1.1\r
+ *\r
+ * The contents of this file are subject to the Mozilla Public License Version\r
+ * 1.1 (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ * http://www.mozilla.org/MPL/\r
+ *\r
+ * Software distributed under the License is distributed on an "AS IS" basis,\r
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License\r
+ * for the specific language governing rights and limitations under the\r
+ * License.\r
+ *\r
+ * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ *\r
+ * The Initial Developer of the Original Code is\r
+ * James Martelletti <james@nerdc0re.com>\r
+ * Portions created by the Initial Developer are Copyright (C)\r
+ * the Initial Developer. All Rights Reserved.\r
+ *\r
+ * Contributor(s):\r
+ * \r
+ * James Martelletti <james@nerdc0re.com>\r
+ *\r
+ *\r
+ * MemoryPoolMarshaler.cs -- \r
+ *\r
*/\r
using System;\r
using System.Runtime.InteropServices;\r
-using FreeSwitch.NET.Types;\r
-using FreeSwitch.NET.Marshaling.Types;\r
+using FreeSwitch.Types;\r
+using FreeSwitch.Marshaling.Types;\r
\r
-namespace FreeSwitch.NET.Marshaling\r
+namespace FreeSwitch.Marshaling\r
{\r
class MemoryPoolMarshaler : ICustomMarshaler\r
{\r
*/\r
using System;\r
using System.Collections;\r
-using FreeSwitch.NET.Marshaling.Types;\r
-using FreeSwitch.NET.Types;\r
+using FreeSwitch.Marshaling.Types;\r
+using FreeSwitch.Types;\r
using System.Runtime.InteropServices;\r
\r
-namespace FreeSwitch.NET.Marshaling\r
+namespace FreeSwitch.Marshaling\r
{\r
class StreamHandleMarshaler : ICustomMarshaler\r
{\r
*
* ApiInterfaceMarshal.cs --
*
- */\r
-using System;\r
-using System.Runtime.InteropServices;\r
-using FreeSwitch.NET.Types;\r
-\r
-namespace FreeSwitch.NET.Marshaling.Types\r
-{\r
- [StructLayout(LayoutKind.Sequential)]\r
- internal class ApiInterfaceMarshal\r
- {\r
- //[MarshalAs(UnmanagedType.LPStr)]\r
- internal IntPtr interface_name;\r
- //[MarshalAs(UnmanagedType.LPStr)]\r
- internal IntPtr desc;\r
- internal ApiFunction function;\r
- internal IntPtr next;\r
- }\r
-}\r
+ */
+using System;
+using System.Runtime.InteropServices;
+using FreeSwitch.Types;
+
+namespace FreeSwitch.Marshaling.Types
+{
+ [StructLayout(LayoutKind.Sequential)]
+ internal class ApiInterfaceMarshal
+ {
+ //[MarshalAs(UnmanagedType.LPStr)]
+ internal IntPtr interface_name;
+ //[MarshalAs(UnmanagedType.LPStr)]
+ internal IntPtr desc;
+ internal ApiFunction function;
+ internal IntPtr next;
+ }
+}
*
* ApplicationInterfaceMarshal.cs --
*
- */\r
-using System;\r
-using System.Runtime.InteropServices;\r
-using FreeSwitch.NET.Types;\r
-\r
-namespace FreeSwitch.NET.Marshaling.Types\r
-{\r
- [StructLayout(LayoutKind.Sequential)]\r
- internal class ApplicationInterfaceMarshal\r
- {\r
- // [MarshalAs(UnmanagedType.LPStr)]\r
- internal IntPtr interface_name;\r
- internal ApplicationFunction application_function;\r
- // [MarshalAs(UnmanagedType.LPStr)]\r
- internal IntPtr long_desc;\r
- //[MarshalAs(UnmanagedType.LPStr)]\r
- internal IntPtr short_desc;\r
- //[MarshalAs(UnmanagedType.LPStr)]\r
- internal IntPtr syntax;\r
- internal IntPtr next;\r
- }\r
+ */
+using System;
+using System.Runtime.InteropServices;
+using FreeSwitch.Types;
+
+namespace FreeSwitch.Marshaling.Types
+{
+ [StructLayout(LayoutKind.Sequential)]
+ internal class ApplicationInterfaceMarshal
+ {
+ // [MarshalAs(UnmanagedType.LPStr)]
+ internal IntPtr interface_name;
+ internal ApplicationFunction application_function;
+ // [MarshalAs(UnmanagedType.LPStr)]
+ internal IntPtr long_desc;
+ //[MarshalAs(UnmanagedType.LPStr)]
+ internal IntPtr short_desc;
+ //[MarshalAs(UnmanagedType.LPStr)]
+ internal IntPtr syntax;
+ internal IntPtr next;
+ }
}
\ No newline at end of file
*
* BufferMarshal.cs --
*
- */\r
-using System;\r
-using System.Runtime.InteropServices;\r
-\r
-namespace FreeSwitch.NET.Marshaling.Types\r
-{\r
- [StructLayout(LayoutKind.Sequential)]\r
- internal class BufferMarshal\r
- {\r
- [MarshalAs(UnmanagedType.LPStr)]\r
- internal string data;\r
- internal int used;\r
- internal int datalen;\r
- internal UInt32 id;\r
- }\r
-}\r
+ */
+using System;
+using System.Runtime.InteropServices;
+
+namespace FreeSwitch.Marshaling.Types
+{
+ [StructLayout(LayoutKind.Sequential)]
+ internal class BufferMarshal
+ {
+ [MarshalAs(UnmanagedType.LPStr)]
+ internal string data;
+ internal int used;
+ internal int datalen;
+ internal UInt32 id;
+ }
+}
*
* CallerExtensionMarshal.cs --
*
- */\r
-using System;\r
-using System.Runtime.InteropServices;\r
-\r
-namespace FreeSwitch.NET.Marshaling.Types\r
-{\r
- [StructLayout(LayoutKind.Sequential)]\r
- internal class CallerExtensionMarshal\r
- {\r
- internal IntPtr extension_name;\r
- internal IntPtr extension_number;\r
- internal IntPtr current_application;\r
- internal IntPtr last_application;\r
- internal IntPtr applications;\r
- }\r
-}\r
+ */
+using System;
+using System.Runtime.InteropServices;
+
+namespace FreeSwitch.Marshaling.Types
+{
+ [StructLayout(LayoutKind.Sequential)]
+ internal class CallerExtensionMarshal
+ {
+ internal IntPtr extension_name;
+ internal IntPtr extension_number;
+ internal IntPtr current_application;
+ internal IntPtr last_application;
+ internal IntPtr applications;
+ }
+}
-/*
- * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>
- *
- * Version: MPL 1.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- *
- * The Initial Developer of the Original Code is
- * James Martelletti <james@nerdc0re.com>
- * Portions created by the Initial Developer are Copyright (C)
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *
- * James Martelletti <james@nerdc0re.com>
- *
- *
- * CallerProfileMarshal.cs --
- *
+/* \r
+ * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>\r
+ *\r
+ * Version: MPL 1.1\r
+ *\r
+ * The contents of this file are subject to the Mozilla Public License Version\r
+ * 1.1 (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ * http://www.mozilla.org/MPL/\r
+ *\r
+ * Software distributed under the License is distributed on an "AS IS" basis,\r
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License\r
+ * for the specific language governing rights and limitations under the\r
+ * License.\r
+ *\r
+ * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ *\r
+ * The Initial Developer of the Original Code is\r
+ * James Martelletti <james@nerdc0re.com>\r
+ * Portions created by the Initial Developer are Copyright (C)\r
+ * the Initial Developer. All Rights Reserved.\r
+ *\r
+ * Contributor(s):\r
+ * \r
+ * James Martelletti <james@nerdc0re.com>\r
+ *\r
+ *\r
+ * CallerProfileMarshal.cs -- \r
+ *\r
*/\r
using System;\r
using System.Runtime.InteropServices;\r
\r
-namespace FreeSwitch.NET.Marshaling.Types\r
+namespace FreeSwitch.Marshaling.Types\r
{\r
[StructLayout(LayoutKind.Sequential)]\r
internal class CallerProfileMarshal\r
*
* ChannelFlagMarshal.cs --
*
- */\r
-using System;\r
-\r
-namespace FreeSwitch.NET.Marshaling.Types\r
-{\r
- internal enum ChannelFlagMarshal\r
- {\r
- CF_SEND_AUDIO,\r
- CF_RECV_AUDIO,\r
- CF_ANSWERED,\r
- CF_OUTBOUND,\r
- CF_EARLY_MEDIA,\r
- CF_ORIGINATOR,\r
- CF_TRANSFER\r
- }\r
-}\r
+ */
+using System;
+
+namespace FreeSwitch.Marshaling.Types
+{
+ internal enum ChannelFlagMarshal
+ {
+ CF_SEND_AUDIO,
+ CF_RECV_AUDIO,
+ CF_ANSWERED,
+ CF_OUTBOUND,
+ CF_EARLY_MEDIA,
+ CF_ORIGINATOR,
+ CF_TRANSFER
+ }
+}
-/*
- * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>
- *
- * Version: MPL 1.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- *
- * The Initial Developer of the Original Code is
- * James Martelletti <james@nerdc0re.com>
- * Portions created by the Initial Developer are Copyright (C)
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *
- * James Martelletti <james@nerdc0re.com>
- *
- *
- * ChannelMarshal.cs --
- *
+/* \r
+ * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>\r
+ *\r
+ * Version: MPL 1.1\r
+ *\r
+ * The contents of this file are subject to the Mozilla Public License Version\r
+ * 1.1 (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ * http://www.mozilla.org/MPL/\r
+ *\r
+ * Software distributed under the License is distributed on an "AS IS" basis,\r
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License\r
+ * for the specific language governing rights and limitations under the\r
+ * License.\r
+ *\r
+ * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ *\r
+ * The Initial Developer of the Original Code is\r
+ * James Martelletti <james@nerdc0re.com>\r
+ * Portions created by the Initial Developer are Copyright (C)\r
+ * the Initial Developer. All Rights Reserved.\r
+ *\r
+ * Contributor(s):\r
+ * \r
+ * James Martelletti <james@nerdc0re.com>\r
+ *\r
+ *\r
+ * ChannelMarshal.cs -- \r
+ *\r
*/\r
using System;\r
using System.Runtime.InteropServices;\r
-using FreeSwitch.NET.Types;\r
+using FreeSwitch.Types;\r
\r
-namespace FreeSwitch.NET.Marshaling.Types\r
+namespace FreeSwitch.Marshaling.Types\r
{\r
[StructLayout(LayoutKind.Sequential)]\r
internal class ChannelMarshal\r
*
* ChannelStateMarshal.cs --
*
- */\r
-using System;\r
-\r
-namespace FreeSwitch.NET.Marshaling.Types\r
-{\r
- internal enum ChannelStateMarshal\r
- {\r
- CS_NEW,\r
- CS_INIT,\r
- CS_RING,\r
- CS_TRANSMIT,\r
- CS_EXECUTE,\r
- CS_LOOPBACK,\r
- CS_HANGUP,\r
- CS_DONE \r
- }\r
-}\r
+ */
+using System;
+
+namespace FreeSwitch.Marshaling.Types
+{
+ internal enum ChannelStateMarshal
+ {
+ CS_NEW,
+ CS_INIT,
+ CS_RING,
+ CS_TRANSMIT,
+ CS_EXECUTE,
+ CS_LOOPBACK,
+ CS_HANGUP,
+ CS_DONE
+ }
+}
*
* ChannelTimetableMarshal.cs --
*
- */\r
-using System;\r
-using System.Runtime.InteropServices;\r
-\r
-namespace FreeSwitch.NET.Marshaling.Types\r
-{\r
- [StructLayout(LayoutKind.Sequential)]\r
- internal class ChannelTimetableMarshal\r
- {\r
- internal Int64 created;\r
- internal Int64 answered;\r
- internal Int64 hungup;\r
- }\r
-}\r
+ */
+using System;
+using System.Runtime.InteropServices;
+
+namespace FreeSwitch.Marshaling.Types
+{
+ [StructLayout(LayoutKind.Sequential)]
+ internal class ChannelTimetableMarshal
+ {
+ internal Int64 created;
+ internal Int64 answered;
+ internal Int64 hungup;
+ }
+}
*
* CodecImplementationMarshal.cs --
*
- */\r
-using System;\r
-using FreeSwitch.NET.Types;\r
-\r
-namespace FreeSwitch.NET.Marshaling.Types\r
-{\r
- internal class CodecImplementationMarshal\r
- {\r
- internal UInt32 samples_per_seconds;\r
- internal int bits_per_second;\r
- internal int microseconds_per_frame;\r
- internal UInt32 samples_per_frame;\r
- internal UInt32 bytes_per_frame;\r
- internal UInt32 encoded_bytes_per_frame;\r
- internal Byte number_of_channels;\r
- internal int pref_frames_per_packet;\r
- internal int max_frames_per_packet;\r
- //internal CodecInitMarshal init;\r
- //internal CodecEncodeMarshal encode;\r
- //internal CodecDecode decode;\r
- //internal CodecDestroy destroy;\r
- internal IntPtr next;\r
- }\r
-}\r
+ */
+using System;
+using FreeSwitch.Types;
+
+namespace FreeSwitch.Marshaling.Types
+{
+ internal class CodecImplementationMarshal
+ {
+ internal UInt32 samples_per_seconds;
+ internal int bits_per_second;
+ internal int microseconds_per_frame;
+ internal UInt32 samples_per_frame;
+ internal UInt32 bytes_per_frame;
+ internal UInt32 encoded_bytes_per_frame;
+ internal Byte number_of_channels;
+ internal int pref_frames_per_packet;
+ internal int max_frames_per_packet;
+ //internal CodecInitMarshal init;
+ //internal CodecEncodeMarshal encode;
+ //internal CodecDecode decode;
+ //internal CodecDestroy destroy;
+ internal IntPtr next;
+ }
+}
*
* CodecInterfaceMarshal.cs --
*
- */\r
-using System;\r
-using System.Runtime.InteropServices;\r
-using FreeSwitch.NET.Types;\r
-\r
-namespace FreeSwitch.NET.Marshaling.Types\r
-{\r
- [StructLayout(LayoutKind.Sequential)]\r
- internal class CodecInterfaceMarshal\r
- {\r
- [MarshalAs(UnmanagedType.LPStr)]\r
- internal string interface_name;\r
- /*\r
- internal CodecImplementation application_function;\r
- [MarshalAs(UnmanagedType.LPStr)]\r
- internal string long_desc;\r
- [MarshalAs(UnmanagedType.LPStr)]\r
- internal string short_desc;\r
- [MarshalAs(UnmanagedType.LPStr)]\r
- internal string syntax;\r
- internal IntPtr next;\r
-}\r
-\r
-\r
+ */
+using System;
+using System.Runtime.InteropServices;
+using FreeSwitch.Types;
+
+namespace FreeSwitch.Marshaling.Types
+{
+ [StructLayout(LayoutKind.Sequential)]
+ internal class CodecInterfaceMarshal
+ {
+ [MarshalAs(UnmanagedType.LPStr)]
+ internal string interface_name;
+ /*
+ internal CodecImplementation application_function;
+ [MarshalAs(UnmanagedType.LPStr)]
+ internal string long_desc;
+ [MarshalAs(UnmanagedType.LPStr)]
+ internal string short_desc;
+ [MarshalAs(UnmanagedType.LPStr)]
+ internal string syntax;
+ internal IntPtr next;
+}
+
+
struct switch_codec_interface {
! the name of the interface
const char *interface_name;
! a list of codec implementations related to the codec
const switch_codec_implementation_t *implementations;
const struct switch_codec_interface *next;
-};*/\r
- }\r
+};*/
+ }
}
\ No newline at end of file
*
* CodecMarshal.cs --
*
- */\r
-using System;\r
-using System.Text;\r
-\r
-namespace FreeSwitch.NET.Marshaling.Types\r
-{\r
- internal class CodecMarshal\r
- {\r
- internal IntPtr codec_interface;\r
- internal IntPtr implementation;\r
- //internal CodecSettingsMarshal codec_settings;\r
- internal UInt32 flags;\r
- //internal MemoryPoolMarshal memory_pool;\r
- internal IntPtr private_info;\r
- }\r
-}\r
+ */
+using System;
+using System.Text;
+
+namespace FreeSwitch.Marshaling.Types
+{
+ internal class CodecMarshal
+ {
+ internal IntPtr codec_interface;
+ internal IntPtr implementation;
+ //internal CodecSettingsMarshal codec_settings;
+ internal UInt32 flags;
+ //internal MemoryPoolMarshal memory_pool;
+ internal IntPtr private_info;
+ }
+}
*
* CodecTypeMarshal.cs --
*
- */\r
-using System;\r
-\r
-namespace FreeSwitch.NET.Marshaling.Types\r
-{\r
- internal enum CodecTypesMarshal\r
- {\r
- SWITCH_CODEC_TYPE_AUDIO,\r
- SWITCH_CODEC_TYPE_VIDEO,\r
- SWITCH_CODEC_TYPE_T38,\r
- SWITCH_CODEC_TYPE_APP\r
- }\r
-}\r
+ */
+using System;
+
+namespace FreeSwitch.Marshaling.Types
+{
+ internal enum CodecTypesMarshal
+ {
+ SWITCH_CODEC_TYPE_AUDIO,
+ SWITCH_CODEC_TYPE_VIDEO,
+ SWITCH_CODEC_TYPE_T38,
+ SWITCH_CODEC_TYPE_APP
+ }
+}
*
* CoreSessionMarshal.cs --
*
- */\r
-using System;\r
-using System.Text;\r
-using System.Runtime.InteropServices;\r
-\r
-namespace FreeSwitch.NET.Marshaling.Types\r
-{\r
- [StructLayout(LayoutKind.Sequential, Pack=1)]\r
- internal class CoreSessionMarshal\r
- {\r
- internal UInt32 id;\r
- [MarshalAs(UnmanagedType.ByValArray, SizeConst=80)]\r
- internal byte[] name; \r
- internal int thread_running;\r
- internal IntPtr pool;\r
- internal IntPtr channel;\r
- internal IntPtr thread;\r
- internal IntPtr endpoint_interface;\r
- internal IOEventHooksMarshal event_hooks;\r
- internal IntPtr read_codec;\r
- internal IntPtr write_codec;\r
- internal IntPtr raw_write_buffer;\r
- internal FrameMarshal raw_write_frame;\r
- internal FrameMarshal enc_write_frame;\r
- [MarshalAs(UnmanagedType.ByValArray, SizeConst=2048)]\r
- internal byte[] raw_write_buf;\r
- [MarshalAs(UnmanagedType.ByValArray, SizeConst=2048)]\r
- internal byte[] enc_write_buf;\r
- internal IntPtr raw_read_buffer;\r
- internal FrameMarshal raw_read_frame;\r
- internal FrameMarshal enc_read_frame;\r
- [MarshalAs(UnmanagedType.ByValArray, SizeConst=2048)]\r
- internal byte[] raw_read_buf;\r
- [MarshalAs(UnmanagedType.ByValArray, SizeConst=2048)]\r
- internal byte[] enc_read_buf;\r
+ */
+using System;
+using System.Text;
+using System.Runtime.InteropServices;
+
+namespace FreeSwitch.Marshaling.Types
+{
+ [StructLayout(LayoutKind.Sequential, Pack=1)]
+ internal class CoreSessionMarshal
+ {
+ internal UInt32 id;
+ [MarshalAs(UnmanagedType.ByValArray, SizeConst=80)]
+ internal byte[] name;
+ internal int thread_running;
+ internal IntPtr pool;
+ internal IntPtr channel;
+ internal IntPtr thread;
+ internal IntPtr endpoint_interface;
+ internal IOEventHooksMarshal event_hooks;
+ internal IntPtr read_codec;
+ internal IntPtr write_codec;
+ internal IntPtr raw_write_buffer;
+ internal FrameMarshal raw_write_frame;
+ internal FrameMarshal enc_write_frame;
+ [MarshalAs(UnmanagedType.ByValArray, SizeConst=2048)]
+ internal byte[] raw_write_buf;
+ [MarshalAs(UnmanagedType.ByValArray, SizeConst=2048)]
+ internal byte[] enc_write_buf;
+ internal IntPtr raw_read_buffer;
+ internal FrameMarshal raw_read_frame;
+ internal FrameMarshal enc_read_frame;
+ [MarshalAs(UnmanagedType.ByValArray, SizeConst=2048)]
+ internal byte[] raw_read_buf;
+ [MarshalAs(UnmanagedType.ByValArray, SizeConst=2048)]
+ internal byte[] enc_read_buf;
internal IntPtr read_resampler;
internal IntPtr write_resampler;
internal IntPtr mutex;
internal int stream_count;
/* 36 + 1 char string, but need to grab 40 bytes */
[MarshalAs(UnmanagedType.ByValArray, SizeConst=40)]
- internal byte[] uuid_str;\r
+ internal byte[] uuid_str;
internal IntPtr private_info;
internal IntPtr event_queue;
- }\r
-}\r
+ }
+}
*
* EventMarshal.cs --
*
- */\r
-using System;\r
-using System.Runtime.InteropServices;\r
-using FreeSwitch.NET.Types;\r
-\r
-namespace FreeSwitch.NET.Marshaling.Types\r
-{\r
- [StructLayout(LayoutKind.Sequential)]\r
- internal class EventMarshal\r
- {\r
- internal EventType event_id;\r
- internal Priority priority;\r
- internal IntPtr owner;\r
- internal IntPtr subclass;\r
- internal IntPtr headers;\r
- internal IntPtr body;\r
- internal IntPtr bind_user_data;\r
- internal IntPtr event_user_data;\r
- internal IntPtr next;\r
- }\r
-\r
- [StructLayout(LayoutKind.Sequential)]\r
- internal class EventHeaderMarshal\r
- {\r
- internal string name;\r
- internal string value;\r
- internal IntPtr next;\r
- }\r
-}\r
+ */
+using System;
+using System.Runtime.InteropServices;
+using FreeSwitch.Types;
+
+namespace FreeSwitch.Marshaling.Types
+{
+ [StructLayout(LayoutKind.Sequential)]
+ internal class EventMarshal
+ {
+ internal EventType event_id;
+ internal Priority priority;
+ internal IntPtr owner;
+ internal IntPtr subclass;
+ internal IntPtr headers;
+ internal IntPtr body;
+ internal IntPtr bind_user_data;
+ internal IntPtr event_user_data;
+ internal IntPtr next;
+ }
+
+ [StructLayout(LayoutKind.Sequential)]
+ internal class EventHeaderMarshal
+ {
+ internal string name;
+ internal string value;
+ internal IntPtr next;
+ }
+}
*
* FileHandleMarshal.cs --
*
- */\r
-using System;\r
-using System.Runtime.InteropServices;\r
-\r
-namespace FreeSwitch.NET.Marshaling.Types\r
-{\r
- [StructLayout(LayoutKind.Sequential)]\r
- internal class FileHandleMarshal\r
- {\r
- internal IntPtr file_interface;\r
- internal UInt32 flags;\r
- internal IntPtr fd;\r
- internal uint samples;\r
- internal UInt32 samplerate;\r
- internal Byte channels;\r
- internal uint format;\r
- internal uint sections;\r
- internal int seekable;\r
- internal uint sample_count;\r
- internal int speed;\r
- internal IntPtr memory_pool;\r
- internal IntPtr private_info;\r
- internal Int64 pos;\r
- internal IntPtr audio_buffer;\r
- }\r
-\r
-}\r
+ */
+using System;
+using System.Runtime.InteropServices;
+
+namespace FreeSwitch.Marshaling.Types
+{
+ [StructLayout(LayoutKind.Sequential)]
+ internal class FileHandleMarshal
+ {
+ internal IntPtr file_interface;
+ internal UInt32 flags;
+ internal IntPtr fd;
+ internal uint samples;
+ internal UInt32 samplerate;
+ internal Byte channels;
+ internal uint format;
+ internal uint sections;
+ internal int seekable;
+ internal uint sample_count;
+ internal int speed;
+ internal IntPtr memory_pool;
+ internal IntPtr private_info;
+ internal Int64 pos;
+ internal IntPtr audio_buffer;
+ }
+
+}
*
* FrameMarshal.cs --
*
- */\r
-using System;\r
-using System.Runtime.InteropServices;\r
-using FreeSwitch.NET.Types;\r
-\r
-namespace FreeSwitch.NET.Marshaling.Types\r
-{\r
- [StructLayout(LayoutKind.Sequential)]\r
- internal class FrameMarshal\r
- {\r
- internal IntPtr codec;\r
- internal IntPtr source;\r
- internal IntPtr packet;\r
- internal UInt32 packetlen;\r
- internal IntPtr data;\r
- internal UInt32 datalen;\r
- internal UInt32 buflen;\r
- internal UInt32 samples;\r
- internal UInt32 rate;\r
- internal byte payload;\r
- internal UInt32 timestamp;\r
- internal byte flags;\r
- }\r
-}\r
+ */
+using System;
+using System.Runtime.InteropServices;
+using FreeSwitch.Types;
+
+namespace FreeSwitch.Marshaling.Types
+{
+ [StructLayout(LayoutKind.Sequential)]
+ internal class FrameMarshal
+ {
+ internal IntPtr codec;
+ internal IntPtr source;
+ internal IntPtr packet;
+ internal UInt32 packetlen;
+ internal IntPtr data;
+ internal UInt32 datalen;
+ internal UInt32 buflen;
+ internal UInt32 samples;
+ internal UInt32 rate;
+ internal byte payload;
+ internal UInt32 timestamp;
+ internal byte flags;
+ }
+}
*
* IOEventHooksMarshal.cs --
*
- */\r
-using System;\r
-using System.Runtime.InteropServices;\r
-\r
-namespace FreeSwitch.NET.Marshaling.Types\r
-{\r
- [StructLayout(LayoutKind.Sequential)]\r
- internal class IOEventHooksMarshal\r
- {\r
- internal IntPtr outgoing_channel;\r
- internal IntPtr answer_channel;\r
- internal IntPtr receive_message;\r
- internal IntPtr receive_event;\r
- internal IntPtr read_frame;\r
- internal IntPtr write_frame;\r
- internal IntPtr kill_channel;\r
- internal IntPtr waitfor_read;\r
- internal IntPtr waitfor_write;\r
- internal IntPtr send_dtmf;\r
- }\r
-}\r
+ */
+using System;
+using System.Runtime.InteropServices;
+
+namespace FreeSwitch.Marshaling.Types
+{
+ [StructLayout(LayoutKind.Sequential)]
+ internal class IOEventHooksMarshal
+ {
+ internal IntPtr outgoing_channel;
+ internal IntPtr answer_channel;
+ internal IntPtr receive_message;
+ internal IntPtr receive_event;
+ internal IntPtr read_frame;
+ internal IntPtr write_frame;
+ internal IntPtr kill_channel;
+ internal IntPtr waitfor_read;
+ internal IntPtr waitfor_write;
+ internal IntPtr send_dtmf;
+ }
+}
*
* LoadableModuleInterfaceMarshal.cs --
*
- */\r
-using System;\r
-using System.Runtime.InteropServices;\r
-using FreeSwitch.NET.Types;\r
-\r
-namespace FreeSwitch.NET.Marshaling.Types\r
-{\r
- [StructLayout(LayoutKind.Sequential)]\r
- internal class LoadableModuleInterfaceMarshal\r
- {\r
- internal IntPtr module_name;\r
- internal IntPtr endpoint_interface;\r
- internal IntPtr timer_interface;\r
- internal IntPtr dialplan_interface;\r
- internal IntPtr codec_interface;\r
- internal IntPtr application_interface;\r
- internal IntPtr api_interface;\r
- internal IntPtr file_interface;\r
- internal IntPtr speech_interface;\r
- internal IntPtr directory_interface;\r
- }\r
-}\r
+ */
+using System;
+using System.Runtime.InteropServices;
+using FreeSwitch.Types;
+
+namespace FreeSwitch.Marshaling.Types
+{
+ [StructLayout(LayoutKind.Sequential)]
+ internal class LoadableModuleInterfaceMarshal
+ {
+ internal IntPtr module_name;
+ internal IntPtr endpoint_interface;
+ internal IntPtr timer_interface;
+ internal IntPtr dialplan_interface;
+ internal IntPtr codec_interface;
+ internal IntPtr application_interface;
+ internal IntPtr api_interface;
+ internal IntPtr file_interface;
+ internal IntPtr speech_interface;
+ internal IntPtr directory_interface;
+ }
+}
*
* LoadableModuleMarshal.cs --
*
- */\r
-using System;\r
-using System.Runtime.InteropServices;\r
-using FreeSwitch.NET.Types;\r
-\r
-namespace FreeSwitch.NET.Marshaling.Types\r
-{\r
-\r
-\r
- [StructLayout(LayoutKind.Sequential)]\r
- public class LoadableModuleMarshal\r
- {\r
- public IntPtr filename;\r
- public IntPtr module_interface;\r
- public IntPtr lib;\r
- public ModuleLoad module_load;\r
- public ModuleReload module_reload;\r
- public ModulePause module_pause;\r
- public ModuleResume module_resume;\r
- public ModuleStatus module_status;\r
- public ModuleRuntime module_runtime;\r
- public ModuleShutdown module_shutdown;\r
- }\r
-}\r
+ */
+using System;
+using System.Runtime.InteropServices;
+using FreeSwitch.Types;
+
+namespace FreeSwitch.Marshaling.Types
+{
+
+
+ [StructLayout(LayoutKind.Sequential)]
+ public class LoadableModuleMarshal
+ {
+ public IntPtr filename;
+ public IntPtr module_interface;
+ public IntPtr lib;
+ public ModuleLoad module_load;
+ public ModuleReload module_reload;
+ public ModulePause module_pause;
+ public ModuleResume module_resume;
+ public ModuleStatus module_status;
+ public ModuleRuntime module_runtime;
+ public ModuleShutdown module_shutdown;
+ }
+}
*
* StreamHandleMarshal.cs --
*
- */\r
-using System;\r
-using System.Runtime.InteropServices;\r
-using FreeSwitch.NET.Types;\r
-\r
-namespace FreeSwitch.NET.Marshaling.Types\r
-{\r
- [StructLayout(LayoutKind.Sequential)]\r
- internal class StreamHandleMarshal\r
- {\r
- internal IntPtr write_function;\r
- internal IntPtr data;\r
- internal IntPtr end;\r
- internal int data_size;\r
- internal int data_len;\r
- internal IntPtr _event;\r
- }\r
-}\r
+ */
+using System;
+using System.Runtime.InteropServices;
+using FreeSwitch.Types;
+
+namespace FreeSwitch.Marshaling.Types
+{
+ [StructLayout(LayoutKind.Sequential)]
+ internal class StreamHandleMarshal
+ {
+ internal IntPtr write_function;
+ internal IntPtr data;
+ internal IntPtr end;
+ internal int data_size;
+ internal int data_len;
+ internal IntPtr _event;
+ }
+}
*
* TypesMarshal.cs --
*
- */\r
-using System;\r
-using System.Runtime.InteropServices;\r
-using FreeSwitch.NET.Types;\r
-\r
-namespace FreeSwitch.NET.Marshaling.Types\r
-{\r
- public delegate\r
- Status DtmfCallbackFunctionMarshal(\r
- [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CoreSessionMarshaler))]\r
- CoreSession session,\r
- string dtmf,\r
- IntPtr buf,\r
- uint buflen);\r
-}\r
+ */
+using System;
+using System.Runtime.InteropServices;
+using FreeSwitch.Types;
+
+namespace FreeSwitch.Marshaling.Types
+{
+ public delegate
+ Status DtmfCallbackFunctionMarshal(
+ [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CoreSessionMarshaler))]
+ CoreSession session,
+ string dtmf,
+ IntPtr buf,
+ uint buflen);
+}
-/*
- * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>
- *
- * Version: MPL 1.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- *
- * The Initial Developer of the Original Code is
- * James Martelletti <james@nerdc0re.com>
- * Portions created by the Initial Developer are Copyright (C)
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *
- * James Martelletti <james@nerdc0re.com>
- *
- *
- * Module.cs --
- *
- */
+/* \r
+ * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>\r
+ *\r
+ * Version: MPL 1.1\r
+ *\r
+ * The contents of this file are subject to the Mozilla Public License Version\r
+ * 1.1 (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ * http://www.mozilla.org/MPL/\r
+ *\r
+ * Software distributed under the License is distributed on an "AS IS" basis,\r
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License\r
+ * for the specific language governing rights and limitations under the\r
+ * License.\r
+ *\r
+ * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ *\r
+ * The Initial Developer of the Original Code is\r
+ * James Martelletti <james@nerdc0re.com>\r
+ * Portions created by the Initial Developer are Copyright (C)\r
+ * the Initial Developer. All Rights Reserved.\r
+ *\r
+ * Contributor(s):\r
+ * \r
+ * James Martelletti <james@nerdc0re.com>\r
+ *\r
+ *\r
+ * Module.cs -- \r
+ *\r
+ */\r
using System;\r
using System.Collections;\r
using System.Reflection;\r
using System.Runtime.InteropServices;\r
using System.Text;\r
using FreeSwitch.NET;\r
-using FreeSwitch.NET.Types;\r
-using FreeSwitch.NET.Modules;\r
-using FreeSwitch.NET.Marshaling.Types;
-
-namespace FreeSwitch.NET
-{
+using FreeSwitch.Types;\r
+using FreeSwitch.Modules;\r
+using FreeSwitch.Marshaling.Types;\r
+\r
+namespace FreeSwitch.NET\r
+{\r
/// <summary>\r
/// Base class for all Freeswitch.NET modules\r
- /// </summary>
- /// <example>
+ /// </summary>\r
+ /// <example>\r
/// public class Example : Module\r
/// {\r
/// public Example()\r
/// \r
/// Register();\r
/// } \r
- /// }
- /// </example>
- public class Module
+ /// }\r
+ /// </example>\r
+ public class Module\r
{\r
private LoadableModuleInterfaceMarshal module_interface = new LoadableModuleInterfaceMarshal();\r
private LoadableModuleMarshal module = new LoadableModuleMarshal();\r
/// <summary>\r
/// Module constructor\r
/// </summary>\r
- public Module()
+ public Module()\r
{\r
- Console.WriteLine("*** Creating new module object");
-
- load = new ModuleLoad(Load);
- }
-
+ Console.WriteLine("*** Creating new module object");\r
+\r
+ load = new ModuleLoad(Load);\r
+ }\r
+\r
/// <summary>\r
/// Implementation of ModuleLoad Delegate\r
/// </summary>\r
/// <param name="module"></param>\r
/// <param name="name"></param>\r
- /// <returns></returns>
+ /// <returns></returns>\r
public Status Load(ref IntPtr module, string name)\r
{\r
/* Allocate some unmanaged mem for the ModuleInterface */\r
Marshal.StructureToPtr(module_interface, module, true);\r
\r
return Status.Success;\r
- }
-
+ }\r
+\r
/// <summary>\r
/// AddApiInterface\r
/// </summary>\r
- /// <param name="apiInterface"></param>
- public void AddApiInterface(Api apiInterface)
+ /// <param name="apiInterface"></param>\r
+ public void AddApiInterface(Api apiInterface)\r
{\r
/* Create a new ApiInterface type and allocate unmanaged mem */\r
ApiInterfaceMarshal apiInterfaceMarshal = new ApiInterfaceMarshal();\r
\r
/* Finally, add our new interface to the array */\r
applicationInterfaces.Add(applicationInterface);\r
- }
-
+ }\r
+\r
/// <summary>\r
/// Register\r
- /// </summary>
- public void Register()
+ /// </summary>\r
+ public void Register()\r
{\r
module.module_load = new ModuleLoad(Load);\r
\r
- Switch.switch_loadable_module_build_dynamic(filename,
- module.module_load,
- module.module_runtime,
- module.module_shutdown);
+ Switch.switch_loadable_module_build_dynamic(filename,\r
+ module.module_load,\r
+ module.module_runtime,\r
+ module.module_shutdown);\r
}\r
\r
-
- }
-}
+ \r
+ }\r
+} \r
-/*
- * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>
- *
- * Version: MPL 1.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- *
- * The Initial Developer of the Original Code is
- * James Martelletti <james@nerdc0re.com>
- * Portions created by the Initial Developer are Copyright (C)
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *
- * James Martelletti <james@nerdc0re.com>
- *
- *
- * Api.cs --
- *
+/* \r
+ * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>\r
+ *\r
+ * Version: MPL 1.1\r
+ *\r
+ * The contents of this file are subject to the Mozilla Public License Version\r
+ * 1.1 (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ * http://www.mozilla.org/MPL/\r
+ *\r
+ * Software distributed under the License is distributed on an "AS IS" basis,\r
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License\r
+ * for the specific language governing rights and limitations under the\r
+ * License.\r
+ *\r
+ * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ *\r
+ * The Initial Developer of the Original Code is\r
+ * James Martelletti <james@nerdc0re.com>\r
+ * Portions created by the Initial Developer are Copyright (C)\r
+ * the Initial Developer. All Rights Reserved.\r
+ *\r
+ * Contributor(s):\r
+ * \r
+ * James Martelletti <james@nerdc0re.com>\r
+ *\r
+ *\r
+ * Api.cs -- \r
+ *\r
*/\r
using System;\r
using System.Collections;\r
using System.Text;\r
using System.Runtime.InteropServices;\r
-using FreeSwitch.NET.Types;\r
+using FreeSwitch.Types;\r
\r
-namespace FreeSwitch.NET.Modules\r
+namespace FreeSwitch.Modules\r
{\r
public class Api\r
{\r
-/*
- * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>
- *
- * Version: MPL 1.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- *
- * The Initial Developer of the Original Code is
- * James Martelletti <james@nerdc0re.com>
- * Portions created by the Initial Developer are Copyright (C)
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *
- * James Martelletti <james@nerdc0re.com>
- *
- *
- * Application.cs --
- *
+/* \r
+ * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>\r
+ *\r
+ * Version: MPL 1.1\r
+ *\r
+ * The contents of this file are subject to the Mozilla Public License Version\r
+ * 1.1 (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ * http://www.mozilla.org/MPL/\r
+ *\r
+ * Software distributed under the License is distributed on an "AS IS" basis,\r
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License\r
+ * for the specific language governing rights and limitations under the\r
+ * License.\r
+ *\r
+ * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ *\r
+ * The Initial Developer of the Original Code is\r
+ * James Martelletti <james@nerdc0re.com>\r
+ * Portions created by the Initial Developer are Copyright (C)\r
+ * the Initial Developer. All Rights Reserved.\r
+ *\r
+ * Contributor(s):\r
+ * \r
+ * James Martelletti <james@nerdc0re.com>\r
+ *\r
+ *\r
+ * Application.cs -- \r
+ *\r
*/\r
using System;\r
using System.Collections;\r
using System.Text;\r
using System.Runtime.InteropServices;\r
-using FreeSwitch.NET.Marshaling;\r
-using FreeSwitch.NET.Types;\r
-using FreeSwitch.NET.Marshaling.Types;\r
+using FreeSwitch.Marshaling;\r
+using FreeSwitch.Types;\r
+using FreeSwitch.Marshaling.Types;\r
\r
-namespace FreeSwitch.NET.Modules\r
+namespace FreeSwitch.Modules\r
{\r
public class Application\r
{\r
-/*
- * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>
- *
- * Version: MPL 1.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- *
- * The Initial Developer of the Original Code is
- * James Martelletti <james@nerdc0re.com>
- * Portions created by the Initial Developer are Copyright (C)
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *
- * James Martelletti <james@nerdc0re.com>
- *
- *
- * CallerProfile.cs --
- *
+/* \r
+ * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>\r
+ *\r
+ * Version: MPL 1.1\r
+ *\r
+ * The contents of this file are subject to the Mozilla Public License Version\r
+ * 1.1 (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ * http://www.mozilla.org/MPL/\r
+ *\r
+ * Software distributed under the License is distributed on an "AS IS" basis,\r
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License\r
+ * for the specific language governing rights and limitations under the\r
+ * License.\r
+ *\r
+ * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ *\r
+ * The Initial Developer of the Original Code is\r
+ * James Martelletti <james@nerdc0re.com>\r
+ * Portions created by the Initial Developer are Copyright (C)\r
+ * the Initial Developer. All Rights Reserved.\r
+ *\r
+ * Contributor(s):\r
+ * \r
+ * James Martelletti <james@nerdc0re.com>\r
+ *\r
+ *\r
+ * CallerProfile.cs -- \r
+ *\r
*/\r
using System;\r
using System.Runtime.CompilerServices;\r
using System.Runtime.InteropServices;\r
-using FreeSwitch.NET.Types;\r
-using FreeSwitch.NET.Marshaling;\r
-using FreeSwitch.NET.Marshaling.Types;\r
+using FreeSwitch.Types;\r
+using FreeSwitch.Marshaling;\r
+using FreeSwitch.Marshaling.Types;\r
\r
-namespace FreeSwitch.NET\r
+namespace FreeSwitch\r
{\r
public partial class Switch\r
{\r
-/*
- * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>
- *
- * Version: MPL 1.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- *
- * The Initial Developer of the Original Code is
- * James Martelletti <james@nerdc0re.com>
- * Portions created by the Initial Developer are Copyright (C)
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *
- * James Martelletti <james@nerdc0re.com>
- *
- *
- * Channel.cs --
- *
+/* \r
+ * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>\r
+ *\r
+ * Version: MPL 1.1\r
+ *\r
+ * The contents of this file are subject to the Mozilla Public License Version\r
+ * 1.1 (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ * http://www.mozilla.org/MPL/\r
+ *\r
+ * Software distributed under the License is distributed on an "AS IS" basis,\r
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License\r
+ * for the specific language governing rights and limitations under the\r
+ * License.\r
+ *\r
+ * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ *\r
+ * The Initial Developer of the Original Code is\r
+ * James Martelletti <james@nerdc0re.com>\r
+ * Portions created by the Initial Developer are Copyright (C)\r
+ * the Initial Developer. All Rights Reserved.\r
+ *\r
+ * Contributor(s):\r
+ * \r
+ * James Martelletti <james@nerdc0re.com>\r
+ *\r
+ *\r
+ * Channel.cs -- \r
+ *\r
*/\r
using System;\r
using System.Runtime.CompilerServices;\r
using System.Runtime.InteropServices;\r
-using FreeSwitch.NET.Types;\r
-using FreeSwitch.NET.Marshaling;\r
+using FreeSwitch.Types;\r
+using FreeSwitch.Marshaling;\r
\r
-namespace FreeSwitch.NET\r
+namespace FreeSwitch\r
{\r
public partial class Switch\r
{\r
\r
[DllImport("freeswitch")]\r
public extern static\r
- ChannelState switch_channel_perform_hangup(
- [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(ChannelMarshaler))]
- Channel channel,
- [MarshalAs(UnmanagedType.LPStr)]
- string file,
- [MarshalAs(UnmanagedType.LPStr)]
- string func,
- int line,
+ ChannelState switch_channel_perform_hangup(\r
+ [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(ChannelMarshaler))]\r
+ Channel channel,\r
+ [MarshalAs(UnmanagedType.LPStr)]\r
+ string file,\r
+ [MarshalAs(UnmanagedType.LPStr)]\r
+ string func,\r
+ int line,\r
CallCause hangup_cause);\r
\r
[DllImport("freeswitch")]\r
using System.Diagnostics;\r
using System.Text;
-namespace FreeSwitch.NET
+namespace FreeSwitch
{
public partial class Switch
{\r
-/*
- * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>
- *
- * Version: MPL 1.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- *
- * The Initial Developer of the Original Code is
- * James Martelletti <james@nerdc0re.com>
- * Portions created by the Initial Developer are Copyright (C)
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *
- * James Martelletti <james@nerdc0re.com>
- *
- *
- * CoreSession.cs --
- *
+/* \r
+ * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>\r
+ *\r
+ * Version: MPL 1.1\r
+ *\r
+ * The contents of this file are subject to the Mozilla Public License Version\r
+ * 1.1 (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ * http://www.mozilla.org/MPL/\r
+ *\r
+ * Software distributed under the License is distributed on an "AS IS" basis,\r
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License\r
+ * for the specific language governing rights and limitations under the\r
+ * License.\r
+ *\r
+ * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ *\r
+ * The Initial Developer of the Original Code is\r
+ * James Martelletti <james@nerdc0re.com>\r
+ * Portions created by the Initial Developer are Copyright (C)\r
+ * the Initial Developer. All Rights Reserved.\r
+ *\r
+ * Contributor(s):\r
+ * \r
+ * James Martelletti <james@nerdc0re.com>\r
+ *\r
+ *\r
+ * CoreSession.cs -- \r
+ *\r
*/\r
using System;\r
using System.Runtime.CompilerServices;\r
using System.Runtime.InteropServices;\r
-using FreeSwitch.NET.Types;\r
-using FreeSwitch.NET.Marshaling;\r
+using FreeSwitch.Types;\r
+using FreeSwitch.Marshaling;\r
\r
-namespace FreeSwitch.NET\r
+namespace FreeSwitch\r
{\r
public partial class Switch\r
{\r
-/*
- * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>
- *
- * Version: MPL 1.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- *
- * The Initial Developer of the Original Code is
- * James Martelletti <james@nerdc0re.com>
- * Portions created by the Initial Developer are Copyright (C)
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *
- * James Martelletti <james@nerdc0re.com>
- *
- *
- * Ivr.cs --
- *
+/* \r
+ * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>\r
+ *\r
+ * Version: MPL 1.1\r
+ *\r
+ * The contents of this file are subject to the Mozilla Public License Version\r
+ * 1.1 (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ * http://www.mozilla.org/MPL/\r
+ *\r
+ * Software distributed under the License is distributed on an "AS IS" basis,\r
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License\r
+ * for the specific language governing rights and limitations under the\r
+ * License.\r
+ *\r
+ * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ *\r
+ * The Initial Developer of the Original Code is\r
+ * James Martelletti <james@nerdc0re.com>\r
+ * Portions created by the Initial Developer are Copyright (C)\r
+ * the Initial Developer. All Rights Reserved.\r
+ *\r
+ * Contributor(s):\r
+ * \r
+ * James Martelletti <james@nerdc0re.com>\r
+ *\r
+ *\r
+ * Ivr.cs -- \r
+ *\r
*/\r
using System;\r
using System.Runtime.CompilerServices;\r
using System.Runtime.InteropServices;\r
-using FreeSwitch.NET.Types;\r
-using FreeSwitch.NET.Marshaling;\r
-using FreeSwitch.NET.Marshaling.Types;\r
+using FreeSwitch.Types;\r
+using FreeSwitch.Marshaling;\r
+using FreeSwitch.Marshaling.Types;\r
\r
-namespace FreeSwitch.NET\r
+namespace FreeSwitch\r
{\r
public partial class Switch\r
{\r
-/*
- * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>
- *
- * Version: MPL 1.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- *
- * The Initial Developer of the Original Code is
- * James Martelletti <james@nerdc0re.com>
- * Portions created by the Initial Developer are Copyright (C)
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *
- * James Martelletti <james@nerdc0re.com>
- *
- *
- * LoadableModule.cs --
- *
+/* \r
+ * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>\r
+ *\r
+ * Version: MPL 1.1\r
+ *\r
+ * The contents of this file are subject to the Mozilla Public License Version\r
+ * 1.1 (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ * http://www.mozilla.org/MPL/\r
+ *\r
+ * Software distributed under the License is distributed on an "AS IS" basis,\r
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License\r
+ * for the specific language governing rights and limitations under the\r
+ * License.\r
+ *\r
+ * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ *\r
+ * The Initial Developer of the Original Code is\r
+ * James Martelletti <james@nerdc0re.com>\r
+ * Portions created by the Initial Developer are Copyright (C)\r
+ * the Initial Developer. All Rights Reserved.\r
+ *\r
+ * Contributor(s):\r
+ * \r
+ * James Martelletti <james@nerdc0re.com>\r
+ *\r
+ *\r
+ * LoadableModule.cs -- \r
+ *\r
*/\r
using System;\r
using System.Runtime.InteropServices;\r
-using FreeSwitch.NET.Types;\r
-using FreeSwitch.NET.Marshaling.Types;\r
+using FreeSwitch.Types;\r
+using FreeSwitch.Marshaling.Types;\r
\r
-namespace FreeSwitch.NET\r
+namespace FreeSwitch\r
{\r
/*\r
* SWITCH_DECLARE(switch_status_t) switch_loadable_module_load_module(char *dir, char *fname)\r
-/*
- * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>
- *
- * Version: MPL 1.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- *
- * The Initial Developer of the Original Code is
- * James Martelletti <james@nerdc0re.com>
- * Portions created by the Initial Developer are Copyright (C)
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *
- * James Martelletti <james@nerdc0re.com>
- *
- *
- * LoadableModule.cs --
- *
+/* \r
+ * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>\r
+ *\r
+ * Version: MPL 1.1\r
+ *\r
+ * The contents of this file are subject to the Mozilla Public License Version\r
+ * 1.1 (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ * http://www.mozilla.org/MPL/\r
+ *\r
+ * Software distributed under the License is distributed on an "AS IS" basis,\r
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License\r
+ * for the specific language governing rights and limitations under the\r
+ * License.\r
+ *\r
+ * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ *\r
+ * The Initial Developer of the Original Code is\r
+ * James Martelletti <james@nerdc0re.com>\r
+ * Portions created by the Initial Developer are Copyright (C)\r
+ * the Initial Developer. All Rights Reserved.\r
+ *\r
+ * Contributor(s):\r
+ * \r
+ * James Martelletti <james@nerdc0re.com>\r
+ *\r
+ *\r
+ * LoadableModule.cs -- \r
+ *\r
*/\r
using System;\r
using System.Runtime.InteropServices;\r
-using FreeSwitch.NET.Types;\r
-using FreeSwitch.NET.Marshaling.Types;\r
+using FreeSwitch.Types;\r
+using FreeSwitch.Marshaling.Types;\r
\r
-namespace FreeSwitch.NET\r
+namespace FreeSwitch\r
{\r
/*\r
* SWITCH_DECLARE(switch_status_t) switch_loadable_module_load_module(char *dir, char *fname)\r
*
* ApplicationFunction.cs --
*
- */\r
-using System;\r
-\r
-namespace FreeSwitch.NET.Types\r
-{\r
- \r
-}\r
+ */
+using System;
+
+namespace FreeSwitch.Types
+{
+
+}
using System.Runtime.InteropServices;
using System.Text;
-namespace FreeSwitch.NET.Types
+namespace FreeSwitch.Types
{
/*
public class ApplicationInterface
*
* Buffer.cs --
*
- */\r
-using System;\r
-using System.Runtime.InteropServices;\r
-\r
-namespace FreeSwitch.NET.Types\r
-{\r
- public class Buffer\r
- {\r
- internal HandleRef marshaledObject;\r
-\r
- public string Data\r
- {\r
- get { throw new NotImplementedException(); }\r
- }\r
-\r
- public int Used\r
- {\r
- get { throw new NotImplementedException(); }\r
- }\r
-\r
- public int Length\r
- {\r
- get { throw new NotImplementedException(); }\r
- }\r
- }\r
-}\r
+ */
+using System;
+using System.Runtime.InteropServices;
+
+namespace FreeSwitch.Types
+{
+ public class Buffer
+ {
+ internal HandleRef marshaledObject;
+
+ public string Data
+ {
+ get { throw new NotImplementedException(); }
+ }
+
+ public int Used
+ {
+ get { throw new NotImplementedException(); }
+ }
+
+ public int Length
+ {
+ get { throw new NotImplementedException(); }
+ }
+ }
+}
-/*
- * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>
- *
- * Version: MPL 1.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- *
- * The Initial Developer of the Original Code is
- * James Martelletti <james@nerdc0re.com>
- * Portions created by the Initial Developer are Copyright (C)
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *
- * James Martelletti <james@nerdc0re.com>
- *
- *
- * CallCause.cs --
- *
+/* \r
+ * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>\r
+ *\r
+ * Version: MPL 1.1\r
+ *\r
+ * The contents of this file are subject to the Mozilla Public License Version\r
+ * 1.1 (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ * http://www.mozilla.org/MPL/\r
+ *\r
+ * Software distributed under the License is distributed on an "AS IS" basis,\r
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License\r
+ * for the specific language governing rights and limitations under the\r
+ * License.\r
+ *\r
+ * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ *\r
+ * The Initial Developer of the Original Code is\r
+ * James Martelletti <james@nerdc0re.com>\r
+ * Portions created by the Initial Developer are Copyright (C)\r
+ * the Initial Developer. All Rights Reserved.\r
+ *\r
+ * Contributor(s):\r
+ * \r
+ * James Martelletti <james@nerdc0re.com>\r
+ *\r
+ *\r
+ * CallCause.cs -- \r
+ *\r
*/\r
using System;\r
\r
-namespace FreeSwitch.NET.Types\r
+namespace FreeSwitch.Types\r
{\r
public enum CallCause\r
{\r
-/*
- * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>
- *
- * Version: MPL 1.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- *
- * The Initial Developer of the Original Code is
- * James Martelletti <james@nerdc0re.com>
- * Portions created by the Initial Developer are Copyright (C)
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *
- * James Martelletti <james@nerdc0re.com>
- *
- *
- * CallerExtension.cs --
- *
+/* \r
+ * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>\r
+ *\r
+ * Version: MPL 1.1\r
+ *\r
+ * The contents of this file are subject to the Mozilla Public License Version\r
+ * 1.1 (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ * http://www.mozilla.org/MPL/\r
+ *\r
+ * Software distributed under the License is distributed on an "AS IS" basis,\r
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License\r
+ * for the specific language governing rights and limitations under the\r
+ * License.\r
+ *\r
+ * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ *\r
+ * The Initial Developer of the Original Code is\r
+ * James Martelletti <james@nerdc0re.com>\r
+ * Portions created by the Initial Developer are Copyright (C)\r
+ * the Initial Developer. All Rights Reserved.\r
+ *\r
+ * Contributor(s):\r
+ * \r
+ * James Martelletti <james@nerdc0re.com>\r
+ *\r
+ *\r
+ * CallerExtension.cs -- \r
+ *\r
*/\r
using System;\r
using System.Runtime.InteropServices;\r
-using FreeSwitch.NET.Marshaling.Types;\r
+using FreeSwitch.Marshaling.Types;\r
\r
-namespace FreeSwitch.NET.Types\r
+namespace FreeSwitch.Types\r
{\r
public class CallerExtension\r
{\r
-/*
- * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>
- *
- * Version: MPL 1.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- *
- * The Initial Developer of the Original Code is
- * James Martelletti <james@nerdc0re.com>
- * Portions created by the Initial Developer are Copyright (C)
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *
- * James Martelletti <james@nerdc0re.com>
- *
- *
- * CallerProfile.cs --
- *
+/* \r
+ * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>\r
+ *\r
+ * Version: MPL 1.1\r
+ *\r
+ * The contents of this file are subject to the Mozilla Public License Version\r
+ * 1.1 (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ * http://www.mozilla.org/MPL/\r
+ *\r
+ * Software distributed under the License is distributed on an "AS IS" basis,\r
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License\r
+ * for the specific language governing rights and limitations under the\r
+ * License.\r
+ *\r
+ * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ *\r
+ * The Initial Developer of the Original Code is\r
+ * James Martelletti <james@nerdc0re.com>\r
+ * Portions created by the Initial Developer are Copyright (C)\r
+ * the Initial Developer. All Rights Reserved.\r
+ *\r
+ * Contributor(s):\r
+ * \r
+ * James Martelletti <james@nerdc0re.com>\r
+ *\r
+ *\r
+ * CallerProfile.cs -- \r
+ *\r
*/\r
using System;\r
using System.Runtime.InteropServices;\r
-using FreeSwitch.NET.Marshaling.Types;\r
+using FreeSwitch.Marshaling.Types;\r
\r
-namespace FreeSwitch.NET.Types\r
+namespace FreeSwitch.Types\r
{\r
public class CallerProfile\r
{\r
-/*
- * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>
- *
- * Version: MPL 1.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- *
- * The Initial Developer of the Original Code is
- * James Martelletti <james@nerdc0re.com>
- * Portions created by the Initial Developer are Copyright (C)
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *
- * James Martelletti <james@nerdc0re.com>
- *
- *
- * Channel.cs --
- *
+/* \r
+ * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>\r
+ *\r
+ * Version: MPL 1.1\r
+ *\r
+ * The contents of this file are subject to the Mozilla Public License Version\r
+ * 1.1 (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ * http://www.mozilla.org/MPL/\r
+ *\r
+ * Software distributed under the License is distributed on an "AS IS" basis,\r
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License\r
+ * for the specific language governing rights and limitations under the\r
+ * License.\r
+ *\r
+ * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ *\r
+ * The Initial Developer of the Original Code is\r
+ * James Martelletti <james@nerdc0re.com>\r
+ * Portions created by the Initial Developer are Copyright (C)\r
+ * the Initial Developer. All Rights Reserved.\r
+ *\r
+ * Contributor(s):\r
+ * \r
+ * James Martelletti <james@nerdc0re.com>\r
+ *\r
+ *\r
+ * Channel.cs -- \r
+ *\r
*/\r
using System;\r
using System.Runtime.InteropServices;\r
-using FreeSwitch.NET.Marshaling.Types;\r
+using FreeSwitch.Marshaling.Types;\r
\r
-namespace FreeSwitch.NET.Types\r
+namespace FreeSwitch.Types\r
{\r
/*\r
- * char *name;
- switch_buffer_t *dtmf_buffer;
- switch_mutex_t *dtmf_mutex;
- switch_mutex_t *flag_mutex;
- switch_mutex_t *profile_mutex;
- switch_core_session_t *session;
- switch_channel_state_t state;
- uint32_t flags;
- switch_caller_profile_t *caller_profile;
- switch_caller_profile_t *originator_caller_profile;
- switch_caller_profile_t *originatee_caller_profile;
- switch_caller_extension_t *caller_extension;
- const switch_state_handler_table_t *state_handlers[SWITCH_MAX_STATE_HANDLERS];
- int state_handler_index;
- switch_hash_t *variables;
- switch_channel_timetable_t *times;
- void *private_info;
- switch_call_cause_t hangup_cause;
- int freq;
- int bits;
- int channels;
- int ms;
+ * char *name;\r
+ switch_buffer_t *dtmf_buffer;\r
+ switch_mutex_t *dtmf_mutex;\r
+ switch_mutex_t *flag_mutex;\r
+ switch_mutex_t *profile_mutex;\r
+ switch_core_session_t *session;\r
+ switch_channel_state_t state;\r
+ uint32_t flags;\r
+ switch_caller_profile_t *caller_profile;\r
+ switch_caller_profile_t *originator_caller_profile;\r
+ switch_caller_profile_t *originatee_caller_profile;\r
+ switch_caller_extension_t *caller_extension;\r
+ const switch_state_handler_table_t *state_handlers[SWITCH_MAX_STATE_HANDLERS];\r
+ int state_handler_index;\r
+ switch_hash_t *variables;\r
+ switch_channel_timetable_t *times;\r
+ void *private_info;\r
+ switch_call_cause_t hangup_cause;\r
+ int freq;\r
+ int bits;\r
+ int channels;\r
+ int ms;\r
int kbps;\r
*/\r
public class Channel\r
*
* ChannelFlag.cs --
*
- */\r
-using System;\r
-\r
-namespace FreeSwitch.NET.Types\r
-{\r
- public enum ChannelFlag\r
- {\r
- CF_SEND_AUDIO,\r
- CF_RECV_AUDIO,\r
- CF_ANSWERED,\r
- CF_OUTBOUND,\r
- CF_EARLY_MEDIA,\r
- CF_ORIGINATOR,\r
- CF_TRANSFER\r
- }\r
-}\r
+ */
+using System;
+
+namespace FreeSwitch.Types
+{
+ public enum ChannelFlag
+ {
+ CF_SEND_AUDIO,
+ CF_RECV_AUDIO,
+ CF_ANSWERED,
+ CF_OUTBOUND,
+ CF_EARLY_MEDIA,
+ CF_ORIGINATOR,
+ CF_TRANSFER
+ }
+}
*
* ChannelState.cs --
*
- */\r
-using System;\r
-\r
-namespace FreeSwitch.NET.Types\r
-{\r
- public enum ChannelState\r
- {\r
- CS_NEW,\r
- CS_INIT,\r
- CS_RING,\r
- CS_TRANSMIT,\r
- CS_EXECUTE,\r
- CS_LOOPBACK,\r
- CS_HANGUP,\r
- CS_DONE \r
- }\r
-}\r
+ */
+using System;
+
+namespace FreeSwitch.Types
+{
+ public enum ChannelState
+ {
+ CS_NEW,
+ CS_INIT,
+ CS_RING,
+ CS_TRANSMIT,
+ CS_EXECUTE,
+ CS_LOOPBACK,
+ CS_HANGUP,
+ CS_DONE
+ }
+}
*
* ChannelTimetable.cs --
*
- */\r
-using System;\r
-using System.Runtime.InteropServices;\r
-\r
-namespace FreeSwitch.NET.Types\r
-{\r
- public class ChannelTimetable\r
- {\r
- internal HandleRef marshaledObject;\r
-\r
- public Int64 Created\r
- {\r
- get { throw new NotImplementedException(); }\r
- }\r
-\r
- public Int64 Answered\r
- {\r
- get { throw new NotImplementedException(); }\r
- }\r
-\r
- public Int64 Hungup\r
- {\r
- get { throw new NotImplementedException(); }\r
- }\r
- }\r
-}\r
+ */
+using System;
+using System.Runtime.InteropServices;
+
+namespace FreeSwitch.Types
+{
+ public class ChannelTimetable
+ {
+ internal HandleRef marshaledObject;
+
+ public Int64 Created
+ {
+ get { throw new NotImplementedException(); }
+ }
+
+ public Int64 Answered
+ {
+ get { throw new NotImplementedException(); }
+ }
+
+ public Int64 Hungup
+ {
+ get { throw new NotImplementedException(); }
+ }
+ }
+}
-/*
- * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>
- *
- * Version: MPL 1.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- *
- * The Initial Developer of the Original Code is
- * James Martelletti <james@nerdc0re.com>
- * Portions created by the Initial Developer are Copyright (C)
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *
- * James Martelletti <james@nerdc0re.com>
- *
- *
- * CoreSession.cs --
- *
+/* \r
+ * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>\r
+ *\r
+ * Version: MPL 1.1\r
+ *\r
+ * The contents of this file are subject to the Mozilla Public License Version\r
+ * 1.1 (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ * http://www.mozilla.org/MPL/\r
+ *\r
+ * Software distributed under the License is distributed on an "AS IS" basis,\r
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License\r
+ * for the specific language governing rights and limitations under the\r
+ * License.\r
+ *\r
+ * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ *\r
+ * The Initial Developer of the Original Code is\r
+ * James Martelletti <james@nerdc0re.com>\r
+ * Portions created by the Initial Developer are Copyright (C)\r
+ * the Initial Developer. All Rights Reserved.\r
+ *\r
+ * Contributor(s):\r
+ * \r
+ * James Martelletti <james@nerdc0re.com>\r
+ *\r
+ *\r
+ * CoreSession.cs -- \r
+ *\r
*/\r
using System;\r
using System.Collections;\r
using System.Runtime.InteropServices;\r
using System.Text;\r
-using FreeSwitch.NET.Marshaling.Types;\r
+using FreeSwitch.Marshaling.Types;\r
\r
-namespace FreeSwitch.NET.Types\r
+namespace FreeSwitch.Types\r
{\r
/*\r
- * uint32_t id;
- char name[80];
- int thread_running;
- switch_memory_pool_t *pool;
- switch_channel_t *channel;
- switch_thread_t *thread;
- const switch_endpoint_interface_t *endpoint_interface;
- switch_io_event_hooks_t event_hooks;
- switch_codec_t *read_codec;
- switch_codec_t *write_codec;
-
- switch_buffer_t *raw_write_buffer;
- switch_frame_t raw_write_frame;
- switch_frame_t enc_write_frame;
- uint8_t raw_write_buf[SWITCH_RECCOMMENDED_BUFFER_SIZE];
- uint8_t enc_write_buf[SWITCH_RECCOMMENDED_BUFFER_SIZE];
-
- switch_buffer_t *raw_read_buffer;
- switch_frame_t raw_read_frame;
- switch_frame_t enc_read_frame;
- uint8_t raw_read_buf[SWITCH_RECCOMMENDED_BUFFER_SIZE];
- uint8_t enc_read_buf[SWITCH_RECCOMMENDED_BUFFER_SIZE];
-
-
- switch_audio_resampler_t *read_resampler;
- switch_audio_resampler_t *write_resampler;
-
- switch_mutex_t *mutex;
- switch_thread_cond_t *cond;
-
- switch_thread_rwlock_t *rwlock;
-
- void *streams[SWITCH_MAX_STREAMS];
- int stream_count;
-
- char uuid_str[SWITCH_UUID_FORMATTED_LENGTH + 1];
- void *private_info;
+ * uint32_t id;\r
+ char name[80];\r
+ int thread_running;\r
+ switch_memory_pool_t *pool;\r
+ switch_channel_t *channel;\r
+ switch_thread_t *thread;\r
+ const switch_endpoint_interface_t *endpoint_interface;\r
+ switch_io_event_hooks_t event_hooks;\r
+ switch_codec_t *read_codec;\r
+ switch_codec_t *write_codec;\r
+\r
+ switch_buffer_t *raw_write_buffer;\r
+ switch_frame_t raw_write_frame;\r
+ switch_frame_t enc_write_frame;\r
+ uint8_t raw_write_buf[SWITCH_RECCOMMENDED_BUFFER_SIZE];\r
+ uint8_t enc_write_buf[SWITCH_RECCOMMENDED_BUFFER_SIZE];\r
+\r
+ switch_buffer_t *raw_read_buffer;\r
+ switch_frame_t raw_read_frame;\r
+ switch_frame_t enc_read_frame;\r
+ uint8_t raw_read_buf[SWITCH_RECCOMMENDED_BUFFER_SIZE];\r
+ uint8_t enc_read_buf[SWITCH_RECCOMMENDED_BUFFER_SIZE];\r
+\r
+\r
+ switch_audio_resampler_t *read_resampler;\r
+ switch_audio_resampler_t *write_resampler;\r
+\r
+ switch_mutex_t *mutex;\r
+ switch_thread_cond_t *cond;\r
+\r
+ switch_thread_rwlock_t *rwlock;\r
+\r
+ void *streams[SWITCH_MAX_STREAMS];\r
+ int stream_count;\r
+\r
+ char uuid_str[SWITCH_UUID_FORMATTED_LENGTH + 1];\r
+ void *private_info;\r
switch_queue_t *event_queue;\r
*/\r
public class CoreSession\r
*
* DtmfCallbackFunction.cs --
*
- */\r
-using System;\r
-\r
-namespace FreeSwitch.NET.Types\r
-{\r
- public delegate Status DtmfCallbackFunction(CoreSession session, string dtmf);\r
-}\r
+ */
+using System;
+
+namespace FreeSwitch.Types
+{
+ public delegate Status DtmfCallbackFunction(CoreSession session, string dtmf);
+}
-/*
- * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>
- *
- * Version: MPL 1.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- *
- * The Initial Developer of the Original Code is
- * James Martelletti <james@nerdc0re.com>
- * Portions created by the Initial Developer are Copyright (C)
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *
- * James Martelletti <james@nerdc0re.com>
- *
- *
- * Event.cs --
- *
+/* \r
+ * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>\r
+ *\r
+ * Version: MPL 1.1\r
+ *\r
+ * The contents of this file are subject to the Mozilla Public License Version\r
+ * 1.1 (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ * http://www.mozilla.org/MPL/\r
+ *\r
+ * Software distributed under the License is distributed on an "AS IS" basis,\r
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License\r
+ * for the specific language governing rights and limitations under the\r
+ * License.\r
+ *\r
+ * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ *\r
+ * The Initial Developer of the Original Code is\r
+ * James Martelletti <james@nerdc0re.com>\r
+ * Portions created by the Initial Developer are Copyright (C)\r
+ * the Initial Developer. All Rights Reserved.\r
+ *\r
+ * Contributor(s):\r
+ * \r
+ * James Martelletti <james@nerdc0re.com>\r
+ *\r
+ *\r
+ * Event.cs -- \r
+ *\r
*/\r
using System;\r
using System.Collections;\r
using System.Text;\r
using System.Runtime.InteropServices;\r
\r
-namespace FreeSwitch.NET.Types\r
+namespace FreeSwitch.Types\r
{\r
public enum Priority\r
{\r
*
* FileHandle.cs --
*
- */\r
-using System;\r
-using System.Runtime.InteropServices;\r
-using FreeSwitch.NET.Marshaling.Types;\r
-\r
-namespace FreeSwitch.NET.Types\r
-{\r
- public class FileHandle\r
- {\r
- internal HandleRef marshaledObject;\r
- }\r
-}\r
+ */
+using System;
+using System.Runtime.InteropServices;
+using FreeSwitch.Marshaling.Types;
+
+namespace FreeSwitch.Types
+{
+ public class FileHandle
+ {
+ internal HandleRef marshaledObject;
+ }
+}
*
* DtmfCallbackFunction.cs --
*
- */\r
-using System;\r
-using System.Runtime.InteropServices;\r
-using FreeSwitch.NET.Marshaling;\r
-\r
-namespace FreeSwitch.NET.Types\r
-{\r
- public delegate Status InputCallbackFunction(\r
- [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(StreamHandleMarshaler))]\r
- CoreSession session,\r
- [MarshalAs(UnmanagedType.LPStr)]\r
- string input,\r
- InputType inputType,\r
- [MarshalAs(UnmanagedType.LPStr)]\r
- string buffer,\r
- int bufferLength);\r
-}\r
+ */
+using System;
+using System.Runtime.InteropServices;
+using FreeSwitch.Marshaling;
+
+namespace FreeSwitch.Types
+{
+ public delegate Status InputCallbackFunction(
+ [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(StreamHandleMarshaler))]
+ CoreSession session,
+ [MarshalAs(UnmanagedType.LPStr)]
+ string input,
+ InputType inputType,
+ [MarshalAs(UnmanagedType.LPStr)]
+ string buffer,
+ int bufferLength);
+}
*
* ChannelState.cs --
*
- */\r
-using System;\r
-\r
-namespace FreeSwitch.NET.Types\r
-{\r
- public enum InputType\r
- {\r
+ */
+using System;
+
+namespace FreeSwitch.Types
+{
+ public enum InputType
+ {
INPUT_TYPE_DTMF,
INPUT_TYPE_EVENT
- }\r
-}\r
+ }
+}
-/*
- * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>
- *
- * Version: MPL 1.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
- *
- * The Initial Developer of the Original Code is
- * James Martelletti <james@nerdc0re.com>
- * Portions created by the Initial Developer are Copyright (C)
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *
- * James Martelletti <james@nerdc0re.com>
- *
- *
- * Channel.cs --
- *
+/* \r
+ * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ * Copyright (C) 2006, James Martelletti <james@nerdc0re.com>\r
+ *\r
+ * Version: MPL 1.1\r
+ *\r
+ * The contents of this file are subject to the Mozilla Public License Version\r
+ * 1.1 (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ * http://www.mozilla.org/MPL/\r
+ *\r
+ * Software distributed under the License is distributed on an "AS IS" basis,\r
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License\r
+ * for the specific language governing rights and limitations under the\r
+ * License.\r
+ *\r
+ * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application\r
+ *\r
+ * The Initial Developer of the Original Code is\r
+ * James Martelletti <james@nerdc0re.com>\r
+ * Portions created by the Initial Developer are Copyright (C)\r
+ * the Initial Developer. All Rights Reserved.\r
+ *\r
+ * Contributor(s):\r
+ * \r
+ * James Martelletti <james@nerdc0re.com>\r
+ *\r
+ *\r
+ * Channel.cs -- \r
+ *\r
*/\r
using System;\r
using System.Runtime.InteropServices;\r
\r
-namespace FreeSwitch.NET.Types\r
+namespace FreeSwitch.Types\r
{\r
public class LoadableModule\r
{\r
*
* LoadableModuleInterfaces.cs --
*
- */\r
-using System;\r
-using System.Collections;\r
-using System.Runtime.InteropServices;\r
-using System.Text;\r
-using FreeSwitch.NET.Marshaling;\r
-\r
-namespace FreeSwitch.NET.Types\r
-{\r
- public delegate Status WriteFunction(\r
- [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(StreamHandleMarshaler))]\r
- StreamHandle streamHandle,\r
- [MarshalAs(UnmanagedType.LPStr)]\r
- string fmt);\r
-\r
- //public delegate void ModuleLoad();\r
-\r
- public class LoadableModuleInterface\r
- {\r
- private string module_name;\r
- //private EndpointInterface endpoint_interface;\r
- //private TimerInterface timer_interface;\r
- //private DialplanInterface dialplan_interface;\r
- //private CodecInterface codec_interface;\r
- //private ApplicationInterface application_interface;\r
- //private ApiInterface api_interface;\r
- //private FileInterface file_interface;\r
- //private SpeechInterface speech_interface;\r
- //private DirectoryInterface directory_interface;\r
- }\r
+ */
+using System;
+using System.Collections;
+using System.Runtime.InteropServices;
+using System.Text;
+using FreeSwitch.Marshaling;
+
+namespace FreeSwitch.Types
+{
+ public delegate Status WriteFunction(
+ [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(StreamHandleMarshaler))]
+ StreamHandle streamHandle,
+ [MarshalAs(UnmanagedType.LPStr)]
+ string fmt);
+
+ //public delegate void ModuleLoad();
+
+ public class LoadableModuleInterface
+ {
+ private string module_name;
+ //private EndpointInterface endpoint_interface;
+ //private TimerInterface timer_interface;
+ //private DialplanInterface dialplan_interface;
+ //private CodecInterface codec_interface;
+ //private ApplicationInterface application_interface;
+ //private ApiInterface api_interface;
+ //private FileInterface file_interface;
+ //private SpeechInterface speech_interface;
+ //private DirectoryInterface directory_interface;
+ }
}
using System;\r
using System.Runtime.InteropServices;\r
\r
-namespace FreeSwitch.NET.Types\r
+namespace FreeSwitch.Types\r
{\r
public class MemoryPool\r
{\r
*
* Module.cs --
*
- */\r
-using System;\r
-using System.Runtime.InteropServices;\r
-using FreeSwitch.NET.Marshaling;\r
-\r
-namespace FreeSwitch.NET.Types\r
-{\r
- public delegate Status ModuleReload();\r
- public delegate bool ModulePause();\r
- public delegate bool ModuleResume();\r
- public delegate bool ModuleStatus();\r
- public delegate Status ModuleRuntime();\r
- public delegate bool ModuleShutdown();\r
- public delegate Status ModuleLoad(ref IntPtr module, string name);\r
-\r
- public delegate void\r
- ApplicationFunction(\r
- [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CoreSessionMarshaler))]\r
- CoreSession session,\r
- [MarshalAs(UnmanagedType.LPStr)]\r
- string data);\r
-\r
- public delegate Status\r
- ApiFunction(\r
- [MarshalAs(UnmanagedType.LPStr)]\r
- string command,\r
- [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(StreamHandleMarshaler))]\r
- StreamHandle streamHandle);\r
-}\r
+ */
+using System;
+using System.Runtime.InteropServices;
+using FreeSwitch.Marshaling;
+
+namespace FreeSwitch.Types
+{
+ public delegate Status ModuleReload();
+ public delegate bool ModulePause();
+ public delegate bool ModuleResume();
+ public delegate bool ModuleStatus();
+ public delegate Status ModuleRuntime();
+ public delegate bool ModuleShutdown();
+ public delegate Status ModuleLoad(ref IntPtr module, string name);
+
+ public delegate void
+ ApplicationFunction(
+ [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CoreSessionMarshaler))]
+ CoreSession session,
+ [MarshalAs(UnmanagedType.LPStr)]
+ string data);
+
+ public delegate Status
+ ApiFunction(
+ [MarshalAs(UnmanagedType.LPStr)]
+ string command,
+ [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(StreamHandleMarshaler))]
+ StreamHandle streamHandle);
+}
using System.Runtime.InteropServices;
using System.Text;
-namespace FreeSwitch.NET.Types
+namespace FreeSwitch.Types
{
/*
public class ApplicationInterface
private string long_desc;
private string short_desc;
private string syntax;
- //const struct switch_application_interface *next;\r
-\r
- public string InterfaceName\r
- {\r
- get { return interface_name; }\r
- }\r
-\r
- public ApplicationFunction ApplicationFunction\r
- {\r
- get { return application_function; }\r
- }\r
-\r
- public string LongDesc\r
- {\r
- get { return long_desc; }\r
- }\r
-\r
- public string ShortDesc\r
- {\r
- get { return short_desc; }\r
+ //const struct switch_application_interface *next;
+
+ public string InterfaceName
+ {
+ get { return interface_name; }
+ }
+
+ public ApplicationFunction ApplicationFunction
+ {
+ get { return application_function; }
+ }
+
+ public string LongDesc
+ {
+ get { return long_desc; }
+ }
+
+ public string ShortDesc
+ {
+ get { return short_desc; }
}
}*/
}
*
* Status.cs --
*
- */\r
-using System;\r
-\r
-namespace FreeSwitch.NET.Types\r
-{\r
- public enum Status\r
- {\r
- Success,\r
- False, \r
- Timeout, \r
- Restart, \r
- Terminate,\r
- NotImplemented,\r
- MemoryError, \r
- NoOp, \r
- Resample, \r
- GeneralError, \r
- InUse, \r
- Break \r
- }\r
-}\r
+ */
+using System;
+
+namespace FreeSwitch.Types
+{
+ public enum Status
+ {
+ Success,
+ False,
+ Timeout,
+ Restart,
+ Terminate,
+ NotImplemented,
+ MemoryError,
+ NoOp,
+ Resample,
+ GeneralError,
+ InUse,
+ Break
+ }
+}
*
* StreamHandle.cs --
*
- */\r
-using System;\r
-using System.Runtime.InteropServices;\r
-using FreeSwitch.NET.Marshaling.Types;\r
-\r
-namespace FreeSwitch.NET.Types\r
-{\r
- public class StreamHandle\r
- {\r
- internal HandleRef marshaledObject;\r
- internal WriteFunction writeFunction;\r
-\r
- public void Write(string data)\r
- {\r
- StreamHandleMarshal streamHandleMarshal = (StreamHandleMarshal)marshaledObject.Wrapper;\r
- WriteFunction writeFunction = (WriteFunction)Marshal.GetDelegateForFunctionPointer(streamHandleMarshal.write_function, typeof(WriteFunction));\r
-\r
- writeFunction(this, data);\r
- }\r
- }\r
-}\r
+ */
+using System;
+using System.Runtime.InteropServices;
+using FreeSwitch.Marshaling.Types;
+
+namespace FreeSwitch.Types
+{
+ public class StreamHandle
+ {
+ internal HandleRef marshaledObject;
+ internal WriteFunction writeFunction;
+
+ public void Write(string data)
+ {
+ StreamHandleMarshal streamHandleMarshal = (StreamHandleMarshal)marshaledObject.Wrapper;
+ WriteFunction writeFunction = (WriteFunction)Marshal.GetDelegateForFunctionPointer(streamHandleMarshal.write_function, typeof(WriteFunction));
+
+ writeFunction(this, data);
+ }
+ }
+}
*
* TextChannel.cs --
*
- */\r
-using System;\r
-\r
-namespace FreeSwitch.NET.Types\r
-{\r
- public enum TextChannel\r
- {\r
- ChannelIdConsole,\r
- ChannelIdConsoleClean,\r
- ChannelIdEvent\r
- }\r
-}\r
+ */
+using System;
+
+namespace FreeSwitch.Types
+{
+ public enum TextChannel
+ {
+ ChannelIdConsole,
+ ChannelIdConsoleClean,
+ ChannelIdEvent
+ }
+}