Picture of Anton
Registered 5 years 173 days
Anton Monday, 12 June 2023, 02:22 PM
Unexpected behavior with GetApps
Hi,

I have found an unexpected behavior when using the PbxAdminApi with following call:
app.send({ api: "PbxAdminApi", mt: "GetApps", limit: 20})

After the initial answer im using:
app.send({ api: "PbxAdminApi", mt: "GetApps", more: lastObjectName, limit: 20 });

The GetAppsResult is returning a different amount then set with the limit.
On our test-PBX I receive 7 GetAppsResult answers.
1: 17 objects
2: 19 objects
3: 20 objects
4: 17 objects
5: 19 objects
6: 20 objects
7: 12 objects

Regards,
Anton
Andreas Fink
Moderator Registered 13 years 109 days
Andreas Fink (innovaphone) Monday, 12 June 2023, 02:42 PM
Re: Unexpected behavior with GetApps
Hello Anton,

we will need more information here:

Complete List of App Objects
JSON Messages sent and received in your example

Best Regards
Andreas Fink
Andreas Fink
Moderator Registered 13 years 109 days
Andreas Fink (innovaphone) Thursday, 15 June 2023, 11:42 AM in response to Anton
Re: Unexpected behavior with GetApps
Hello Anton,

after checking the implementation of the API i can confirm that the number of the delivered entries may be less than max number requests. This does not affect any functionality. To get complete list, ignore number of the entries in the result, but request with more until no more property is delivered.

Best Regards
Andreas Fink
← You can define your color theme preference here