]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Set stick flag on state handler so signal_bridge won't nuke it
authorMichael Giagnocavo <mgg@giagnocavo.net>
Wed, 4 Nov 2009 21:23:33 +0000 (21:23 +0000)
committerMichael Giagnocavo <mgg@giagnocavo.net>
Wed, 4 Nov 2009 21:23:33 +0000 (21:23 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15357 d0543943-73ff-0310-b7d9-9358b9ac24b2

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

index 931ce88e5699aa2a9f088a23732beca5cca94e11..276778d53bcbc99c05481bb685ecc2968c821ecb 100644 (file)
@@ -193,6 +193,7 @@ namespace FreeSWITCH.Native
             bleg.originate_table = new switch_state_handler_table();\r
             bleg.originate_table.on_hangup = WrapStateHandlerDelegate(bleg.originate_onhangup_delegate);\r
             bleg.originate_table.on_destroy = WrapStateHandlerDelegate(bleg.originate_ondestroy_delegate);\r
+            bleg.originate_table.flags = (int)switch_state_handler_flag_t.SSH_FLAG_STICKY;\r
             var res = 0 == bleg.originate(aLegSession, destination, (int)timeout.TotalSeconds, bleg.originate_table);\r
             bleg.originate_keepalive_handle = GCHandle.Alloc(bleg, GCHandleType.Normal); // Prevent GC from eating the bleg\r
             if (res) {\r