As a thank you to the Pbx in a flash team, i have put together a basic howto for googletalk and PiaF
If your PBX is behind a router, you need to forward TCP port 5222 to the asterisk server.
What is working:
Asterisk registers as a google talk client
It forwards incoming google talk calls to my SIP destination.
Calls from asterisk ring on Google Talk
For inbound calls, I can receive a message via google talk informing me of the Caller ID.
What doesn't work
The inbound and outbound audio - its just flaky and I haven't really had the time to trouble shoot.
Here are my configs
Jabber.conf
|
Code:
|
[general]
debug=no
autoprune=no
autoregister=no
[gtalk_account]
type=client
serverhost=talk.google.com
username=email@gmail.com/Talk
secret=*****
port=5222
usetls=yes ; TLS is required by talk.google.com, you'll get a 'socket read error' without
usesasl=yes
buddy=buddy@gmail.com
statusmessage="PiaF system"
timeout=100 |
gtalk.conf
|
Code:
|
[general]
context=google-in
allowguest=yes
;
[guest]
disallow=all
allow=ulaw
context=google-in
[buddy]
username=buddy@gmail.com
disallow=all
allow=ulaw
context=google-in
connection=gtalk_account |
To make and receive calls, I have added the following lines
extensions_custom.conf:
|
Code:
|
;[google-out]
exten => 701,1,Dial(gtalk/gtalk_account/buddy@gmail.com)
[google-in]
exten => s,1,NoOp( Call from Gtalk )
exten => s,n,Set(CALLERID(name)="From Google Talk")
exten => s,n,Dial(SIP/100) ; this can be a ringgroup or direct extension |
To get notification of inbound calls, I have added the following line in my
extensions_custom.conf
|
Code:
|
;Jabber Messaging
exten => 703,1,JABBERSend(gtalk_account,buddy@gmail.com,Inbound call from ${CALLERID(all)}) |
Then added 703# to all my follow me extensions. When a call comes in, I get a popup with the caller ID on my gtalk client.
As I stated earlier, this is a very basic approach to gtalk and asterisk interconnection. Please feel free to improve on this.