Plum DEV Documentation

Application and Session Variables

For Standard Application Variables, application.lastresult$ holds information about the last recognition to occur within this application. It is an array of elements where each element, application.lastresult$[i], represents a possible result. The number of application.lastresult$ elements will always be greater than or equal to one and less than or equal to 5. For Session Variables, there are three variables that allow you to use the caller's phone number, the phone number the caller dialed, and a unique ID for the session.

Standard Application Variables

Application Variable Description
application.lastresult$[i].confidenceConfidence level for this utterance. A value of 0.0 indicates minimum confidence, and a value of 1.0 indicates maximum confidence.
application.lastresult$[i].utteranceThe raw string of words that were recognized for this interpretation.In the case of a DTMF grammar, this variable will contain the matched digit string.
application.lastresult$[i].inputmodeThe mode in which user input was provided: dtmf or voice.
application.lastresult$[i].interpretationContains the interpretation, or the exact match to the active grammar.
application.lastresult$[i].recordingContains the last utterance if the global property “recordutterance” is set and audio was collected.
application.lastresult$[i].recordingsizeContains the last utterance recording size in bytes.
application.lastresult$[i].recordingdurationContains the last utterance duration size in milliseconds.

Session Variables

Variable Description
session.telephone.aniThe caller's phone number.
session.telephone.dnisThe phone number the caller dialed
session.idA unique ID for each session. The ID consists of a six character server identifier (defaults to “000000”), followed by a semicolon, followed by a three digit channel identifier, followed by a timestamp of when the channel was ready to receive the next call.
session.callrecordingShadow variable that contains the call recording when using the recordcall property.