sys.GTalk(string username, string password, string sendToUser, string message) - Attempts to send a message to a gTalk user. The username and password must belong to a valid gTalk user and should be entered without @gmail.com or any other host portion. The sendToUser is the gTalk username of the account to send the message to (can be the same as username) also without the @gtalk.com or any other host portion. The message is the text that will be attempted to be sent.
Code: Select all
#Ruby dialplan example for sys.GTalk.
sys.GTalk("joe.bloggs", "password", "jane.doe", "Hello World!")
sys.GTalk("joe.bloggs", "password", "jane.doe", "#{req.URI.User}")
Regards,
Aaron