Service only for a specific DLI

Service only for a specific DLI

This sample demonstrates how the services are provided for a specific Dialed Line Identifier value. You can have E1 connection with 30 channels or more telephone numbers assigned for a specific service. The automated IVR accepts the call only if it is to the specified DLI number, otherwise rejects the call.

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 the call
  • If the DLI number is 3011000, IVR accepts the call and provides the service
  • If any other DLI number, then IVR rejects the call
Download the source file zip download for the Service only for a specific Device Line Identification (DLI)

MAIN:
	display "Waiting for call..."
	
	while $ring <=0 
		sleep 500
	endwhile
	
	if $dli <> "3011000"
		display "This call not allowed. Call to " $Dli
		hangup
		goto MAIN
	endif
	
	answer 1
	
	display "Call in progress..." 
	
	
	play "live.wav"
	
	hangup
	goto MAIN
	
ONHANGUP:
	hangup
	goto MAIN
	
ONSYSTEMERROR:
	display $error
	log $error
	hangup
	goto MAIN