[Freeswitch-users] Params to FS Native.Api() changed. How to get handle of CoreSession?

Srini K aksrini at hotmail.com
Fri Sep 5 21:46:01 MSD 2014


Is this issue closed. Please do let me know the Jira #.
 
Thanks
Srini
 
From: aademattia at comcast.net
To: freeswitch-users at 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 at lists.freeswitch.org [mailto:freeswitch-users-bounces at 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 at 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 at lists.freeswitch.org [mailto:freeswitch-users-bounces at 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 at freeswitch.org
http://www.freeswitchsolutions.com




Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at 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 at freeswitch.org
http://www.freeswitchsolutions.com




Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140905/0e028403/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list