Page 1 of 1

Wait Music

Posted: Mon Jun 22, 2009 2:24 pm
by wperry
I am required to play wait music whenever a user's input starts a long running process. Would I use an audio tag or where do I begin?

IVR code for hold music

Posted: Mon Jun 22, 2009 3:19 pm
by support
Hi Willie,

Could you please clarify what you mean by "long running process" after the user enters an input?

For IVR example, if you are doing an IVR <submit> after the user enters an input, you could do the following:

holdmusicsubmit.vxml:

Code: Select all

<?xml version="1.0"?>
<vxml version="2.0">
  <var name="myname" expr="'Jane Doe'"/>
  <form>
    <field name="drivelicense" type="digits">
      <prompt>
        <value expr="myname"/>,
        Please say your driver's license number.
      </prompt>
      <filled>
        You entered <value expr="drivelicense"/>.
        <!-- Specifying the "method" attribute as "post" -->
        <!-- otherwise it defaults to "get" which would put -->
        <!-- variable values directly into the URL. -->
        <submit next="http://nonexistent.domain.com/process.pl"
          method="post" namelist="drivelicense myname" fetchaudio="http://www.server.com/audiomusicfile.wav"/>
      </filled>
    </field>
  </form>
</vxml>
Hope this IVR code helps.

Regards,
Plum Support

Posted: Tue Jun 23, 2009 6:35 am
by wperry
That is exactly what I was looking for. I will give it a try.