Call Finish
It is sometimes
desirable to perform some functions at the time when the call
finishes, regardless of at which point in the script the person has
hung up. Usually such a script will perform any database updates,
call other programs, send out emails or schedule outbound
calls.
VoiceGuide can
be instructed to run a separate script when the call has finished
using the "Script Properties" option from the "Edit" menu in the
Graphical Design Environment.
This is how we
would set the script "C:\My Scripts\Update
Databases.vgs" to be called when the currently edited
script is finished:
Modules
allowed in the call cleanup script
Only certain
types of modules can be used in a call cleanup script. As the
person has already hung up modules which play or record sound files
or expect user input cannot be used.
The following
modules can be used:
|
Database Query
|
|
Time Switch
|
|
Evaluate Expression
|
|
Run
Program
|
|
Send Pager Message
|
|
Send Email
|
|
Make Call
|
|
Run
VB Script
|
|
Hangup the Call
|
Changing
the cleanup script at runtime
It is sometimes
desirable to change the cleanup script depending on user selections
or other factors. To change the script we need to assign the new
filename of the script to the $RV[RUNAFTERHANGUP] Result Variable. We use the Evaluate Expression module to do
this.
Result
Variables
All Result
Variables from the script which was handling the call are available
to the 'call cleanup script'. This allows all information entered
by caller or retrieved/created by the original script to be used in
the call cleanup script.
|