Created
November 6, 2010 18:56
-
-
Save mheadd/665617 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// If the channel selected is TEXT, send a message. | |
if(channel == 'TEXT') | |
{ | |
log("*** Sending text message. ***"); | |
message("Hello, " + customerName + ", " + msg, { to: sendToNumber, network: "SMS"} ); | |
} | |
// If the channel selected is Voice, make a call. | |
else | |
{ | |
log("*** Making outbound phone call. ***"); | |
call('tel:+1' + numberToDial, { | |
onAnswer: function() { | |
say("Hello, " + customerName + ", " + msg + ". This is a test message for a telephone."); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment