VoiceGuide IVR Software Main Page
Jump to content

Get Numbers Paths Taken

Recommended Posts

Hello,

I have a pretty big script used for interacting with a web service.

 

In Many places I have "Get Numbers" modules, configured as follows:

"Ask caller to enter number:" [soundFile1]

Minimun Length: 3

Max Length: 10

 

Retries: 5

Seconds between retries: 10

 

Message that the entered number was not correct length or failed validation: [soundFile2], [soundFile1]

 

And in the verify entered number tab the next code:

On Error Resume Next
Err.Clear

Set vg = CreateObject("vgServices.CommandLink")
Dim result
Dim crashBody

If Len("$RV_ENTEREDNUMBER")<7 Then
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set oFile = objFSO.OpenTextFile("$RV[VBSFunctionsFile]", 1)
    sText = oFile.ReadAll
    oFile.Close
    ExecuteGlobal sText

    isAvailable = TestConnection("$RV[ServerAddress]")

    If isAvailable = 1 Then

        Dim messageXML
        Set messageXML = CreateObject("MSXML2.DOMDocument.6.0")

        messageXML.LoadXML (GenerateXMLValidateUser("$RV_ENTEREDNUMBER"))
        
        xmlHttp = SendRequest("$RV[ServerAddress]", messageXML, "ValidateIVRUser")
        
        textResponse = GetResponse(xmlHttp)

        If textResponse = 1 Then
            result = "verify_passed"
        ElseIf textResponse = 0 Then
            result = "verify_failed"
        Else
            crashBody = GenerateHTMLBody("$RV_STARTTIME", 0, "Unknown","EnterUserID",$RV_LINEID,"$RV[DlgcVoice]","$RV[DlgcNetwork]", messageXML.XML, xmlHttp)
            SendCrash  crashBody, "$RV[CrashFrom]", "$RV[CrashTo]", "$RV[EmailUser]", "$RV[EmailPassword]", "$RV[SMTPServer]", "$RV[SMTPServerPort]"
            result = "error"
        End If
    
    Else
        result = "unavailable"
    End If

Else
    result = "verify_failed"
End If

If Err.Number <>0 Then
    crashBody = GenerateHTMLBody("$RV_STARTTIME", Err.Number, Err.Description,"EnterUserID",$RV_LINEID,"$RV[DlgcVoice]","$RV[DlgcNetwork]", messageXML.XML, xmlHttp)
    SendCrash  crashBody, "$RV[CrashFrom]", "$RV[CrashTo]", "$RV[EmailUser]", "$RV[EmailPassword]", "$RV[SMTPServer]", "$RV[SMTPServerPort]"
    vg.Run_ResultReturn $RV_LINEID, "error"
Else
    vg.Run_ResultReturn $RV_LINEID, result
End If

Set vg = Nothing
Set objFSO = Nothing
Set oFile = Nothing
Set sText = Nothing
Set messageXML = Nothing
Set xmlHttp = Nothing
Set textResponse = Nothing

and the paths:

 

on {success} goto [EnterAssetNumber]
on {*} goto [bye]
on {fail} goto [bye]
on {error} goto [Error]
on {unavailable} goto [serviceUnnavailable]

 

The problem is that when the user enters incorrect numbers 5 times, the module goes to the {fail} path, but also afterwards plays both sound files I selected on the "Message that the entered number was not correct length or failed validation".

For example, the user enter a wrong user Id 5 times, then the VG plays the sound file configured in the {fail} path module, and the VG plays the sound file asking for the user id again.

 

Is this Ok? How can I solve this?

 

Thanks!

 

 

Share this post


Link to post

Are you using VoiceGuide v7 on this system?

 

Can you please post the vgEngine trace capturing the call, we can then better advise what happened on the call.

 

When posting traces please .ZIP them up and post as attachments.

Share this post


Link to post

Hello,

Thanks for the reply.

Please find attached the vgEngine trace.

 

Please let me know

 

Share this post


Link to post

Can you please try attaching the .ZIP again? Looks like it did not attach to previous post.

Share this post


Link to post

This version should fix the bug that you encountered:

 

[old link removed]

 

To upgrade VoiceGuide:

 

1. Stop VoiceGuide Service and exit all VoiceGuide programs. (eg Script Designer, Voicemail Manager, etc) and all other programs.

2. Run new version VoiceGuide install and install into same directory as existing installation. (Do NOT uninstall the previous VoiceGuide installation).

3. Start VoiceGuide service.

 

Running a VoiceGuide install over the top of an existing install will not overwrite existing configuration or license files (Config.xml, ConfigLine.xml, VG.INI, VmBoxList.xml, userinfo.lic) and will not remove any sound files, and will not remove any log files.

Please note however that the local SQLite outdial database will be re-initialized. If you are using the local outdial database and have any queued outgoing calls that you would like to keep then this database should be backed up first.

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
×