Skip to main content

Reject

The Reject verb rejects a call to your Telnyx number. It is effectively an exit statement from the current document, as there is no way to return to any instructions listed after the Reject verb. If placed as the very first verb in an incoming call, Reject will prevent the call from being answered and will incur no cost. If placed elsewhere in the call, the call will hang up, but will be charged up to that point.

You can't nest any verbs within Reject and you can't nest Reject in any other verbs.

Attributes

ATTRIBUTEDESCRIPTIONOPTIONSDEFAULT
reason The tone to play to indicate the reason the call was rejected. rejected, busy rejected

Example

<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Reject reason="busy"/>
</Response>