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