status Property
Returns an integer status value indicating the success or failure of a dual tone multi-frequency (DTMF) operation. Read-only.
statusValue = dtmf.status
Remarks
The status property is only meaningful after some event of the dtmf element occurs. When a DTMF operation concludes successfully, the status property is set to zero. A non-zero value indicates that an error has occurred. The following table contains the possible errors and their status values:
Status Value | Description |
---|---|
0 | Normal no errors. |
-1 | A generic Speech Platform error occurred during DTMF collection. |
-3 | An invalid property/attribute setting caused a problem with the DTMF collection request. |
-4 | Failed to find the Uniform Resource Identifier (URI) of a DTMF grammar resource. |
-5 | Failed to load or compile a grammar resource. |
-8 | DTMF collection was attempted without an active grammar element. |
-9 | DTMF collection was attempted while another DTMF collection was in progress. |
-11 | No DTMF input was detected within the period specified by the initialtimeout attribute. |
-13 | An invalid (out of grammar) keypress was detected. |
-16 | No DTMF input was detected within the period specified by the interdigittimeout attribute. |
-18 | Semantic Markup Language (SML) generation failure. The DTMF grammar script may contain invalid code or it may be taking too long to execute. |
-30 | DTMF collection was attempted after a disconnect. |
Events that cause the status values to be set include onerror, onreco, onnoreco, and onsilence.
See Also
dtmf Element | initialtimeout Attribute | interdigittimeout Attribute | onerror Event | onreco Event | onsilence Event