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

Wait Music

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
wperry
Posts: 7
Joined: Wed Jun 25, 2008 8:06 am
Location: Racetrac Petroleum

Wait Music

Post 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?
Willie J. Perry
Racetrac Petroleum
Contract Developer
(770) 431-7600 ext 1644

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

IVR code for hold music

Post 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
Last edited by support on Wed Feb 24, 2010 12:35 pm, edited 4 times in total.

wperry
Posts: 7
Joined: Wed Jun 25, 2008 8:06 am
Location: Racetrac Petroleum

Post by wperry »

That is exactly what I was looking for. I will give it a try.
Willie J. Perry
Racetrac Petroleum
Contract Developer
(770) 431-7600 ext 1644

Post Reply