Reply
 
Thread Tools Display Modes
  #1  
Old 01-14-08, 04:54 PM
Vik Vik is offline
Junior Member
 
Join Date: Nov 2007
Posts: 21
Alpha: Google talk with PiaF
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.
Reply With Quote
  #2  
Old 01-14-08, 04:59 PM
darmock darmock is offline
Guru
 
Join Date: Oct 2007
Location: Florida
Posts: 1,210
A big thanks to you! One of the reasons I released the installer was so some of the rabid experimenters could come up with the implementation onto PIAF. I hope some more of you contribute so I can adapt the configs above and include it into the install-gtalk program.



Tom

Last edited by darmock : 01-14-08 at 05:03 PM. Reason: slippery fingers
Reply With Quote
  #3  
Old 08-26-08, 01:55 PM
drsatch drsatch is offline
Member
 
Join Date: Feb 2008
Posts: 41
Did a fresh 1.3 install to upgrade from 1.1

Installed Gtalk via the script. All works great.

Found out that if you comment out:

;exten => s,n,Set(CALLERID(name)=”From Google Talk”)

in extensions_custom.conf

caller id will be the user's account info and will be in the CDR. Instead of it saying "From Google Talk" it will say "user's-id@gmail.com"

Most probably know this, but I thought I'd share with those who didn't.
__________________
Your mouse has moved. Windows must be restarted for the changes to take effect. Restart? [OK]
Reply With Quote
  #4  
Old 12-02-09, 01:39 PM
w1ve w1ve is offline
Guru
 
Join Date: Nov 2007
Posts: 210
Any updates on this?
I'd like to try this, but wondering if there are still audio problems...
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:57 PM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2007-2008, Ward Mundy & Associates