Andreas Fink
Moderator Registered 13 years 166 days
Andreas Fink (innovaphone) Thursday, 20 July 2023, 11:43 AM in response to V1p
Re: PBX API don't work for me, and i found another way JavaScript
Hello Thomas,

the reason the PbxAdminApi does not work on i direct connection from a User to the PBX is a security consideration.

If a specific PBX User has access to an App that has API access to the PbxAdminApi, the PBX User should still be not able to use the PbxAdminApi on the direct connection from User client to the PBX. This way any user with access to an App with activated PbxAdminApi could do any thing on the PBX.

The correct workaround for this is to implement own API in the App, that handles custom requests from PBX User, translates it to a specific PbxAdminApi messages and forwards them to the PBX.

An example of such implementation can be found in the following github repository:
https://github.com/innovaphone/jslicenseexample

The handling of incoming API messages from the client is done here:

The part where the PbxAdminApi is handled is done here:

In this case the response messages are sent directly, but you could implement own handling to filter data or to trigger activities.

The client part, where JSON requests are started is done here:


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