Asterisk can be integrated with Jabber xmpp  in order to  integrate gtalk, yahoo, etc.

Here is the sample conf for asterisk:

Please open jabber.conf (/etc/asterisk/jabber.conf) in your favourite editor and add following configuration:

jabber.conf

This is where you set your gmail/gtalk account info and will register you with the Google server.

[general] debug=yes
autoprune=no
autoregister=no

[gtalk_account] type=client
serverhost=talk.google.com
username=username@gmail.com/Talk
secret=*****
port=5222
usetls=yes
usesasl=yes
buddy=buddyusername@gmail.com
statusmessage=”This is an Asterisk server”
timeout=100

gtalk.conf

This is where the settings for the actual calls are made:

[general] context=google-in
allowguest=yes

;
[guest] disallow=all
allow=ulaw
context=google-in

[buddy] username=buddyusername@gmail.com

disallow=all
allow=ulaw
context=google-in
connection=gtalk_account

extensions.conf


[google-in] exten => s,1,NoOp( Call from Gtalk )
exten => s,n,Set(CALLERID(name)=”From Google Talk”)
exten => s,n,Dial(SIP/my_sip_phones)[google-out] exten => 200,1,Dial(gtalk/gtalk_account/buddyusername@gmail.com)