N
N
Nikolay Yudin2019-07-10 10:28:19
PHP
Nikolay Yudin, 2019-07-10 10:28:19

Definition of free clients in a group?

There is a PHP script that picks up a phone number from the database and creates a .call file for dialing.
A call is made to the subscriber.
Change the status of the number in the database.
And send the number to the group.
Everything works well.
But here are a few buts,
1) the connection of clients from a group with a subscriber number occurs by chance. and therefore it happens that 1 client receives 2 numbers at once and in such a situation the subscriber hears music
2) the script selects numbers even if all clients in the group are talking. you need the script to determine that the clients are in a group in a conversation and pause

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Barbolin, 2019-09-02
@dronmaxman

There are a few additional questions here. What is the group in your description:
Dial(SIP/101&SIP/102) ?
It is more convenient to use a queue (Queue) for such tasks, and in the queue settings to determine the conditions for the agent to be busy. Also in the queue, you can define the conditions under which the client will be notified that all agents are busy or end the call altogether if there are no free agents in the queue.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question