From a8b12264671ff2eacaa595291f5d9b3780cb58f8 Mon Sep 17 00:00:00 2001 From: Michael Giagnocavo Date: Wed, 4 Nov 2009 21:23:33 +0000 Subject: [PATCH] Set stick flag on state handler so signal_bridge won't nuke it git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15357 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/languages/mod_managed/managed/ManagedSession.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mod/languages/mod_managed/managed/ManagedSession.cs b/src/mod/languages/mod_managed/managed/ManagedSession.cs index 931ce88e56..276778d53b 100644 --- a/src/mod/languages/mod_managed/managed/ManagedSession.cs +++ b/src/mod/languages/mod_managed/managed/ManagedSession.cs @@ -193,6 +193,7 @@ namespace FreeSWITCH.Native bleg.originate_table = new switch_state_handler_table(); bleg.originate_table.on_hangup = WrapStateHandlerDelegate(bleg.originate_onhangup_delegate); bleg.originate_table.on_destroy = WrapStateHandlerDelegate(bleg.originate_ondestroy_delegate); + bleg.originate_table.flags = (int)switch_state_handler_flag_t.SSH_FLAG_STICKY; var res = 0 == bleg.originate(aLegSession, destination, (int)timeout.TotalSeconds, bleg.originate_table); bleg.originate_keepalive_handle = GCHandle.Alloc(bleg, GCHandleType.Normal); // Prevent GC from eating the bleg if (res) {