For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Log inSign up
Support
cXMLREST API
cXMLREST API
  • Core
    • Compatibility API
    • cXML Specification
  • Guides
    • Compatibility API Webhooks
    • Receive SMS
    • Send SMS
    • Inbound Fax Callback
    • Add mustache template parameters to cXML responses
    • Gathering user input
  • Voice
    • Overview
    • Conference
    • Connect
    • Denoise
    • Dial
    • Echo
    • Enqueue
    • Gather
    • Hangup
    • Leave
    • Number
    • Pause
    • Pay
    • Play
    • Queue
    • Record
    • Redirect
    • Refer
    • Reject
    • Room
    • Say
    • Sip
    • Sms
    • Stream
    • Verto
    • VirtualAgent
  • Messaging
    • Overview
    • Message
    • Redirect
  • Fax
    • Overview
    • Receive
    • Reject
LogoLogoSignalWire Docs
Log inSign up
Support
On this page
  • Verb attributes
  • Examples
  • Leaving a closed queue
  • Playing audio
  • Leave a call
Voice

Leave

|View as Markdown|Open in Claude|
Was this page helpful?
Edit this page
Previous

Number

Next
Built with

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

1<?xml version="1.0" encoding="UTF-8"?>
2<Response>
3 <Enqueue waitUrl="https://example.com/wait.xml">support</Enqueue>
4 <Say>Customer support is now closed. Please call back on the next business day. Thank you.</Say>
5</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

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

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

Leave a call

1<?xml version="1.0" encoding="UTF-8"?>
2<Response>
3 <Leave />
4</Response>

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


*Twilio and TwiML are trademarks of Twilio, Inc. SignalWire, Inc. and its products are not affiliated with or endorsed by Twilio, Inc.