API function to show number of callers in queue

Discussion in 'CRM / Helpdesk / App Integration' started by LeanMartijn, Feb 9, 2018.

Thread Status:
Not open for further replies.
  1. LeanMartijn

    Sep 13, 2017
    Likes Received:
    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.
  2. edossantos

    edossantos Support Team
    Staff Member 3CX Support

    Jun 27, 2007
    Likes Received:
    Hello @LeanMartijn,

    You need to use the 3CX Call Control API for that:

    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.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Thread Status:
Not open for further replies.