VoiceGuide IVR Software Main Page
Jump to content

Script Changes For Vg7

Recommended Posts

I have VG 6 system installed and it works.

 

Now I test VG7 and my old script doesn't work in a way it works on VG6. Are VG7 scripts incompatible?

 

At least, I've found one difference:

I did as in your guide http://www.voiceguide.com/vghelp/source/html/modevalexpr.htm see Example 2

and in VG7 can't get in right way (expression is $RV[vDayType])

 

164731.828 8 3 state [checkDayMainMenu] Evaluate [$RV[vDayType]]

164731.828 8 3 rv replace start: [$RV[vDayType]]

164731.828 8 3 rvns: [PathSysVoice]{}[PathApp]{C:\Program Files\VoiceGuide\}[PathDataVm]{C:\Program Files\VoiceGuide\data\}[PathVgSys]{C:\Program Files\VoiceGuide\system\}[scriptPath]{d:\IVR\}[scriptsPath]{d:\IVR\}[$RV_STARTTIME]{2008-02-28 16:47:30}[$RV_DEVICEID]{3}[DlgcVoice]{dxxxB1C3}[DlgcNetwork]{dxxxB1C3}[PathApp]{C:\Program Files\VoiceGuide\}[scriptsPath]{d:\IVR\}[vDayType]{WORKTIME}[vActivationEnabled]{FALSE}[vDateID]{}[vLang]{RUS}[vCa

lID]{200802281647303}[scriptWorktimeCheck_ResultReturn]{success}[playIntro]{1}

164731.828 8 3 rv replace end: [WORKTIME]

164731.828 8 3 eval[WORKTIME]

164731.843 8 3 CreateInstance ScriptControl objSC is: [system.__ComObject]

164731.843 8 3 objReturn is NULL

164731.843 8 3 rv add [checkDayMainMenu_Input]{WORKTIME}

164731.843 8 3 Eval Expr result:[]

164731.843 8 3 path {} not found

164731.843 8 3 matching path not found [], try boolean paths.

 

If I change expression to "$RV[vDayType]" I get what I need:

 

175340.015 8 3 rv replace start: ["$RV[vDayType]"]

175340.015 8 3 rvns: [PathSysVoice]{C:\Program Files\VoiceGuide\system\voice\}[PathApp]{C:\Program Files\VoiceGuide\}[PathDataVm]{C:\Program Files\VoiceGuide\data\}[PathVgSys]{C:\Program Files\VoiceGuide\system\}[scriptPath]{d:\IVR\}[scriptsPath]{d:\IVR\}[$RV_STARTTIME]{2008-02-28 17:53:37}[$RV_DEVICEID]{3}[DlgcVoice]{dxxxB1C3}[DlgcNetwork]{dxxxB1C3}[$RV_CIDNAME]{}[PathApp]{C:\Program Files\VoiceGuide\}[scriptsPath]{d:\IVR\}[$RV_CIDNUMBER]{}[vDayType]{WORKTIME}[vActivationEnabled]{FALSE}[vDateID]{}[v

ang]{RUS}[vCallID]{200802281753383}[scriptWorktimeCheck_ResultReturn]{success}[p

ayIntro]{1}

175340.015 8 3 rv replace end: ["WORKTIME"]

175340.015 8 3 eval[Cstr("WORKTIME")]

175340.015 8 3 CreateInstance ScriptControl objSC is: [system.__ComObject]

175340.015 8 3 rv add [checkDayMainMenu_Input]{"WORKTIME"}

175340.015 8 3 rv add [checkDayMainMenu]{WORKTIME}

175340.015 8 3 Eval Expr result:[WORKTIME]

175340.015 8 3 path {WORKTIME} found (at offset 3)

 

Share this post


Link to post

You should include quotes around the $RV if the $RV is a string.

 

Looks like in v6 the quotes were added in automatically for you if the default evaluation returned an error, I'm not sure why this isn't done automatically in v7 - we'll see if we can add this into v7 as well.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×