I have gone through the manual on how to save audio files via vxml. The manual provides the following example application which is incorrect.
Code: Select all
<vxml version="2.0">
<var name="pin" value="'12345678'"/>
<form>
<record name="recording" beep="true" type="audio/basic">
<prompt bargein="false">
Please record your message after the beep.
</prompt>
<catch event="nomatch noinput"/>
<reprompt/>
</catch>
</record>
<!-- The subdialog takes a namelist "pin recording" -->
<!-- and returns success(bool), fileid, and fileurl -->
<subdialog next="http://audio.plumgroup.com/vxml/file_upload_subdialog.php"
namelist="pin recording" method="post">
<filled>
<if cond="success">
<prompt>
File uploaded successfully.
The file ID is <value expr="fileid"/>.
Your message was <audio srcexpr="fileurl"/>.
</prompt>
<else/>
<prompt>
File upload failed.
</prompt>
</if>
</filled>
</subdialog>
</form>
</vxml>
Code: Select all
<?xml version="1.0"?>
<vxml version="2.0">
<var name="pin" expr="'12345678'"/>
<form>
<record name="recording" beep="true" type="audio/basic">
<prompt bargein="false">
Please record your message after the beep.
</prompt>
<catch event="nomatch noinput">
<reprompt/>
</catch>
</record>
<!-- The subdialog takes a namelist "pin recording" -->
<!-- and returns success(bool), fileid, and fileurl -->
<subdialog name="oResult" src="http://audio.plumgroup.com/vxml/file_upload_subdialog.php" namelist="pin recording" method="post">
<filled>
<if cond="oResult.success">
<prompt>
File uploaded successfully.
The file ID is <value expr="oResult.fileid"/>.
Your message was <audio expr="oResult.fileurl"/>.
</prompt>
<else/>
<prompt>
File upload failed.
</prompt>
</if>
</filled>
</subdialog>
</form>
</vxml>
error no_ani 2 [11/Aug/2004:11:13:28 -0400] 3845 000000;002;1092237172 errmsg ReferenceError: status is not defined line 1 linetxt tokentxt
This is not very discriptive. Can you please tell me what I am doing wrong?
Thanks in advance
Steve H.