> For the complete documentation index, see [llms.txt](https://docs.plumvoice.com/dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.plumvoice.com/dev/voicexml/application-and-session-variables.md).

# 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.&#x20;

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](/dev/voicexml/application-and-session-variables/application.lastresultusd-i-.confidence.md)               | 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](/dev/voicexml/application-and-session-variables/application.lastresultusd-i-.utterance.md)                 | 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](/dev/voicexml/application-and-session-variables/application.lastresultusd-i-.inputmode.md)                 | The mode in which user input was provided: dtmf or voice.                                                                                                |
| [application.lastresult$\[i\].interpretation](/dev/voicexml/application-and-session-variables/application.lastresultusd-i-.interpretation.md)       | Contains the interpretation, or the exact match to the active grammar.                                                                                   |
| [application.lastresult$\[i\].recording](/dev/voicexml/application-and-session-variables/application.lastresultusd-i-.recording.md)                 | Contains the last utterance if the global property [recordutterance](/dev/voicexml/properties/recordutterance.md) is set and audio was collected.        |
| [application.lastresult$\[i\].recordingsize](/dev/voicexml/application-and-session-variables/application.lastresultusd-i-.recordingsize.md)         | Contains the last utterance recording size in bytes.                                                                                                     |
| [application.lastresult$\[i\].recordingduration](/dev/voicexml/application-and-session-variables/application.lastresultusd-i-.recordingduration.md) | Contains the last utterance duration size in milliseconds.                                                                                               |

## Session Variables

| Variable                                                                                            | Description                                                                                                                                                                                                                                                       |
| --------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [session.telephone.ani](/dev/voicexml/application-and-session-variables/session.telephone.ani.md)   | The caller's phone number.                                                                                                                                                                                                                                        |
| [session.telephone.dnis](/dev/voicexml/application-and-session-variables/session.telephone.dnis.md) | The phone number the caller dialed                                                                                                                                                                                                                                |
| [session.id](/dev/voicexml/application-and-session-variables/session.id.md)                         | 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. |
| [session.callrecording](/dev/voicexml/application-and-session-variables/session.callrecording.md)   | Shadow variable that contains the call recording when using the [recordcall](/dev/voicexml/properties/recordcall.md) property.                                                                                                                                    |
| session.connection.callee\_type                                                                     | Used to determine who or what answers an outbound call.                                                                                                                                                                                                           |
