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

dtmfterm to end a recording with a keypress

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
jbrohan
Posts: 19
Joined: Mon Nov 19, 2007 10:17 am
Location: Montreal Canada
Contact:

dtmfterm to end a recording with a keypress

Post 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
John Brohan National Instruments LabVIEW expert in Montreal
Traders Micro "We connect all sorts of things to computers"
telemedicine applications
www.woundfollowup.com

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

IVR code takes recording and tells what was entered at end

Post 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

Post Reply