Using this sample script, you can simply develop and automate your interactive quiz competitions.
The IVR system will act as an automated time scheduler and ensures completion of the assigned tasks within the
specified time limit. The scheduler works for both inbound and outbound phone services.
On deployment, the system picks up the call automatically on encountering a call, starts the session timer and
stops after the allotted time period.
Download the evaluation version of Xtend IVR and install the telephony application in your system.
Run the sample script from the Script Editor. Click here to refer the code.
The automated attendant will work as given below:
Starting and ending time is specified at the beginning of the script
IVR waits for the service to start
When start time matches with the system time, IVR performs the task and stops automatically when the end time is met with
Here, the QUIZ context is demonstarted as an example. IVR begins the quiz contest at assigned start time i.e., 4.00 PM and terminates the task after the time gets expired i.e., 5.00 PM
Download the source file for the Schedule - Task Scheduler
$mbegin = "16:00:00"
$mend = "17:00:00"
WAIT_FOR_SERVICE:
while time.cmp($time,$mbegin) > 0
sleep 1000
endwhile
MAIN:
while $ring <= 0
if time.cmp($time,$mend) <= 0
sleep 1000
goto WAIT_FOR_SERVICE
endif
sleep 1000
endwhile
answer 1
play "servicelive.wav"
hangup
goto MAIN
ONSYSTEMERROR:
log $error
hangup
goto MAIN
ONHANGUP:
hangup
goto MAIN