Picture of iqbal
Registered 5 years 81 days
iqbal Monday, 6 February 2023, 05:43 PM
Set line status to busy in PBX via websocket API
Hi
I want to ask if it is possible to Set user line status to busy in PBX via websocket API.

currently only the presence can be set to busy, but not the line itself and if user is calling on some other system, he gets incoming call in pbx to.

in this situation call from pbx should be signaled as busy because user cannot take that call.

so is there way to set line to busy as soon as user has a call on some other system?

BR
Iqbal

Andreas Fink
Moderator Registered 12 years 277 days
Andreas Fink (innovaphone) Friday, 10 February 2023, 03:17 PM
Re: Set line status to busy in PBX via websocket API
Hello Iqbal,

the PbxApi with AddAlienCall could be used for this:


Please notice, that PbxApi is used in context of a user. In case it should be used from App Service in the context of a specific user, the Impersonation API must be used to create PbxApi connection, that gives a possibility to use PbxApi in context of a specific user.

Best Regards
Andreas Fink

Picture of iqbal
Registered 5 years 81 days
iqbal Tuesday, 14 February 2023, 10:20 AM
Re: Set line status to busy in PBX via websocket API
Hi Andreas
can I use already existing pbx websocket connection(which is established by App service) for impersonation or i have to create new pbx websocket connection for each impersonation request. Or is there any SDK interface for that purpose.
BR
Iqbal
Andreas Fink
Moderator Registered 12 years 277 days
Andreas Fink (innovaphone) Monday, 20 February 2023, 05:27 PM
Re: Set line status to busy in PBX via websocket API
Hello Iqbal,

the Impersonation API will create a new API on the existing WS connection. So you must use the same WS connection, where you called the Impersonation API before.

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