3cx-web-API icon indicating copy to clipboard operation
3cx-web-API copied to clipboard

Attempting this against 16.0.8.9 gives errors and returns no data

Open JasonEde opened this issue 4 years ago • 2 comments

API set up and running on 8888 on test system and trying something like showallcalls I can see it picked up the calls in the debug window, but after them "Object reference not set to an instance of an object." Browser or curl requests just seem to hang.

JasonEde avatar May 07 '21 09:05 JasonEde

The error resolves to the Logger line below I think qa isn't returning for some reason.

var qa =new Queue[] { ps.GetDNByNumber(Queue_number) as Queue }; Logger.WriteLine( qa[0].Name); Queuename = qa[0].Name;

JasonEde avatar May 07 '21 10:05 JasonEde

Looks like the queue-number length is fixed to 4 digits.

I tried rewriting this: https://github.com/adn77/3cx-web-API/commit/bc8157a6483dd300c4e8c470f3a12efbb6b34df1#diff-522d9766d06b53099ebb37697620421fcd4e4861585ee696f85f8a7872a2fbe8

adn77 avatar May 02 '23 14:05 adn77