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

<clear>ing out my <record> tag

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
metroscript
Posts: 78
Joined: Mon Sep 25, 2006 6:52 am
Contact:

<clear>ing out my <record> tag

Post by metroscript »

Hey crew,

I have a recording that is captured using:

Code: Select all

	<record name="initial_recording" beep="true" dtmfterm="true" maxtime="720s" finalsilence="300s" type="audio/basic">
Well, once I'm done saving this recording, I want to clear out my record tag, which is called initial_recording.

When I use this:

Code: Select all

			<log>process_combine_voxs.xml - MID1 (File size in bytes: <value expr="initial_recording$.size"/>)</log>
			<clear namelist="initial_recording"/> 
			<log>process_combine_voxs.xml - MID2 (File size in bytes: <value expr="initial_recording$.size"/>)</log>
I get this:

Code: Select all

local 6105849795 10 [[05/Feb/2008:18:37:52 -0500] 3975 000001;010;1202253166 label process_combine_voxs.xml - MID1 (File size in bytes:  19712 ) 
local 6105849795 10 [[05/Feb/2008:18:37:52 -0500] 3975 000001;010;1202253166 label process_combine_voxs.xml - MID2 (File size in bytes:  19712 ) 
When I'm expecting the file size to be cleared out to zero or null and expect this:

Code: Select all

local 6105849795 10 [[05/Feb/2008:18:37:52 -0500] 3975 000001;010;1202253166 label process_combine_voxs.xml - MID1 (File size in bytes:  19712 ) 
local 6105849795 10 [[05/Feb/2008:18:37:52 -0500] 3975 000001;010;1202253166 label process_combine_voxs.xml - MID2 (File size in bytes:  0 ) 
Please assist.

Thanks,

Mike C.

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

IVR script for clearing a shadow variable

Post by support »

Hi,

Could you post more of your IVR code from your VXML script here? We need more information to help us figure out the IVR issue.

Also, if you want to clear the shadow variable, "size", for initial_recording, you should do it explicitly as <clear namelist="initial_recording"/> will not clear the shadow variable, "size". To clear it explicitly, you would type <clear namelist="initial_recording$"/>.

Regards,
Plum Support
Last edited by support on Fri Feb 19, 2010 11:27 am, edited 3 times in total.

metroscript
Posts: 78
Joined: Mon Sep 25, 2006 6:52 am
Contact:

Post by metroscript »

This is exactly what I needed. Thanks!

Post Reply