Plum DEV Reference Manual

Plum DEV v. 3.0

© 2013 Plum Group, Inc. All rights reserved.

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].confidence
Confidence level for this utterance. A value of 0.0 indicates minimum confidence, and a value of 1.0 indicates maximum confidence.
application.lastresult$[i].utterance
The 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].inputmode
The mode in which user input was provided: dtmf or voice.
application.lastresult$[i].interpretation
Contains the interpretation, or the exact match to the active grammar.
application.lastresult$[i].recording
Contains the last utterance if the global property "recordutterance" is set and audio was collected.
application.lastresult$[i].recordingsize
Contains the last utterance recording size in bytes.
application.lastresult$[i].recordingduration
Contains the last utterance duration size in milliseconds.

Session Variables

Variable Description
session.telephone.ani
The caller's phone number.
session.telephone.dnis
The phone number the caller dialed.
session.id
A 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.