Skip to main content
Participating Frequently
June 13, 2008
Question

IMGateway

  • June 13, 2008
  • 2 replies
  • 971 views
Hi,

I would like to know how to use IM gateway in coldfusion to communicate with google talk buddies.
Any one could help ?
I could connect to google talk. My friends could see me as online also. But i dont know how to send chat messages etc ?
This topic has been closed for replies.

2 replies

Participating Frequently
June 16, 2008
I have made this settings already.
<cfset data.message = "hello">
<cfset data.buddyid = "gijosek">
<cfset returnv = sendGatewayMessage("IMExample",data)>
Return=<cfdump var="#returnv#">
The return value is "OK". But the other user my google talk buddi is not getting any messages from it. He can see me online. But I cant recieve any messages from him. How to recieve messages from him when he sends it through google talk
Participant
June 13, 2008
You can connect to GTalk by using the XMPP event gateway. In the config file, you need to set the following parameters:

serverip=talk.google.com
serverport=5222

ensure you uncomment:
secureprotocol=TLS
securerequirement=true

Once connected, you can send messages with the sendGatewayMessage function:

<cfset stMsg = structNew() />
<cfset stMsg.buddyId = 'myBuddyId' />
<cfset stMsg.message = 'message to send' />
<cfset ret = sendGatewayMessage('myIMGateway', stMsg) />

HTH,
Rich