Reference - Outbound Campaigning

Reference - Outbound Campaigning

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:

  • IVR waits for 5 seconds before each dial
  • IVR dials out to the phone number and waits for 60 seconds to connect
  • If the call gets connected, IVR conveys the information and terminates the call
  • If the connection is not established, IVR disconnects the call
  • The disconnected call status may be because of network problem, user busy and so on
Download the source file zip download for the Reference - Outbound Campaigning

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