API function to show number of callers in queue

Status
Not open for further replies.

LeanMartijn

Joined
Sep 13, 2017
Messages
8
Reaction score
0
I want to be able to show the number of callers in a queue in a seperate .net application.
Is there any example on how to do that using one of the API's?

The 3CX instance is running on debian.
 
Hello @LeanMartijn,

You need to use the 3CX Call Control API for that:
https://www.3cx.com/docs/call-control-api/

That API can only be used from the server, so if your .net app is running in a different machine, you need to send the information through the network...

You can find the number of callers waiting on the queue just checking the number of ActiveConnections for the extension assigned to that queue:
1) You can get the queue extension calling "PhoneSystem.Root.GetDNByNumber(queueExtension)"
2) You can get the number of ActiveConnections calling "DN.GetActiveConnections().Length"

Kind regards.
 
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
112,323
Messages
591,896
Members
165,473
Latest member
NathanMitchell