E3Companies Report post Posted 04/24/2008 06:37 PM Greetings. We have developed a VG app and we are having problems with one part. We want to collect 38 answers from the user in one "Get Numbers" call instead of having 38 separate commands. The routine looks like this: [Answer] Type=Get Numbers DispSize=69 Txt=Get their Answers Replay=2,5 GetNbrLen_Min=1 GetNbrLen_Max=1 Confirm=OFF VbScript= 'Add their answer to our list of answers set vg = CreateObject("VoiceGuide.CommandLink") vbAnswers = TRIM(vg.RvGet($RV_LINEID, "RV_TestAnswers")) vbAnswers = vbAnswers & "$RV_ENTEREDNUMBER" if (len(vbAnswers) = 38) then theResult = "done" else theResult = "next" end if vg.RvSet $RV_LINEID, "RV_TestAnswers", vbAnswers vg.Run_ResultReturn iLineId, theResult set vg = Nothing VbsHoldPlay= on {next} goto [Answer] on {done} goto [Score Test] on {timeout 5} goto [AnswerPrompt] The problem we have is the answers are not being concatenated together. Does anyone see why we're not properly passing the data to VG so we can get it back the next time the routine is called? The reason we're taking this approach instead of making the "Get Numbers" call accept 38 inputs is because we don't want the user to have to start from the beginning in case of a timeout. If you know of a better way to handle this, please let us know. TIA. --Ed Share this post Link to post
SupportTeam Report post Posted 04/24/2008 08:04 PM Could you please post a copy of VoiceGuide's Trace Logs which captures the call, this will allow us to see what happened. Ensure logging is enabled by setting the VoiceGuide log level to 10 in VG.INI as per below: [Log] VoiceGuide=10 CallLoader=0 VoicemailManager=0 EmailSender=0 ktTel=0 ktTts=0 Then restart VG and make a test call. Trace files will be created in VG's \log\ subdirectory. Please post the traces and the VoiceGuide script used. When posting traces/scripts please .ZIP them up and post them as attachments. Also: How are you getting the module to play a different prompt for each next question? Will you be setting another RV in this script to hold the length of the concatenated answers string and then have the WAV files use this RV as part of their file name to play sound file? eg specify sound file to play to be q$RV[len].wav and have sound files q1.wav, q2.wav, q3.wav etc? Share this post Link to post
E3Companies Report post Posted 04/24/2008 08:20 PM Also: How are you getting the module to play a different prompt for each next question? The "AnswerPrompt" routine dynamically plays a question based on how many answers they have entered. This is a data collection process for store managers. An applicant takes a test where they fill in their answers on paper. (the answers for each question are numbered 1-5) The store manager then calls in the test and quickly punches in the answers. They don't need to listen to any questions, just quickly get the results of the test. If a timeout occurs, we prompt them for what question they are on and continue collecting the results. Then we grade the test and give them a pass/fail for the applicant. They are likely to move to an IVR/web interface for the applicant at some point, but they want the applicant to fill out the forms on paper since there is other HR information that they need. This VG solution replaces a custom TAPI application we wrote for them several years ago. (it wasn't as stable and was costly to update) I will see about getting the log files and posting them in the next day or two. --Ed Share this post Link to post