Page 1 of 1

<clear>ing out my <record> tag

Posted: Tue Feb 05, 2008 6:48 pm
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.

IVR script for clearing a shadow variable

Posted: Wed Feb 06, 2008 11:43 am
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

Posted: Wed Feb 06, 2008 7:21 pm
by metroscript
This is exactly what I needed. Thanks!