Next, we're going to build on our first call queue system and a proper queue manager.
For this, we're going to create our queue a little differently; first, we want to create the queue in advance so that we can get the queue SID. You can also use a queue you previously created using the
This queue will also work by calling an agent directly rather than having an agent call in, and once they finish their call, the agent will then be connected to the next caller in the queue.
The complete code for this recipe can be found in the
OK, let's set up our files to place all incoming calls in a queue and then call the agent, by performing the following ...