Last reviewed: 3/23/2024 12:06:45 PM

<disconnect>

A <disconnect> element disconnects a session.

Syntax

<disconnect namelist="var1 ..." />

Attributes

namelist

(2.1) Variable names to be returned to the interpreter context. The default is to return no variables; this means the interpreter context will receive an empty ECMAScript object. If an undeclared variable is referenced in the namelist, then an error.semantic is thrown.

Children

<audio>

Parents

<block>, <catch>, <error>, <filled>, <help>, <if>, <noinput>, <nomatch>, and <prompt>.

Variables

none

Example

The following example illustrates using example elements.

<catch event="noinput">
      <disconnect />
</catch>

Version Information

Supported in: VoiceXML 1.0, VoiceXML 2.0, and VoiceXML 2.1.