VoiceGuide IVR Software Main Page
Jump to content

Script_Goto API issues

Recommended Posts

I have the same problem in another script/module, and in this case there is no intervention of lib_num2wav.vbs file. The module has 4 options as output Path. In case 1 and 4 do it correctly, but for case 2 and 3 forwards me the beginning of the script.

Thanks

logs.zip

Share this post


Link to post

The call to Script_Goto API function has the parameters in wrong places.

 

Your VBScript is:

 

set vg = CreateObject("vgServices.CommandLink")

Select Case $RV[PayByPhoneMenu]
Case 2
	vg.RvSet $RV_LINEID,"Description","Pago por Telefono"
   	        vg.Script_Goto $RV_LINEID,"","PayByPhone.vgs","CodigoAPagar"
Case 3
   	        vg.RvSet $RV_LINEID,"Description","Pago por Telefono Programado"
   	        vg.Script_Goto $RV_LINEID,"","SchedulePayByPhone.vgs","SetDate"
End Select

Set vg = Nothing
WScript.Quit

 

see the syntax as per documentation:

 

http://www.voiceguide.com/vghelp/source/html/com_script_goto.htm

 

 

The line:

 

vg.Script_Goto $RV_LINEID,"","PayByPhone.vgs","CodigoAPagar"

 

should be:

 

vg.Script_Goto $RV_LINEID,"PayByPhone.vgs","CodigoAPagar",""

 

and line:

 

vg.Script_Goto $RV_LINEID,"","SchedulePayByPhone.vgs","SetDate"

 

should be:

 

vg.Script_Goto $RV_LINEID,"SchedulePayByPhone.vgs","SetDate",""

 

 

as this is an unrelated issue the post will be slit out into separate topic.

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
×