Problem accessing voice message.
Posted: Sun Feb 25, 2007 12:46 pm
I am recording a message in my vice application
<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml">
<property name="universals" value="all" />
<var name="cSmsg"/>
.........
...........
<record name="recmsg" beep="true" maxtime="60s"
finalsilence="4000ms" dtmfterm="true" type="audio/x-wav">
.....................
...................
<assign name="cSmsg" expr="recmsg"/>
<prompt>
<voice gender="female">
Here's what you recorded
</voice >
</prompt>
<audio expr="cSmsg"/>
<prompt>
.........
........
<submit next="http://www.webapplications.biz/recmsg.php" enctype="multipart/form-data" method="post" namelist="cSmsg" />
</vxml>
and then sending it to recmsg.php,
recmsg.php
---------------
<vxml version="2.1">
<form id="Test">
<block>
<prompt>
<voice gender="female">
<?php
if (IsSet($_POST['cSmsg'])) {
$cSmsg = $_POST['cSmsg'];
}else{
?>
Sorry! Message not received.
<break />
<?php
}
?>
Received message <?php echo $cSmsg; ?>
<break />
<break />
</voice>
</prompt>
</block>
</form>
which plays it back.
I can hear it when in my application but when it is received on the server it is blank. Why?
Any help is greatly appriciated
AQK
<vxml version="2.1" xmlns="http://www.w3.org/2001/vxml">
<property name="universals" value="all" />
<var name="cSmsg"/>
.........
...........
<record name="recmsg" beep="true" maxtime="60s"
finalsilence="4000ms" dtmfterm="true" type="audio/x-wav">
.....................
...................
<assign name="cSmsg" expr="recmsg"/>
<prompt>
<voice gender="female">
Here's what you recorded
</voice >
</prompt>
<audio expr="cSmsg"/>
<prompt>
.........
........
<submit next="http://www.webapplications.biz/recmsg.php" enctype="multipart/form-data" method="post" namelist="cSmsg" />
</vxml>
and then sending it to recmsg.php,
recmsg.php
---------------
<vxml version="2.1">
<form id="Test">
<block>
<prompt>
<voice gender="female">
<?php
if (IsSet($_POST['cSmsg'])) {
$cSmsg = $_POST['cSmsg'];
}else{
?>
Sorry! Message not received.
<break />
<?php
}
?>
Received message <?php echo $cSmsg; ?>
<break />
<break />
</voice>
</prompt>
</block>
</form>
which plays it back.
I can hear it when in my application but when it is received on the server it is blank. Why?
Any help is greatly appriciated
AQK