Promote your company products, offers and advertisements through the outbound dialing capabilities of Xtend IVR. Create interactive campaigns and record as WAV file. Refer the sample script given below and add the audio file into the Xtend IVR toolkit. Schedule the time to call the subscribers and stay in touch with your customers to enhance the experience with the latest updates - all with the implementation of Xtend IVR.
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: sleep 5000 $phone = "04842378008" if $phone = "" then goto MAIN $status = MakeCall($phone,60) if $status == "" hangup goto MAIN endif if $status == "ERROR" hangup goto MAIN endif if find($status,"DISCONNECTED") >= 0 hangup goto MAIN endif play "message.wav" hangup goto MAIN Function MakeCall($phone,$duration) if not dial($phone) return "ERROR" endif $EndTime = seconds() + $duration $status = "" while seconds() < $EndTime $status = GetCallProgress() if $status = "" sleepevent ($EndTime - seconds()) continue endif if find($status,"DISCONNECTED") >= 0 break elseif find($status,"CONNECTED") >= 0 break endif endwhile return $status ONHANGUP: hangup goto MAIN ONSYSTEMERROR: log $error display $error hangup goto MAIN