olorunfemidavis / 3CXCallControlAPI_v16

3CXCallControlAPI_v16
21 stars 15 forks source link

error on ActiveConnections.cs:line 148 #6

Open Pastis67 opened 3 years ago

Pastis67 commented 3 years ago

Hello, I got this error with latest V16 version... OMSamplesCore.exe connection makecall 45 46 give me : Exception: System.NullReferenceException: Object reference not set to an instance of an object. at TCX.Configuration.PhoneSystem.MakeCall(RegistrarRecord from_device, String destination) at OMSamples.Samples.ActiveConnections.Run(String[] args) in C:\Users\admin\Downloads\3CXCallControlAPI_v16-master\3CXCallControlAPI_v16-master\OMSamples\Samples\ActiveConnections.cs:line 148 at OMSamples.SampleStarter.StartSample(String[] args) in C:\Users\admin\Downloads\3CXCallControlAPI_v16-master\3CXCallControlAPI_v16-master\OMSamples\SampleStarter.cs:line 98 anyone has a clue ? thanks..

olorunfemidavis commented 3 years ago

Was there an active connection?

olorunfemidavis commented 3 years ago

You can also confirm if RegistrarRecord from_device and String destination is not null.

Pastis67 commented 3 years ago

hello there was no active connection... what do you mean by "not full" ? :(

olorunfemidavis commented 3 years ago

You need an active connection in order to use the Make call API. However, there are 2 other options.

Passing null (empty/ uninitialized) data to 3cX will throw an error.