Author Topic: Integrating Platform and SIP Endpoint SDKs  (Read 4124 times)

Offline simon

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
Integrating Platform and SIP Endpoint SDKs
« on: August 29, 2013, 04:49:37 AM »
Has anybody had any luck integrating both the latest versions of Platform and SIP Endpoint .NET SDKs into the same Visual Studio project? I'm having problems getting the different versions of the DLLs to work together.

I'm trying to modify the same QuickStart SIP phone example that comes with the SIP Endpoint SDK and on line 267:

    this.endpoint = SipEndpoint.EndpointFactory.CreateSipEndpoint(this.endpointLogger);

I get an EntryPointNotFoundException. I don't get the error if I remove the this.endpointLogger argument but then I get a NullPointerReference when I try to run:

    this.endpoint.BeginActivate();

- I'm using Windows 8 / Visual Studio 2012 and am aiming for an x86 build.
- SIP Endpoint 8.1.200.20, released 2013-Jun-14
- Platform SDK 8.1.300.50, released 2013-July-31
- I've added all the Platform SDK's DLLs into GAC, along with the Platform SDK DLLs in the SIP Endpoint SDK's Bin directory.
- The Genesyslab.Sip.Endpoint.Provider.Genesys.dll and Genesyslab.Sip.Endpoint.dll DLLs are copied to the QuickStart's output folder (Debug).

From what I can gather the DLLs shared in common by both SDKs but with different versions:
Genesyslab.Core.dll
Genesyslab.Platform.Commons.Collections.dll
Genesyslab.Platform.Commons.Connection.dll
Genesyslab.Platform.Commons.dll
Genesyslab.Platform.Commons.Protocols.dll
Genesyslab.Platform.Logging.dll
Genesyslab.Platform.Management.Protocols.dll

I've tried a bunch of various things like putting all DLLs into GAC, none in GAC, x86 and x64 settings, using only the latest version (the Platform SDK release) of the DLLs shared in common etc. but all I get are other exceptions like BadImageFormatException and FileNotFoundException.

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
Re: Integrating Platform and SIP Endpoint SDKs
« Reply #1 on: August 30, 2013, 08:38:24 AM »
I have developed some simple SIP phone based on Genesys PSDK, but not on W8 and VS2012, so I cannot confirm that it is working on this platform too. Try to debug the code and check what is the EntryPointNotFoundException generated. I never registered similiar issue during my developing. But it is a few year ago, so I do not remember all details.

Offline simon

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
Re: Integrating Platform and SIP Endpoint SDKs
« Reply #2 on: August 30, 2013, 10:05:31 AM »
Hi. Thanks for the reply.
I was actually to confirm the same issue happens with the same version of the SDKs on Windows XP and Visual Studio 2008 too.

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Integrating Platform and SIP Endpoint SDKs
« Reply #3 on: August 30, 2013, 10:19:40 AM »
Hi Simon,

I would check version of Platform SDK libraries used by SIP Endpoint and will use same Platform SDK version for development. I know it's not the best approach to use older release but it may save you a lot of time ;)

R.

Offline simon

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
Re: Integrating Platform and SIP Endpoint SDKs
« Reply #4 on: August 30, 2013, 10:29:30 AM »
Hi Rene,

Thanks for your reply.

I tried that was well with Platform SDK 8.1.200.80 and SIP Endpoint SDK 8.1.200.20 on XP but still had issues. I can't recall the exact error but it was something to do with different versions for the Platform DLLs. Either way, I need the latest versions because our requirement is the application run on Windows 8 which support was only introduced for both SDKs in their latest versions.

Offline simon

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
Re: Integrating Platform and SIP Endpoint SDKs
« Reply #5 on: September 05, 2013, 04:42:12 AM »
I got a reply from Genesys support and they said the need need to split the app into two apps, one SDK per app project. The extra work of needing to implement IPC isn't the most ideal approach but that's their reply.