VoiceGuide IVR Software Main Page
Jump to content

Cannot Get Data From Text File

Recommended Posts

I am not so familiar with vb script and voiceguide, please help me a little bit please.

 

in run vbscrip:

set fso = CreateObject("Scripting.FileSystemObject")

set fileVmBoxList = fso.OpenTextFile("C:\CurrentPrices.txt")

sEntireFile = fileVmBoxList.ReadAll

set fileVmBoxList = Nothing

set fso = Nothing

set vg = CreateObject("VoiceGuide.CommandLink")

vg.RvSet $RV_LINEID, "data", sEntireFile

set vg = Nothing

 

in evaluate expression module

 

$rv[data]

 

on {abc} goto [Play 1]

on {def} goto [Play 2]

 

I find that there is not thing in $rv[data], what wrong with my setting. Would you mind helping me in this, thank you very much

Share this post


Link to post

Could you please post a copy of VoiceGuide's Debug Printout which captures the call, this will allow us to see what is going wrong.

 

When running the script click on VoiceGuide's View menu and select 'Event Trace Log' option - any log information will then appear in this window. You must open the trace window before making the call.

You can enable the automatic saving of the logs to files in \log\ directory as well.

Share this post


Link to post

Thanks for your quick reply!!

 

Here are the log:

 

 

104221.79 5 linedevstate 2048 0 0

104221.79 5 callstate OFFERING 66212 0 4

104221.79 5 rv clear

104221.79 5 Answer the call at 5/20/2005 10:42:21 AM

104221.79 5 lineAnswer(66212) => 66263

104221.79 5 callinfo CALLEDID

104221.79 5 callinfo ORIGIN

104221.80 5 ring 0

104222.32 5 callstate CONNECTED 66212 1 0

104222.32 5 callstate CONNECTED 66212,1,0

104222.32 5 WorkingModeTAPI@Connected=

104222.34 5 WorkingModeScript@Connected=

104222.34 5 Inband detection not enabled

104222.35 5 StartLoadedVgs at 5/20/2005 10:42:22 AM, v5.2.3063

104222.35 5 AddRVns [scriptsPath]{D:\Local_Server\Voice_guide_script\}

104222.35 5 AddRVns [scriptPath]{D:\Local_Server\Voice_guide_script}

104222.35 5 rv add [$RV_STARTTIME]{5/20/2005 10:42:22 AM}

104222.35 5 rv add [$RV_DEVICEID]{5}

104222.37 5 rv add [$RV_CIDNAME]{}

104222.37 5 AddRVns [PathApp]{C:\Program Files\VoiceGuide\}

104222.41 5 rv add [$RV_CIDNUMBER]{}

104222.45 5 tapi Reply (LineEvReply) ok 66263 0

104222.48 5 callinfo MONITORMODES

104222.52 0 dial start any summary:|5:hc>0|6:idx=0|

104222.57 5 timer clear

104222.60 5 [Run VB Script 1] Running VB Script...

104222.63 5 rv replace start: [set fso = CreateObject("Scripting.FileSystemObject")

set fileVmBoxList = fso.OpenTextFile("C:\CurrentPrices.txt")

sEntireFile = fileVmBoxList.ReadAll

set fileVmBoxList = Nothing

set fso = Nothing

set vg = CreateObject("VoiceGuide.CommandLink")

vg.RvSet $RV_LINEID, "data", sEntireFile

set vg = Nothing

]

104222.66 5 rv ns [PathSysVoice]{}[PathApp]{C:\Program Files\VoiceGuide\}[PathDataVm]{C:\Program Files\VoiceGuide\data\}[PathVgSys]{C:\Program Files\VoiceGuide\system\}[scriptsPath]{D:\Local_Server\Voice_guide_script\}[scriptPath]{D:\Local_Server\Voice_guide_script}[$RV_STARTTIME]{5/20/2005 10:42:22 AM}[$RV_DEVICEID]{5}[$RV_CIDNAME]{}[PathApp]{C:\Program Files\VoiceGuide\}[$RV_CIDNUMBER]{}

104222.70 5 eng run vbs [wscript "C:\Program Files\VoiceGuide\data\vbs_5_1.vbs" //I] copy of script in: vbs_5_1.vbs

104222.74 5 Run Script waiting. iRunWait=1 (shellid=616, process=1320)

104222.77 5 timer set 1 EV_TIMEOUT_CHECKONSTATE

104222.80 5 cl RvSet data, abc

104222.85 5 ERROR: COM interface not supported in this version.

104223.79 5 timer fired EV_TIMEOUT_CHECKONSTATE

104223.82 5 ScriptEventCode 9007 iLineState=1501

104223.85 5 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

104223.88 5 task completed (shellid=616, process=1320) vgm=1, iRunWait=1, iRunWait_ExeResult_NextVgm=0

104223.93 5 No information returned from program to VG (no VGRUNRESULT_5.TXT or SHLRESLT.TXT)

104223.96 5 rv add [Hangup Time]{5/20/2005 10:42:23 AM}

104223.99 5 Hanging up call... [WaitTillFinished - next module not specified]

104224.02 5 RecSoundStop ok

104224.07 5 PlaySoundStop err=0

104224.10 5 timer set 2 EV_TIMEOUT_WAITFORIDLEAFTERLINEDROP

104224.13 5 fnHangupCall end

104224.35 5 linedevstate 2048 0 0

104224.38 5 callstate IDLE 66212 0 0

104224.43 5 WorkingMode@Idle=

104224.46 5 timer clear

104224.49 5 timer set 1 EV_TIMEOUT_TIMETOREINITLINE

104224.52 5 tapi Reply (LineEvReply) ok 66365 0

104225.55 5 timer fired EV_TIMEOUT_TIMETOREINITLINE

104225.59 5 ScriptEventCode 9008 iLineState=900

104225.62 5 LsAwaitingCalls EV_TIMEOUT_TIMETOREINITLINE

104225.65 5 ReinitTelephony due to IDLE

104225.70 5 tapic lineDeallocateCall(MainCall:66212) 0

104225.88 5 lineOpen(5)=>

104225.91 5 Waiting for a call...

104225.96 5 LineHandle=66314

104225.99 5 timer set 3 EV_TIMEOUT_ATERIDLE_ALLOWOUT

104226.70 0 dial start any summary:|5:rdy=0|6:idx=0|

104229.30 5 timer fired EV_TIMEOUT_ATERIDLE_ALLOWOUT

104229.34 5 ScriptEventCode 9013 iLineState=900

104229.73 0 dial start any summary:|5:idx=0|6:idx=0|

104303.43 0 sys cleanup Start

104303.46 0 sys cleanup End

 

I hope this log can help you to solve my problem.

I use Dialog D/41ESC, voice guide version is v5.2.3

 

Thank you very much

Share this post


Link to post

We can see in the trace:

 

104222.85 5 ERROR: COM interface not supported in this version.

 

the VoiceGuide.CommandLink COM interface is only supported in the Enterprise and the evaluation versions of VoiceGuide. See: http://www.voiceguide.com/vgFeatures.htm

 

You will need to upgrade to that version to use COM functions in your script.

Share this post


Link to post

Oh! I know the problem now, thank you your kind attention of my case and quick respone.

 

Thank you very much. It is a good support.

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
×