Page 1 of 1

Play each number of variable

Posted: Mon Aug 18, 2008 5:38 am
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.

IVR code example to play each number of variable

Posted: Mon Aug 18, 2008 9:59 am
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