Add hangup handler for Originate, expose state handlers in general. Various fixes.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14861 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Giagnocavo committed 2009-09-15 00:16:13 +00:00
1 parent 88b15b9e09
commit 26df0f6881
9 files changed
+54911 -55509

No files matched your search

@@ -254,6 +254,7 @@ namespace FreeSWITCH {
ApiExecutors.ForEach(x => x.SetZeroUseNotification(decreaseUnloadCount));
AppExecutors.ForEach(x => x.SetZeroUseNotification(decreaseUnloadCount));
unloadSignal.WaitOne();
GC.WaitForPendingFinalizers();
}
#endregion
@@ -288,7 +289,7 @@ namespace FreeSWITCH {
// Ensure it's a plugin assembly
var ourName = Assembly.GetExecutingAssembly().GetName().Name;
if (!asm.GetReferencedAssemblies().Any(n => n.Name == ourName)) {
Log.WriteLine(LogLevel.Debug, "Assembly {0} doesn't reference FreeSWITCH.Managed, not loading.");
Log.WriteLine(LogLevel.Debug, "Assembly {0} doesn't reference FreeSWITCH.Managed, not loading.", asm.FullName);
return false;
}