Skype - Send SMS with Delivery Report

Skype - Send SMS with Delivery Report

Skype is a software application that allows registered users to communicate with each other through video calls and instant messaging. The "Send SMS" feature in Skype presents a faster and a simpler approach towards sending messages, thereby cutting down the telephone bills to a substantial extent. This sample will assist you to automate the process of sending SMS via Skype. The automated application on implementation sends the message to the telephone number entered in the system and displays the delivery status.

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.

After creating the script, you can run the script and it works as below:

  • Initially, the user has to provide the telephone number
  • If the telephone number is valid, IVR sends the message
  • IVR waits till the message has been sent successfully and displays the delivery status

MAIN:
	if $PhoneNo == ""
		Skype.IsSendSmsBusy()
		SleepEvent 1000
		goto MAIN
	endif
	
	Display "Sending SMS..."
	
	Skype.SendSms($PhoneNo, "This is a test", true)
	
	
	while Skype.IsSendSmsBusy()
		SleepEvent 
	endwhile
	
	Display Skype.GetSmsDeliveryStatus()
	

ENDMAIN:
	Skype.IsSendSmsBusy()
	SleepEvent 1000
	goto ENDMAIN
	
	

ONHANGUP:
	hangup
	goto MAIN


ONSYSTEMERROR:
	log $error
	display $error
	if $debug 
		msgbox($error)
	endif
	hangup
	goto MAIN