> 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/session.telephone.dnis.md).

# session.telephone.dnis

## session.telephone.dnis <a href="#sessiontelephonednis" id="sessiontelephonednis"></a>

The phone number the caller dialed.

### Example

```markup
<?xml version="1.0" encoding="latin-1"?>
<vxml version="2.0">
  <form>
    <block>
      <prompt>
        Your phone number is
        <say-as type="acronym">
          <value expr="session.telephone.ani"/>
        </say-as>.
        You called
        <say-as type="acronym">
          <value expr="session.telephone.dnis"/>
        </say-as>.
        Your session id is
        <say-as type="acronym">
          <value expr="session.id"/>
        </say-as>.
      </prompt>
    </block>
  </form>
</vxml>
```

### Explanation

From this example, the application returns the caller's phone number, the phone number that the caller called, and the session id. Let's say the caller called from 234-867-5309 and dialed into 866-123-4567.&#x20;

The application would first say, “Your phone number is 234-867-5309.” Next, the application would say, “You called 866-123-4567.”&#x20;

However, if the caller called into a local number such as 234-123-4567, the application would only return the last 4 digits of the DNIS. In this case, the application would say, “You called 4567.”&#x20;

Finally, for the session id, the application would return a unique id such as “000005;000;1190752725” where the number before the first semicolon is a six character server identifier, the number before the second semicolon is a three digit channel identifier, and the last number is a timestamp of when the channel was ready to receive the next call.

### Notes

None
