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

Play each number of variable

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
soso
Posts: 62
Joined: Tue Apr 22, 2008 8:11 am

Play each number of variable

Post by soso »

Hi,

I've a variable "tel", wich contains the phone number. I've audio file number.

I would like to play the audio file wich each number of the phone number.

How can I write this procedure with vxml?

Exemple : phone number is 0601010101. I would to play :

zero
six
zero
one
zero
one
zero
one

Thanks by advance.

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

IVR code example to play each number of variable

Post by support »

Here's an example of IVR code that should help you accomplish this:

Code: Select all

<?xml version="1.0"?>
<vxml version="2.0">
  <form>
  <field name="tel" type="digits?length=10">
    <prompt>
      Enter your telephone number so we can get back to you in case of a dropped call.
    </prompt>
    <filled>
      <prompt>
        You entered <say-as type="acronym"> <value expr="tel"/> </say-as>.
      </prompt>
    </filled>
  </field>
  </form>
</vxml>
For more IVR examples like this, you can go here:
http://www.plumvoice.com/docs/dev/devel ... e:tutorial

Regards,
Plum Support

Post Reply