Params to FS Native.Api() changed. How to get handle of CoreSession?
Hi, In older version of FreeSWITCH I have been using FreeSWITCH.Native.Api(). For eg, string uuid = new FreeSWITCH.Native.Api().ExecuteString("create_uuid"); activeCalls = new FreeSWITCH.Native.Api().ExecuteString("show calls") I updated FS to latest version. Now Native.Api expects CoreSession as param. FreeSWITCH.Native.Api(FreeSWITCH.Native.CoreSession) How to get handle of CoreSession. Iam using mod_managed. Thanks in advance. Srini
Hi, I saw the same issues. Just open up mod_managed and re add the constructor back. Use the old code if you need a sample. public Api() : this(freeswitchPINVOKE.new_Api(), true) { } [DllImport("mod_managed", EntryPoint = "CSharp_new_Api")] public static extern IntPtr new_Api(); I will one day open a jar to have this fixed but I got busy. Andrew Robodialer.net From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Srini K Sent: Thursday, June 26, 2014 9:51 AM To: fs Subject: [Freeswitch-users] Params to FS Native.Api() changed. How to get handle of CoreSession? Hi, In older version of FreeSWITCH I have been using FreeSWITCH.Native.Api(). For eg, string uuid = new FreeSWITCH.Native.Api().ExecuteString("create_uuid"); activeCalls = new FreeSWITCH.Native.Api().ExecuteString("show calls") I updated FS to latest version. Now Native.Api expects CoreSession as param. FreeSWITCH.Native.Api(FreeSWITCH.Native.CoreSession) How to get handle of CoreSession. Iam using mod_managed. Thanks in advance. Srini
can someone open up a jira on this please... patches preferred. On Jun 26, 2014, at 10:04 AM, Andrew <aademattia@comcast.net> wrote:
Hi, I saw the same issues. Just open up mod_managed and re add the constructor back.
Use the old code if you need a sample.
public Api() : this(freeswitchPINVOKE.new_Api(), true) { }
[DllImport("mod_managed", EntryPoint = "CSharp_new_Api")] public static extern IntPtr new_Api();
I will one day open a jar to have this fixed but I got busy.
Andrew Robodialer.net
From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Srini K Sent: Thursday, June 26, 2014 9:51 AM To: fs Subject: [Freeswitch-users] Params to FS Native.Api() changed. How to get handle of CoreSession?
Hi, In older version of FreeSWITCH I have been using FreeSWITCH.Native.Api(). For eg, string uuid = new FreeSWITCH.Native.Api().ExecuteString("create_uuid"); activeCalls = new FreeSWITCH.Native.Api().ExecuteString("show calls")
I updated FS to latest version. Now Native.Api expects CoreSession as param. FreeSWITCH.Native.Api(FreeSWITCH.Native.CoreSession)
How to get handle of CoreSession. Iam using mod_managed.
Thanks in advance. Srini _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I will. I have an open Jar now. Once I get the dump log for my current jar I will open a jar for this. Andrew From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael Jerris Sent: Thursday, June 26, 2014 11:39 AM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Params to FS Native.Api() changed. How to get handle of CoreSession? can someone open up a jira on this please... patches preferred. On Jun 26, 2014, at 10:04 AM, Andrew <aademattia@comcast.net <mailto:aademattia@comcast.net> > wrote: Hi, I saw the same issues. Just open up mod_managed and re add the constructor back. Use the old code if you need a sample. public Api() : this(freeswitchPINVOKE.new_Api(), true) { } [DllImport("mod_managed", EntryPoint = "CSharp_new_Api")] public static extern IntPtr new_Api(); I will one day open a jar to have this fixed but I got busy. Andrew <http://robodialer.net/> Robodialer.net From: freeswitch-users-bounces@lists.freeswitch.org <mailto:freeswitch-users-bounces@lists.freeswitch.org> [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Srini K Sent: Thursday, June 26, 2014 9:51 AM To: fs Subject: [Freeswitch-users] Params to FS Native.Api() changed. How to get handle of CoreSession? Hi, In older version of FreeSWITCH I have been using FreeSWITCH.Native.Api(). For eg, string uuid = new FreeSWITCH.Native.Api().ExecuteString("create_uuid"); activeCalls = new FreeSWITCH.Native.Api().ExecuteString("show calls") I updated FS to latest version. Now Native.Api expects CoreSession as param. FreeSWITCH.Native.Api(FreeSWITCH.Native.CoreSession) How to get handle of CoreSession. Iam using mod_managed. Thanks in advance. Srini _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Is this issue closed. Please do let me know the Jira #. Thanks Srini From: aademattia@comcast.net To: freeswitch-users@lists.freeswitch.org Date: Thu, 26 Jun 2014 20:10:14 -0400 Subject: Re: [Freeswitch-users] Params to FS Native.Api() changed. How to get handle of CoreSession? I will. I have an open Jar now. Once I get the dump log for my current jar I will open a jar for this. Andrew From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael Jerris Sent: Thursday, June 26, 2014 11:39 AM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Params to FS Native.Api() changed. How to get handle of CoreSession? can someone open up a jira on this please... patches preferred. On Jun 26, 2014, at 10:04 AM, Andrew <aademattia@comcast.net> wrote: Hi,I saw the same issues. Just open up mod_managed and re add the constructor back. Use the old code if you need a sample. public Api() : this(freeswitchPINVOKE.new_Api(), true) { } [DllImport("mod_managed", EntryPoint = "CSharp_new_Api")] public static extern IntPtr new_Api(); I will one day open a jar to have this fixed but I got busy. AndrewRobodialer.net From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Srini K Sent: Thursday, June 26, 2014 9:51 AM To: fs Subject: [Freeswitch-users] Params to FS Native.Api() changed. How to get handle of CoreSession? Hi, In older version of FreeSWITCH I have been using FreeSWITCH.Native.Api(). For eg, string uuid = new FreeSWITCH.Native.Api().ExecuteString("create_uuid"); activeCalls = new FreeSWITCH.Native.Api().ExecuteString("show calls") I updated FS to latest version. Now Native.Api expects CoreSession as param. FreeSWITCH.Native.Api(FreeSWITCH.Native.CoreSession) How to get handle of CoreSession. Iam using mod_managed. Thanks in advance. Srini_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Just call it with NULL of not from inside a session. Example: using (myApi = new Api(null)) { // do your thing } --Dave From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Srini K Sent: Friday, September 05, 2014 1:46 PM To: fs Subject: Re: [Freeswitch-users] Params to FS Native.Api() changed. How to get handle of CoreSession? Is this issue closed. Please do let me know the Jira #. Thanks Srini From: aademattia@comcast.net To: freeswitch-users@lists.freeswitch.org Date: Thu, 26 Jun 2014 20:10:14 -0400 Subject: Re: [Freeswitch-users] Params to FS Native.Api() changed. How to get handle of CoreSession? I will. I have an open Jar now. Once I get the dump log for my current jar I will open a jar for this. Andrew From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael Jerris Sent: Thursday, June 26, 2014 11:39 AM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Params to FS Native.Api() changed. How to get handle of CoreSession? can someone open up a jira on this please... patches preferred. On Jun 26, 2014, at 10:04 AM, Andrew <aademattia@comcast.net> wrote: Hi, I saw the same issues. Just open up mod_managed and re add the constructor back. Use the old code if you need a sample. public Api() : this(freeswitchPINVOKE.new_Api(), true) { } [DllImport("mod_managed", EntryPoint = "CSharp_new_Api")] public static extern IntPtr new_Api(); I will one day open a jar to have this fixed but I got busy. Andrew Robodialer.net From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Srini K Sent: Thursday, June 26, 2014 9:51 AM To: fs Subject: [Freeswitch-users] Params to FS Native.Api() changed. How to get handle of CoreSession? Hi, In older version of FreeSWITCH I have been using FreeSWITCH.Native.Api(). For eg, string uuid = new FreeSWITCH.Native.Api().ExecuteString("create_uuid"); activeCalls = new FreeSWITCH.Native.Api().ExecuteString("show calls") I updated FS to latest version. Now Native.Api expects CoreSession as param. FreeSWITCH.Native.Api(FreeSWITCH.Native.CoreSession) How to get handle of CoreSession. Iam using mod_managed. Thanks in advance. Srini _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
https://jira.freeswitch.org/browse/FS-6675 I need to give them a sample in 64bit to show it crashes. If you have time to add a sample that would help me out. Andrew From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Srini K Sent: Friday, September 5, 2014 1:46 PM To: fs Subject: Re: [Freeswitch-users] Params to FS Native.Api() changed. How to get handle of CoreSession? Is this issue closed. Please do let me know the Jira #. Thanks Srini _____ From: aademattia@comcast.net <mailto:aademattia@comcast.net> To: freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org> Date: Thu, 26 Jun 2014 20:10:14 -0400 Subject: Re: [Freeswitch-users] Params to FS Native.Api() changed. How to get handle of CoreSession? I will. I have an open Jar now. Once I get the dump log for my current jar I will open a jar for this. Andrew From: freeswitch-users-bounces@lists.freeswitch.org <mailto:freeswitch-users-bounces@lists.freeswitch.org> [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael Jerris Sent: Thursday, June 26, 2014 11:39 AM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Params to FS Native.Api() changed. How to get handle of CoreSession? can someone open up a jira on this please... patches preferred. On Jun 26, 2014, at 10:04 AM, Andrew <aademattia@comcast.net <mailto:aademattia@comcast.net> > wrote: Hi, I saw the same issues. Just open up mod_managed and re add the constructor back. Use the old code if you need a sample. public Api() : this(freeswitchPINVOKE.new_Api(), true) { } [DllImport("mod_managed", EntryPoint = "CSharp_new_Api")] public static extern IntPtr new_Api(); I will one day open a jar to have this fixed but I got busy. Andrew <http://robodialer.net/> Robodialer.net From: freeswitch-users-bounces@lists.freeswitch.org <mailto:freeswitch-users-bounces@lists.freeswitch.org> [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Srini K Sent: Thursday, June 26, 2014 9:51 AM To: fs Subject: [Freeswitch-users] Params to FS Native.Api() changed. How to get handle of CoreSession? Hi, In older version of FreeSWITCH I have been using FreeSWITCH.Native.Api(). For eg, string uuid = new FreeSWITCH.Native.Api().ExecuteString("create_uuid"); activeCalls = new FreeSWITCH.Native.Api().ExecuteString("show calls") I updated FS to latest version. Now Native.Api expects CoreSession as param. FreeSWITCH.Native.Api(FreeSWITCH.Native.CoreSession) How to get handle of CoreSession. Iam using mod_managed. Thanks in advance. Srini _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Thanks Andrew for pointing me to the Jira. Is this a new issue you are talking about, regarding FS crash on 64 bit? Is the latest FS 64 bit is not stable on windows? We are using FS 1.3.17, 64bit on win and its stable. Also we found FS 1.5.6b (32 bit) is stable too on win. We want to upgrade FS to the latest version to be used as 64 bit on win. We came accross this API issue. Thanks Srini From: aademattia@comcast.net To: freeswitch-users@lists.freeswitch.org Date: Fri, 5 Sep 2014 13:57:52 -0400 Subject: Re: [Freeswitch-users] Params to FS Native.Api() changed. How to get handle of CoreSession? https://jira.freeswitch.org/browse/FS-6675 I need to give them a sample in 64bit to show it crashes.If you have time to add a sample that would help me out. Andrew From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Srini K Sent: Friday, September 5, 2014 1:46 PM To: fs Subject: Re: [Freeswitch-users] Params to FS Native.Api() changed. How to get handle of CoreSession? Is this issue closed. Please do let me know the Jira #. Thanks Srini From: aademattia@comcast.net To: freeswitch-users@lists.freeswitch.org Date: Thu, 26 Jun 2014 20:10:14 -0400 Subject: Re: [Freeswitch-users] Params to FS Native.Api() changed. How to get handle of CoreSession?I will. I have an open Jar now. Once I get the dump log for my current jar I will open a jar for this. Andrew From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael Jerris Sent: Thursday, June 26, 2014 11:39 AM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Params to FS Native.Api() changed. How to get handle of CoreSession? can someone open up a jira on this please... patches preferred. On Jun 26, 2014, at 10:04 AM, Andrew <aademattia@comcast.net> wrote: Hi,I saw the same issues. Just open up mod_managed and re add the constructor back. Use the old code if you need a sample. public Api() : this(freeswitchPINVOKE.new_Api(), true) { } [DllImport("mod_managed", EntryPoint = "CSharp_new_Api")] public static extern IntPtr new_Api(); I will one day open a jar to have this fixed but I got busy. AndrewRobodialer.net From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Srini K Sent: Thursday, June 26, 2014 9:51 AM To: fs Subject: [Freeswitch-users] Params to FS Native.Api() changed. How to get handle of CoreSession? Hi, In older version of FreeSWITCH I have been using FreeSWITCH.Native.Api(). For eg, string uuid = new FreeSWITCH.Native.Api().ExecuteString("create_uuid"); activeCalls = new FreeSWITCH.Native.Api().ExecuteString("show calls") I updated FS to latest version. Now Native.Api expects CoreSession as param. FreeSWITCH.Native.Api(FreeSWITCH.Native.CoreSession) How to get handle of CoreSession. Iam using mod_managed. Thanks in advance. Srini_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
The 64bit never worked in embedded mode as far as I can tell. When you hit play/debug it will just crash on start up. I tested this with 1.2 all the way to master. The fix is just remove by ref. No issues if you make a dll and run it the other way. Andrew From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Srini K Sent: Monday, September 8, 2014 8:04 AM To: fs Subject: Re: [Freeswitch-users] Params to FS Native.Api() changed. How to get handle of CoreSession? Thanks Andrew for pointing me to the Jira. Is this a new issue you are talking about, regarding FS crash on 64 bit? Is the latest FS 64 bit is not stable on windows? We are using FS 1.3.17, 64bit on win and its stable. Also we found FS 1.5.6b (32 bit) is stable too on win. We want to upgrade FS to the latest version to be used as 64 bit on win. We came accross this API issue. Thanks Srini _____ From: aademattia@comcast.net <mailto:aademattia@comcast.net> To: freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org> Date: Fri, 5 Sep 2014 13:57:52 -0400 Subject: Re: [Freeswitch-users] Params to FS Native.Api() changed. How to get handle of CoreSession? https://jira.freeswitch.org/browse/FS-6675 I need to give them a sample in 64bit to show it crashes. If you have time to add a sample that would help me out. Andrew From: freeswitch-users-bounces@lists.freeswitch.org <mailto:freeswitch-users-bounces@lists.freeswitch.org> [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Srini K Sent: Friday, September 5, 2014 1:46 PM To: fs Subject: Re: [Freeswitch-users] Params to FS Native.Api() changed. How to get handle of CoreSession? Is this issue closed. Please do let me know the Jira #. Thanks Srini _____ From: aademattia@comcast.net <mailto:aademattia@comcast.net> To: freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org> Date: Thu, 26 Jun 2014 20:10:14 -0400 Subject: Re: [Freeswitch-users] Params to FS Native.Api() changed. How to get handle of CoreSession? I will. I have an open Jar now. Once I get the dump log for my current jar I will open a jar for this. Andrew From: freeswitch-users-bounces@lists.freeswitch.org <mailto:freeswitch-users-bounces@lists.freeswitch.org> [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael Jerris Sent: Thursday, June 26, 2014 11:39 AM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Params to FS Native.Api() changed. How to get handle of CoreSession? can someone open up a jira on this please... patches preferred. On Jun 26, 2014, at 10:04 AM, Andrew <aademattia@comcast.net <mailto:aademattia@comcast.net> > wrote: Hi, I saw the same issues. Just open up mod_managed and re add the constructor back. Use the old code if you need a sample. public Api() : this(freeswitchPINVOKE.new_Api(), true) { } [DllImport("mod_managed", EntryPoint = "CSharp_new_Api")] public static extern IntPtr new_Api(); I will one day open a jar to have this fixed but I got busy. Andrew <http://robodialer.net/> Robodialer.net From: freeswitch-users-bounces@lists.freeswitch.org <mailto:freeswitch-users-bounces@lists.freeswitch.org> [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Srini K Sent: Thursday, June 26, 2014 9:51 AM To: fs Subject: [Freeswitch-users] Params to FS Native.Api() changed. How to get handle of CoreSession? Hi, In older version of FreeSWITCH I have been using FreeSWITCH.Native.Api(). For eg, string uuid = new FreeSWITCH.Native.Api().ExecuteString("create_uuid"); activeCalls = new FreeSWITCH.Native.Api().ExecuteString("show calls") I updated FS to latest version. Now Native.Api expects CoreSession as param. FreeSWITCH.Native.Api(FreeSWITCH.Native.CoreSession) How to get handle of CoreSession. Iam using mod_managed. Thanks in advance. Srini _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (4)
-
Andrew
-
Dave Kompel
-
Michael Jerris
-
Srini K