Web service is a technology to communicate among applications in a platform-independent manner through standard XML messaging. The automated system allows the customers to get the daily tips by dialing the number. This sample script assists you to get the daily .Net tips from the website.
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:
display "Waiting for call . . ."
answer 1
display "Calling Webservice . . ."
$Fact = DailyFact.GetDailyFact()
display "Playing . . ."
$Str = Format('The daily .Net Fact for today is "%s"', $Fact)
Speak $Str
hangup
goto MAIN
ONHANGUP:
hangup
goto MAIN
ONSYSTEMERROR:
log $error
display $error
hangup
goto MAIN