session.telephone.dnis

The phone number the caller dialed.


Example

<?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. The application would first say, "Your phone number is 234-867-5309." Next, the application would say, "You called 866-123-4567." 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." 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