Picture of nick_name
Registered 342 days 20 hours
nick_name Wednesday, 21 February 2024, 09:22 AM
PbxApi - SubscribePresence
I have a websocket open from the PBX to our own application (nodejs) to keep track of the logins/logouts as well as the 'away' statuses.
For this, I use the 'SubscribePresence' (PbxApi).

We have 20 operators, do I need to open a 'subscribe' for each operator?
Or can I open one 'subscribe' where all active operators at that time are monitored?

Currently, I am using the following call:

{ api: 'PbxApi', mt: 'SubscribePresence', num: 4001, src: 4001 }
Andreas Fink
Moderator Registered 12 years 277 days
Andreas Fink (innovaphone) Friday, 23 February 2024, 02:22 PM
Re: PbxApi - SubscribePresence
Hello Nick,

you have to send SubscribePresence for every user that should be monitored.

Keep in mind, the PbxApi is user centric API. If you use it from a WebSocket connection from App Object to your App Service, the subscriptions are set up in the name of the App Object.

If you want to use some specific User for monitoring other Users, you have to set up a dedicated API by using the PbxImpersonation API https://sdk.innovaphone.com/14r1/doc/appwebsocket/PbxImpersonation.htm.

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