C# application (WebAPI .NET 6.0) integration issue with cxpscom_native.dll and sl.dll references.

Status
Not open for further replies.

Christophe DaSilva

Free User
Joined
Nov 21, 2023
Messages
9
Reaction score
0
Hello everyone

We are attempting to initiate a call flow from a custom C# application (WebAPI .NET 6.0).

Through our initial testing method:

[HttpPost]
public ActionResult Post()
{
try
{
// "arg1", "Source of the call"
// "arg2", "Destination of the call"
string arg1 = "100";
string arg2 = "XXXXXXXXXX"; // replaced with the destination number
PhoneSystem.Root.MakeCall(arg1, arg2);

return Ok("Test app success");
}
catch (Exception ex)
{
_logger.LogError($"Error during the call: {ex.Message}");
Console.WriteLine(_logger);
return StatusCode(500, "An error occurred during the call.");
}
}

We don't have any errors in the script, and the dll (3cxpscomcpp2.dll) has been successfully integrated.

The goal is to initiate a call using a C# script. However, we are encountering an error related to the dll (cxpscom_native.dll) that we are unable to integrate into the project when we attempt to add the reference.

Where could the issue with integrating the dll originate from? (Please note that the "sll.dll" also refuses to integrate, and we receive an "unsupported or invalid reference" error.)

Capture44.PNG

Could someone provide us with assistance on this matter or point us in the right direction?

Thank you for the community's help.

Best regards.
 
Last edited:
Just copy those DLLs from the 3CX installation folder to your project folder.
 
Hello and thank you edossantos for your help and patience. In the end, I had only placed the cxpscom_native.dll in the project and had not included the sl.dll. Once both were added, it worked. However, I now have this error: TCX.Configuration.Exceptions.PhoneSystemException: 'ConfigServer is not connected.' I also included the 3CXPhoneSystem.ini in the project as suggested in a forum thread, but I am still encountering the same error. Can you please guide me on where the problem might be originating from? thank you so much Best regards
 
I have a similar issue - a small .NET 6 app working fine running fine making calls against 3cxpscomcpp2.dll in 3CX v18, but when running the same app in v20 (and the new 3cxpscomcpp2.dll from the V20 installation dir) I get the same error message 'TCX.Configuration.Exceptions.PhoneSystemException: Configuration server is not connected
at TCX.Configuration.PhoneSystem.get_Root()'

Any pointers appreciated
 
Status
Not open for further replies.

Forum statistics

Threads
112,285
Messages
591,704
Members
165,406
Latest member
ARKC