Dismiss Notice
We would like to remind you that we’re updating our login process for all 3CX forums whereby you will be able to login with the same credentials you use for the Partner or Customer Portal. Click here to read more.

API and linux

Discussion in 'CRM / Helpdesk / App Integration' started by Gerard1982, Dec 25, 2017.

Thread Status:
Not open for further replies.
  1. Gerard1982

    Joined:
    Dec 24, 2017
    Messages:
    4
    Likes Received:
    0
  2. edossantos

    edossantos Support Team
    Staff Member 3CX Support

    Joined:
    Jun 27, 2007
    Messages:
    1,611
    Likes Received:
    126
    Hello @Gerard1982,

    Yes, you can use this API from Linux, but you need to target .NET Core 1.0 for 3CX v15.5 Update 2.

    If you use the just released Update 3 alpha, then you should target .NET Core 2.0.

    Kind regards.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Gerard1982

    Joined:
    Dec 24, 2017
    Messages:
    4
    Likes Received:
    0
    Thanks for your answer, with .core 1.0 as the target I get the same error :

    System.DllNotFoundException: Unable to load DLL 'tcxpscom_native': Kan opgegeven module niet vinden. (Exception from HRESULT: 0x8007007E)

    I can find the dll under Windows. Within the linux installation this is not available.
     
  4. edossantos

    edossantos Support Team
    Staff Member 3CX Support

    Joined:
    Jun 27, 2007
    Messages:
    1,611
    Likes Received:
    126
    Hello @Gerard1982,

    Are you using the reference to the file "3cxpscomcpp2.dll" taken from the Linux server?

    Kind regards.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Gerard1982

    Joined:
    Dec 24, 2017
    Messages:
    4
    Likes Received:
    0
    Yes , output on the Linux server :

    root@debian:/usr/lib/x2r# dotnet ConsoleApp6.dll
    /usr/lib/x2r/3CXPhoneSystem.ini
    Config Found!!!!!
    Instance bin path:/usr/lib/3cxpbx/
    Bootstrap
    /usr/lib/3cxpbx/System.Core.dll
    System.DllNotFoundException: Unable to load DLL 'tcxpscom_native': The specified module could not be found.
    (Exception from HRESULT: 0x8007007E)
    at TCX.Configuration.PhoneSystem.RegisterListener(MyPFN_UPDATE_LISTENER f)
    at TCX.Configuration.PhoneSystem.get_Root()
    at ConsoleApp6.Program.Bootstrap(String filePath, String[] args)
    at ConsoleApp6.Program.Main(String[] args)
    root@debian:/usr/lib/x2r#
     
  6. edossantos

    edossantos Support Team
    Staff Member 3CX Support

    Joined:
    Jun 27, 2007
    Messages:
    1,611
    Likes Received:
    126
    OK, but you have Visual Studio installed on a Windows machine, right? Your Visual Studio project is referencing the library "3cxpscomcpp2.dll". Where did you take that DLL? Did you take it from the Linux server or from a Windows installation?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Gerard1982

    Joined:
    Dec 24, 2017
    Messages:
    4
    Likes Received:
    0
    I have copied this with winscp from the linux server.
    I can also add it within my .net core project. With the dll of the windows version this is not possible, because this is .net 4.?
     
  8. edossantos

    edossantos Support Team
    Staff Member 3CX Support

    Joined:
    Jun 27, 2007
    Messages:
    1,611
    Likes Received:
    126
    Both are .NET Core 1.0, but they're different implementations. Did it work with the DLL taken from the Linux server?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Thread Status:
Not open for further replies.