GTalk

From sipsorcery

Jump to: navigation, search

sys.GTalk(string username, string password, string sendToUser, string message) - Attempts to send a message to a gTalk user.

  • username and password must belong to a valid gTalk user and should be entered without @gmail.com or any other host portion.
  • 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.
  • Message is the text that will be attempted to be sent.
sys.GTalk("joe.bloggs", "password", "jane.doe", "Hello World!")
sys.GTalk("joe.bloggs", "password", "jane.doe", "#{req.URI.User}")

Note that at times it can take quite a while to establish a connection to the gTalk network and the sipswitch dialplan will only wait for a maximum of 5s. In the very limited testing undertaken so far the first attempt to send a message wil often timeout but subsequent ones will then work.


Original forum discussion: http://forum.sipsorcery.com/viewtopic.php?f=2&t=712

Personal tools