<queue>

Role: <queue> keyword can be used to pick up calls waiting in the queue. Every time you send the agent to new queue, it will automatically pickup the call waiting for longest period of the time.

Use:

  • Call Center: Want build a call center type of application. You can use queue and enqueue to put the caller in the queue and queue to connect the agents with the callers waiting.

While there are no limitation on where <queue> can be used, there are set of attributes to use with <queue>. Below is a list of attributes to be used with <queue>, each attribute has a specific function and can use certain values.

Attributes

Here is an example of how <queue> is used within code.

<?xml version="1.0" encoding="UTF-8"?> 
<Response>
     <dial>
         <queue>support</queue>
     </dial>
 </Response>

In the above example, caller waiting in queue will be connect the agent. If you want to make an announcement to the caller. Follow the example below.

<?xml version="1.0" encoding="UTF-8"?> 
<Response>
     <dial>
         <queue url="connectionnow.xml">support</queue>
     </dial>
 </Response>

System will pull connectingnow.xml and execute the instructions before connecting the caller to the agent. Here is sample example file for connectingnow.xml

<?xml version="1.0" encoding="UTF-8"?> 
<Response>
         <say>Thank you for your patience, now you will be connected to support specialist</say>
 </Response>

Troubleshooting

  • Make sure attributes inside the nodes are in quotes " ".

Last updated