]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Actually USE the saved references....
authorMichael Giagnocavo <mgg@giagnocavo.net>
Thu, 23 Oct 2008 17:40:06 +0000 (17:40 +0000)
committerMichael Giagnocavo <mgg@giagnocavo.net>
Thu, 23 Oct 2008 17:40:06 +0000 (17:40 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10133 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/languages/mod_managed/managed/ManagedSession.cs

index 2de49d1bdbce7c5f8e4d8949bc728783ee8eeb45..d7c88e7c6e273bbd748d7e5764fd4a559841e9ae 100644 (file)
@@ -47,7 +47,7 @@ namespace FreeSWITCH.Native
     {\r
         // SWITCH_DECLARE(void) InitManagedSession(ManagedSession *session, MonoObject *dtmfDelegate, MonoObject *hangupDelegate)\r
         [DllImport("mod_managed.dll", CharSet = CharSet.Ansi, CallingConvention=CallingConvention.Cdecl)]\r
-        static extern void InitManagedSession(IntPtr sessionPtr, DtmfCallback dtmfDelegate, Action hangupDelegate);\r
+        static extern void InitManagedSession(IntPtr sessionPtr, DtmfCallback dtmfDelegate, CdeclAction hangupDelegate);\r
 \r
         /// <summary>Initializes the native ManagedSession. Must be called after Originate.</summary>\r
         public void Initialize()\r
@@ -57,11 +57,11 @@ namespace FreeSWITCH.Native
             // So we don't need to worry about GCHandles and all that....\r
             // Info here: http://blogs.msdn.com/cbrumme/archive/2003/05/06/51385.aspx\r
             this._inputCallbackRef = inputCallback;\r
-            this._hangupCallback = hangupCallback;\r
-            InitManagedSession(ManagedSession.getCPtr(this).Handle, inputCallback, hangupCallback);\r
+            this._hangupCallbackRef = hangupCallback;\r
+            InitManagedSession(ManagedSession.getCPtr(this).Handle, this._inputCallbackRef, this._hangupCallbackRef);\r
         }\r
         DtmfCallback _inputCallbackRef;\r
-        CdeclAction _hangupCallback;\r
+        CdeclAction _hangupCallbackRef;\r
 \r
         /// <summary>Function to execute when this session hangs up.</summary>\r
         public Action HangupFunction { get; set; }\r