- Contents
VoiceXML Technical Reference
Running a VoiceXML Script
The steps to run VoiceXML scripts included in the VoiceXML Example Pack are:
-
Create a handler to access one of the VoiceXML tools
-
Set up Interaction Attendant to activate the handler
-
Call to access your script
-
Experiment with different example files
Creating a handler
To create a Handler, you'll use Interaction Designer, which accesses one of the previous tools and calls a VoiceXML script.
To create a handler
-
Start Interaction Designer
-
From the File menu, select Open, and then navigate to the folder containing the Example Pack files
-
Select the file Thor.ihd and click Open.
-
Notice that this handler uses a Subroutine Initiator and calls the VoiceXML Initiate toolstep
-
-
Publish this handler by selecting the Activate Handler check box and choosing Custom as the Subroutine category
-
To verify that the Thor subroutine was successfully created, select the Subroutines tab at the bottom of the dialog, and choose the Custom page, as shown below, then, look for Thor in the list.
Modifying the custom subroutine handler
Next, modify the CustomSubroutineInitiatorRouter.ihd file to allow use of the Thor subroutine that was created in the previous steps.
|
|
|
On the Inputs page, select Interaction1 from the Call ID 1 drop down and select file://c:/VoiceXMLDocs/HelloWorld1.vxml from Document URI. (The exact path depends on where files in the Example Pack have been extracted) |
|
Publish the handler
Set up Interaction Attendant
To access the Thor Handler, set up Interaction Attendant.
-
Start Interaction Attendant
-
From the Active Schedule, select Insert/New Operation/Run Subroutine
-
Set the Name to Subroutine Initiator – Thor6
-
Select the Digit 6 Six
-
Set the Subroutine to Thor6
-
Publish the schedule
Test the handler
To test the Thor Handler, make a call.
-
Dial into your main IVR (press * from your workstation)
-
At the main IVR prompt, press 6
-
The executing script plays, "Hello World"
Experimenting with other scripts
Now that you have created a Handler to run a VoiceXML script, you can start experimenting with other VoiceXML scripts available from the Example Pack. Or you can use your own VoiceXML scripts. Here's how to run more scripts:
-
Start Interaction Designer
-
From the File menu, click Open and then navigate to the CustomSubroutineInitiatorRouter.ihd file and click Open.
-
Edit the Thor toolstep as follows:
On the Inputs page, set Document URI to file://c:/VoiceXMLDocs/XXX.vxml (the exact path depends on where files in the Example Pack have been extracted)
-
Publish the Handler

