A terminate clause says what to do if no selector in a trigger succeeds in finding a valid composition.
When the SIS encounters a terminate clause it will stop further trigger evaluation, and may send a protocol-specific message to the network to terminate call handling. The base XML schema for triggers defines the simplest terminate clause, the empty <terminate>
element. If the SIS encounters this terminate clause, it will perform its default termination action.
For IN, the terminate clause defines whether the termination should be recorded in statistics as a success or failure outcome. Where appropriate, the terminate clause also defines how the SIS terminates the dialog with the dialog-termination
parameter. Valid values for this parameter are:
-
none — The SIS will not terminate the dialog
-
close — The SIS sends the response within a
TC_END
(with basic end) -
user-abort — The SIS sends the response within a
TC_CONTINUE
then tears down the dialog with aTC_U_ABORT
.
The default terminate action is to respond with a User Error
with error code missing-customer-record
, and to abort the dialog. This is recorded in statistics as a failure outcome.
For SIP, the default termination action is to send a Forward
response, to forward the request to the next hop.
Terminate clauses for IN
The following terminate clauses may be used in an SIS IN trigger definition: User Error, Continue, Release, Connect, ConnectSMS, Redirect, Relay, No Response.
User Error
Description |
A User Error response. The error response code may be |
---|---|
Example: XML |
|
Example: VIA |
Continue
Description |
A Continue or ContinueSMS response. The SIS resumes the dialog state model and the call or SMS continues in the network using default call handling. |
---|---|
Example: XML |
|
Example: VIA |
Release
Description |
A ReleaseCall or ReleaseSMS response. The SIS releases the call or SMS, with the specified cause code. |
---|---|
Example: XML |
|
Example: VIA |
Connect
Description |
A Connect response. The SIS redirects the call to the specified destination routing address, described by an XML |
---|---|
Example: XML |
|
Example: VIA |
ConnectSMS
Description |
A ConnectSMS response. The SIS redirects the SMS to the specified destination subscriber number, described by an XML |
---|---|
Example: XML |
|
Example: VIA |
Redirect
Description |
A Connect or ConnectSMS response. The SIS uses its configured redirect behaviour to redirect the call by issuing a |
---|---|
Example: XML |
|
Example: VIA |
Relay
Description |
A Relay response. A dialog is opened towards the target external platform and the initial request is relayed to it, after which the incoming and relayed dialogs are terminated locally. Further communication on the dialog continues directly between the dialog originator and the external platform. A nested terminate clause must be specified for this option, which is invoked in the event the relay fails (for example, if an outgoing dialog cannot be created, or a TC_CONTINUE has already been sent on the incoming dialog). |
---|---|
Example: XML |
|
Example: VIA |
Terminate clauses for SIP
Reject
Description |
A Reject response. A reject status code must be specified (in the range 300-699), along with an optional reason phrase. Any number of additional headers may also be included in the response. |
---|---|
Example: XML |
|
Example: VIA |