Multi-service using Device ID

Multi-service using Device ID

To assist your customers in acquiring multiple services from the same IVR based on the device ID, Xtend IVR introduces a sample script. The automated IVR brings out an efficient way to provide multiple services based on different channels, each with a unique Device ID. When an incoming call arrives, the Device ID will be displayed and the service corresponding to that Device ID will be rendered.

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:

  • Initially, IVR identifies the multi-port license to run the script
  • On incoming call, the Device ID will be displayed
  • If the Device ID displayed is 1, the service rendered is Changed Number Announcement
  • If the Device ID displayed is 2, the service rendered is Fault Booking
  • If the Device ID displayed is 3, the service rendered is Bill Payment
Download the source file zip download for the Multi-service using Device ID

if ActivePorts() <= 1
	MsgBox("You need multi-port license to run this script")
	return
endif

MAIN_CHAIN:
	display "Device ID: " $deviceid
	if $deviceid = 1
		changenumber()
		goto MAIN_CHAIN
	endif
	
	if $deviceid = 2
		faultbooking()
		goto MAIN_CHAIN
	endif
	
	if $deviceid = 3
		billpayment()
		goto MAIN_CHAIN
	endif
	
	
	sleep 5000
	goto MAIN_CHAIN
	
ONHANGUP:
	hangup
	goto MAIN_CHAIN
	
ONSYSTEMERROR:
	log $error
	hangup
	goto MAIN_CHAIN


MAIN:
	display "Change number announcement system"
	answer
	
	play "changenum.wav"
	hangup
	goto MAIN
	
:ONHANGUP
	hangup
	goto MAIN
	
:ONSYSTEMERROR
	log "CHANGENUMBER: " $error
	hangup
	goto MAIN


MAIN:
	display "Fault booking service"
	answer
	
	play "faultbook.wav"
	hangup
	goto MAIN
	
:ONHANGUP
	hangup
	goto MAIN
	
:ONSYSTEMERROR
	log "FAULTBOOKING: " $error
	hangup
	goto MAIN


MAIN:
	Display "Bill payment"
	answer
	
	play "billpay.wav"
	hangup
	goto MAIN
	
:ONHANGUP
	hangup
	goto MAIN
	
:ONSYSTEMERROR
	log "BILLPAYMENT: " $error
	hangup
	goto MAIN