<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
Attribute |
Value |
Default |
url | web URL | none |
Method | POST/GET | POST |
Here is an example of how <queue> is used within code.
1 2 3 4 5 6 |
<?xml version="1.0" encoding="UTF-8"?> <Response> <dial> <queue>support</queue> </dial> </Response> |
1 2 3 4 5 6 |
<?xml version="1.0" encoding="UTF-8"?> <Response> <dial> <queue url="connectionnow.xml">support</queue> </dial> </Response> |
1 2 3 4 |
<?xml version="1.0" encoding="UTF-8"?> <Response> <say>Thank you for your patience, now you will be connected to support specialist</say> </Response> |