Skip to main content

<Leave>

The <Leave> verb transfers a call out of the queue containing that call. It then returns the flow of execution to verb following the <Enqueue> that placed this call into the queue.

Verb Attributes

The <Leave> verb does not support any attributes.

Examples

Leaving a Closed Queue

<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Enqueue waitUrl="https://example.com/wait.xml">support</Enqueue>
<Say>Customer support is now closed. Please call back on the next business day. Thank you.</Say>
</Response>

Callers who are waiting in the queue for customer support will automatically be directed out of the queue after closing hours. SignalWire will notify these callers that they have left the queue and will have to try calling back another day.

Playing Audio

<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Play>http://your-application.com/music.mp3</Play>
</Response>

SignalWire will play hold music for the callers in the queue until customer support hours are over.

Leave a Call

<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Leave />
</Response>

wait.xml will dequeue the callers after closing hours and prompt the <Say> statement in the first example.