Page 1 of 1
dtmfterm to end a recording with a keypress
Posted: Wed Nov 21, 2007 9:32 am
by jbrohan
Hello
Do you have sample code of a recording ending in a keypress, please. I'd like to assign the keypress to a variable and use it in the logic.
Yours Sincerely
John
IVR code takes recording and tells what was entered at end
Posted: Wed Nov 21, 2007 10:27 am
by support
Hi,
Here's some sample IVR code that takes a recording and tells you what you entered to end the recording. Note the shadow variable, termchar, for the
<record> tag below.
Code: Select all
<?xml version="1.0"?>
<vxml version="2.0">
<form>
<record name="myrecording" beep="true">
<prompt>
Please record a message after the beep.
</prompt>
<filled>
You just recorded the following message:
<value expr="myrecording"/>
You terminated your recording by pressing <value expr="myrecording$.termchar"/>.
</filled>
</record>
</form>
</vxml>
Hope this helps.
Regards,
Plum Support