When an examination result is released, almost all the official phone numbers in the educational institutes get flocked with enquiries. Under such situations, handling calls get tough due to less number of staffs to answer the incoming calls. To simplify the process, Xtend IVR brings you the most efficient mode of automated services.
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:
MAIN:
$displayprefix = ""
display "Waiting for call..."
answer 1
if not $debug
if len($cli) <> 0
$displayprefix = concat("[",$cli,"] ")
endif
endif
$wavdir = "Waves"
display "Call in progress.."
play "welcome.wav"
$retry = 0
$maxtry = 3
GET_ROLLNO:
if $retry > $maxtry then goto BYE
display "Waiting for Roll Number..."
play "EntRollNum.wav"
$RollNo = input(5,3)
$retry += 1
if len($RollNo) = 0 then goto GET_ROLLNO
$wavepause = 300
play "RollNumIs.wav"
play digit2Wav($RollNo, "Sre", "English", 0, 200)
display "Fetching rank..."
$RCount = ExamResult.GetRank($RollNo)
display "Announcing Results."
if $RCount = -1
play "TechProblem.wav"
goto BYE
endif
if $RCount = 0
play "InvldRollNum.wav"
goto BYE
endif
if $result.Physics > 0
play "Physics.wav"
play num2wav($result.Physics)
endif
if $result.Chemistry > 0
play "Chemistry.wav"
play num2wav($result.Chemistry)
endif
if $result.Mathematics > 0
play "Mathematics.wav"
play num2wav($result.Mathematics)
endif
BYE:
play "ThankU.wav"
hangup
goto MAIN
ONHANGUP:
hangup
goto MAIN
ONSYSTEMERROR:
play "TechProblem.wav"
log $error
display $error
hangup
goto MAIN