Avaya Logo

Previous Topic

Next Topic

Book Contents

Book Index

Sample script using data gathering instructions

In this example, the script instructs the system to prompt the caller for a passcode. The script waits for the caller to enter three touch tones and stores them in ch.PASSCODE. The script then tells the system to send ch.PASSCODE (3 bytes) to the host. The host performs ACCOUNT_BAL processing, then returns up to 55 bytes of data. That data is stored in ch.INFO_FROM_HOST.

#include HOST_HEADER.h
#define PASSCODE 0
#define INFO_FROM HOST 4

MAIN:
--
--
talk("Enter your 3-digit pass code.")
getinput(ch.PASSCODE,3)
--
--
--
dbase(0,ACCOUNT_BAL,ch.INFO_FROM_HOST,55,ch.PASSCODE,3)
--
--
--

© 2006 Avaya Inc. All Rights Reserved.