Audio Streaming - Line Radio

Audio Streaming - Live Radio

To assist the customers in listening to the radio stations from anywhere at any time, Xtend IVR provides a sample script for configuring Live Radio through Internet. Whenever the subscriber calls the automated IVR, it enhances the user experience by directly connecting it to live radio using the media player.

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 scripts
  • IVR accepts the call and locates the multi-media channel
  • Caller is connected to the Internet and he/she is able to listen to real-time audio streams
  • IVR plays the radio channels using the media player
Recording Control
	

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


if find($drivername,"Multimedia") <> -1
	atomicset(1,"$soundcard",$deviceid)
endif
sleep 3000


MAIN:
	if atomicget(1,"$soundcard") = $deviceid
		
		answer 0
		while true
			sleepevent
		endwhile	
		goto MAIN
	else
		
		answer
		
		
		softlisten(atomicget(1,"$soundcard"),2)
		
		
		while true
			sleepevent
		endwhile
		goto MAIN
	endif
	goto MAIN
	
ONHANGUP:
	softunlisten(atomicget(1,"$soundcard"))
	hangup
	goto MAIN
	
ONSYSTEMERROR:
	log $error
	hangup
	goto MAIN