Skip to content
Open
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
acab2e9
Just keep this the same for multiple dev environments on this branch
Feb 11, 2020
c3a13f7
Merge in the rest of the stuff that's been developed out of repo
drk9999 Feb 11, 2020
16bee6f
Add the plugininterface project and sln for building
drk9999 Feb 11, 2020
d713f90
had to move log and swig to the shared project so plugins can access …
drk9999 Feb 11, 2020
2b6c287
Fix sigs and namespaces
drk9999 Feb 11, 2020
0c16754
Just remembered I forgot this API arg
drk9999 Feb 11, 2020
6186cf5
Fix paths and change api/app name to dotnet
drk9999 Feb 12, 2020
e2b7093
update .gitignore
drk9999 Feb 12, 2020
79edeac
API connected through time to test to see that this method works
drk9999 Feb 12, 2020
7ac5977
Cut through DialPlanApp dispatcher. Again just bypass shane's test code
drk9999 Feb 12, 2020
6546120
Fix .gitignore again
drk9999 Feb 13, 2020
aa1dae8
add interface member for xml callback
drk9999 Feb 15, 2020
e02eb1a
Finish up dispatcher for XML callback at this point it shoud be usabl…
drk9999 Feb 15, 2020
2308892
Add helper methods. Shane: A little more swig magic needs to be done …
drk9999 Feb 16, 2020
be1266d
woops forgot load commands
drk9999 Feb 16, 2020
b6760b6
Add first test plugin
drk9999 Feb 16, 2020
32ed3db
tweak to log
drk9999 Feb 16, 2020
f553100
more logging
drk9999 Feb 17, 2020
de701e0
change entrypoint to public
drk9999 Feb 17, 2020
28a3cd4
some test code
drk9999 Feb 17, 2020
d23bf34
Try loading plugins from main, rather than API callback
drk9999 Feb 17, 2020
4380931
Attempt fix from M$'s info that when loaded from native host, there i…
drk9999 Feb 28, 2020
ef42892
Stop loading all plugins at module startup, and make sure it works to…
drk9999 Feb 28, 2020
c79e4eb
first simple test in pluging routing a call
drk9999 Feb 28, 2020
6583cea
test 2 handle APIs
drk9999 Feb 28, 2020
21ad902
add dial plan app to make sure it runs
drk9999 Feb 28, 2020
2545927
Move the answer from dialplan to dotnet dp app
drk9999 Feb 28, 2020
ff24548
Remove unused code, and get rid of extra logging now that what we hav…
drk9999 Mar 1, 2020
b27a050
Now that it has been working complete OnLoad and put itin the tests
drk9999 Mar 7, 2020
926300c
Fix for 3.1.3 paths
drk9999 Apr 1, 2020
e4b36f9
Lets finally try the test to use aspnet core
drk9999 May 11, 2020
bf0dd61
Update path for current .NET version
drk9999 Jul 4, 2020
b2ae2f0
May need help with this
drk9999 Jul 10, 2020
65ded2b
Getting there
drk9999 Jul 10, 2020
5af64f6
Getting there more
drk9999 Jul 10, 2020
cdd8af5
I think this will work
drk9999 Jul 10, 2020
b154db3
first attempt to make dtmf work
drk9999 Jul 12, 2020
58807b3
Merge branch 'v0.1beta' of github.com:freeswitch/mod_coreclr into v0.…
drk9999 Jul 12, 2020
d00dc95
Fix IVR.cs to work with new callbacks and add it to repo. Not Tested …
drk9999 Jul 13, 2020
9caefa1
add IVR test to example
drk9999 Jul 13, 2020
9206070
Update coreclr version
drk9999 Oct 20, 2020
89f0819
make sure stuff dont get GCed
drk9999 May 8, 2021
ca369d3
Keep GC from cleaning up the managed delegates
Astaelan May 8, 2021
51888af
This should fix the last GCed delegate issue
drk9999 May 11, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Loader/Loader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ public struct NativeCallbacks
public IntPtr NativeXMLCallback;
}

public static NativeCallbacks i_callbacks;

Copy link
Collaborator

@Astaelan Astaelan May 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add:
public static NativeAPICallback APICallback = null;
etc for each of the 3.

// This is the only predefined entry point, this must match what mod_coreclr.c is looking for
public static NativeCallbacks Load()
{
Expand All @@ -42,12 +44,14 @@ public static NativeCallbacks Load()
//PluginsContainer.LoadPluginsFromSubDirs(myLocation);

// Return the marshalled callbacks for the native interfaces
return new NativeCallbacks
i_callbacks = new NativeCallbacks
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add:
APICallback = new NativeAPICallback(NativeAPIHandler);
etc for the 3

{
NativeAPICallback = Marshal.GetFunctionPointerForDelegate<NativeAPICallback>(NativeAPIHandler),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to:
NativeAPICallback = Marshal.GetFunctionPointerForDelegate(APICallback);
etc for the 3

NativeAPPCallback = Marshal.GetFunctionPointerForDelegate<NativeAPPCallback>(NativeAPPHandler),
NativeXMLCallback = Marshal.GetFunctionPointerForDelegate<NativeXMLCallback>(NativeXMLHandler)
};

return i_callbacks;
}

// The Managed API interface callback delegate
Expand Down