Page 1 of 1

Something about fetchaudio

Posted: Wed Sep 14, 2011 12:31 pm
by walkerline
Hi, in my VXML file, it should have a fetchaudio played while waiting webserver to send request back after users enter their commands. But sometimes the fetchaudio doesnt play the hour glass sound in time after pressing the command...In other words, it seems the fetchaudio doesnt be played at all...

Here is a piece of my VXML code of fetchaudio:

<data name="resp" src="http://www.xxxxx.com" method="post" namelist="phone registrationsource" fetchaudio="audio/Tone.wav"/>

In my previous VXML service platform, after users enter their commands,system will play the hour glass sound immediately.

So, is this the case that only happens in plum?

Re: Something about fetchaudio

Posted: Wed Sep 14, 2011 1:53 pm
by support
Hi,

We believe that your script is being fetched before the fetchaudio can be played.

If you want the fetchaudio file to play even after the fetch has arrived, you can use the "fetchaudiominimum" property, as documented here.

Code: Select all

<?php
header("Content-type: text/xml");
echo("<?xml version=\"1.0\"?>\n");
?>
<vxml version="2.1">
<property name="fetchaudiominimum" value="5s"/>
<var name="phone" expr="'1234567890'"/>
<var name="registrationsource" expr="'asdf'"/>
  <form>
    <data name="resp" src="http://www.xxxxx.com" method="post" namelist="phone registrationsource" fetchaudio="holdmusic.wav"/>
    ...
    ...
    ...
  </form>
</vxml>
Regards,
Plum Support

Re: Something about fetchaudio

Posted: Wed Sep 14, 2011 3:10 pm
by walkerline
Actually, I would like to put the audio played before fetch arrive, how can I make this happen?
support wrote:Hi,

We believe that your script is being fetched before the fetchaudio can be played.

If you want the fetchaudio file to play even after the fetch has arrived, you can use the "fetchaudiominimum" property, as documented here.

Code: Select all

<?php
header("Content-type: text/xml");
echo("<?xml version=\"1.0\"?>\n");
?>
<vxml version="2.1">
<property name="fetchaudiominimum" value="5s"/>
<var name="phone" expr="'1234567890'"/>
<var name="registrationsource" expr="'asdf'"/>
  <form>
    <data name="resp" src="http://www.xxxxx.com" method="post" namelist="phone registrationsource" fetchaudio="holdmusic.wav"/>
    ...
    ...
    ...
  </form>
</vxml>
Regards,
Plum Support

Re: Something about fetchaudio

Posted: Wed Sep 14, 2011 3:23 pm
by support
Hi,

The fetchaudiominimum property still allows you to hear the audio before the fetch arrives. Our initial guess was that the fetch was happening too quickly for the fetchaudio to be played and thus, wasn't able to be heard by the caller.

Please let us know if you have any further questions on this.

Regards,
Plum Support