Any person who has an account in a bank would like to know his/her account balance status at any time. The customers have got only three options - walk down to the bank to get these details or contact the bank staff through telephone or go for the Internet banking. The first option is not feasible in the present scenario. The second option is not possible all the time as it may increase the workload of the staff and for the third option using Internet Banking facility will require a system with Internet facility which may not be possessed by many of the customers. To simplify, Xtend IVR brings out a faster approach in dealing with the accounts in banks.
The automated attendant will work as given below:
MAIN: display "Waiting for call . . ." answer 1 play "Welcome.wav" display "Accept account number" $AccNo = accept("PunchAccount.wav", 4, 3) if $AccNo = "" then goto ENDIVR display "Accept PIN number" $Pin = accept("GetPin.wav", 4, 3) if $Pin = "" then goto ENDIVR display "Validating User" $db = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=bankacc.mdb;User Id=admin; Password=;" $sql = format("SELECT * FROM BANK WHERE AccNo = '%s'",$AccNo) $dbalias = db.RunSQL($db, $sql) if $dbalias.eof play "InvalidAcno.wav" goto ENDIVR endif if compare($dbalias.PIN,$Pin) <> 0 play "InvalidPin.wav" goto ENDIVR endif play "AccBal.wav" play Money2Wav($dbalias.Balance) ENDIVR: display "Terminating Call" play "goodbye.wav" hangup goto MAIN ONHANGUP: hangup goto MAIN ONSYSTEMERROR: log $error display $error hangup goto MAIN