@
deyu260 没想到这么久的话题还有回复。关于gtalk,需要两个文件,一是gtalk.conf, 一是jabber.conf. sample 文件如下。除这两个文件外,extensions.conf 文件也需要有相应的dialplan.
;=======================gtalk.conf=======================
[general]
context=google-in ; Context to dump call into
bindaddr=0.0.0.0 ; Address to bind to
stunaddr=
stun.ekiga.net ; Get your external ip from a STUN server.
allowguest=yes ; Allow calls from people not in list of peers
[guest]
disallow=all
allow=ulaw
[mygmail-gtalk]
username=mygmail@gmail.com ; gmail account
disallow=all
allow=ulaw
context=google-in ;context in extensions.conf to receive GV calls
connection=mygmail
;=========================end of gtalk.conf==================
;=========================jabber.conf=====================
general]
debug=no ; Enable debugging (disabled by default).
autoprune=yes ; Auto remove users from buddy list. Depending on your
autoregister=yes ; Auto register users from buddy list.
[mygmail]
type=client ; Client or Component connection
serverhost=
talk.google.com ; Route to server for example,
talk.google.comusername=mygmail@gmail.com/talk ; Username with optional resource.
secret=mygmailpwd ; Password
priority=127
status=available ; One of: chat, available, away, xaway, or dnd
statusmessage="I am asterisk" ; Have custom status message for Asterisk
port=5222
usetls=yes
usesasl=yes
;=======================end of jabber=======================