Skype - Send SMS

Skype - Send SMS

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. Skype is a software application that allows registered users to communicate with each other through video calls and instant messaging. 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.

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

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

ENDMAIN:
	Skype.IsSendSmsBusy()
	SleepEvent 1000
	goto ENDMAIN	
	

ONHANGUP:
	hangup
	goto MAIN


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