We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

How can I access a caller's ID or DNIS in my VoiceXML applic

Answers to common Plum DEV questions

Moderators: admin, support

Locked
support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

How can I access a caller's ID or DNIS in my VoiceXML applic

Post by support »

The session variable "session.telephone.ani" can be used to access the phone number of the caller (typically available from most phone numbers in North America).

Code: Select all

<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml">
  <form id="ani_test">
    <block>
      <prompt>
        You are calling from phone number
        <say-as type="acronym">
          <value expr="session.telephone.ani" />
        </say-as>
      </prompt>
    </block>
  </form>
</vxml>

Locked