Skip to main content

<Reject>

TL;DR

<Reject> the voice application execution.

Need Help? Let's Talk

Join our Discord community - we're here to help.

Description

The <Reject> verb rejects an incoming call, possibly with a custom "reason code".

Example

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

Attributes

The following attributes are supported:

Attribute NameAllowed ValuesDefault Value
reasonrejected, busy, congestion, failedrejected

This verb is useful when connecting an inbound SIP trunk to the Cloudonix platform, to filter out specific incoming calls that should not be handled, according to parameters sent in The Voice Application Runtime Request.

Attribute: reason

The rejection reason to send to the caller and record in the session's call data record.

The following table lists, for each reason value, what specific SIP response code will be sent to a caller that was connected to the Cloudonix platform using a SIP trunk:

ReasonSIP response codeDescription
rejected486 Busy HereThe caller has actively rejected the call - similar to pressing the hangup button on an incoming call in a cellular phone
busy486 Busy HereThe caller is already engaged in a call and cannot take a new call
congestion500 Internal Server ErrorThe call cannot be taken due to a failue in the application
failed603 DeclinedThe call is rejected due to insufficient credit balance or a similar reason