Using XMPP with PHP and Strophe with GOOGLE TALK
These links help quite a bit in getting google talk working with xmpp. Using a gmail.com domain for a jid is very different from using a gmail address with your companies' domain.
You need to setup SRV records on your DNS server.
http://victortrac.com/taxonomy/term/112