XMPP
跳转到导航
跳转到搜索
协议
联系人状态
- away -- The entity or resource is temporarily away.
- chat -- The entity or resource is actively interested in chatting.
- dnd -- The entity or resource is busy (dnd = "Do Not Disturb").
- xa -- The entity or resource is away for an extended period (xa = "eXtended Away").
注:empathy没有xa状态可用。
域名解析
XMPP 首先尝试使用 SRV 记录;如果失败,使用 A 记录。[2]
host -t SRV _jabber._tcp.gmail.com # server-to-server
host -t SRV _xmpp-server._tcp.gmail.com
host -t SRV _xmpp-client._tcp.gmail.com
Gtalk 特定
Google Talk invisible mode in Pidgin « Passing Thoughts
相关软件
参见XMPP Software – The XMPP Standards Foundation。
服务端
客户端
- Poezio,一个基于 SleekXMPP 的 CLI 客户端,主要针对聊天室使用。
- Instantbird,使用 XUL 写的客户端。
- Oneteam,另一个使用 XUL 写的客户端,也可作为火狐插件使用。
- candy,网页版客户端。
- Jabiru, Jabber client for Android
- Tkabber,使用 Tcl 编写,muc 等特性支持较丰富[3]
- Jappix,一个基于 PHP 的网页版客户端。可配合 BOSH 服务器支持登录到不同服务器[4]
使用 Jappix 的网站列表:
程序库
- pyxmpp2,Python 2 & 3
- SleekXMPP,Python 2.6+ & 3
- xmpppy,Python 2
- libstrophe, C
- loudmouth, C. 依赖 glib、nettle 等
- iksemel, C. 很底层。
bot
协议转换
- bitlbee,转换为IRC协议的C/S架构软件。
- irssi-xmpp,irssi的一个插件,像IRC那样使用XMPP。
- node-xmpp-bosh,使用 nodejs 编写的 BOSH 服务器
Transport 使用方法
IRC transport
注册后,加入room%irc-chat-server.org房间,服务器通常是irc.<server>。[5]
注意事项
Google 相关
- Gtalk 官方客户端的所谓「Remove」操作仅仅是从 roster 上删除好友,并不发送 unsubscribe & unsubscribed 消息。可选同时「block」好友,此后再次添加即可「unblock」。
- Google Apps 的域名不能连接到 Google 的 XMPP 服务,会提示:(undefined-condition (vim-cn.com is a Google Apps Domain with Talk service enabled.))
协议支持
- XEP-0153: vCard-Based Avatars
- 被支持
- Google Talk,
- 不被支持
- jabber.org
外部链接
- Jabber/XMPP中文翻译计划
- 基于XMPP的Gtalk机器人,幻灯片
- XMPP - CommonJS Spec Wiki,Javascript的XMPP接口库
- 地里的博客: 导入人人网(校内通)好友到GTalk
- 利用 XMPP 协议,使用 Pidgin 进行新浪微博私信聊天 | 丙
- 弃用QQ和微信!全面转向基于XMPP(Jabber)的即时聊天 – FOSS Geek | 爱开源魅影
- 利用 XMPP 和 OTR 进行私密聊天 - 约伊兹的萌狼乡手札
文档
- RFC 3921: Extensible Messaging and Presence Protocol (XMPP): Instant Messaging and Presence
- XEP-0054: vcard-temp
- XEP-0153: vCard-Based Avatars
- XEP-0085: Chat State Notifications
- XEP-0256: Last Activity in Presence(pidgin 的「发呆时间」使用的是此 XEP。)
- Google Talk XMPP Extensions - Google Talk for Developers — Google Developers
- Gmane -- Re: Re: how to send files over prosody
服务器
- xmpp.net
- Jabber/XMPP Server List
- DuckDuckGo new public XMPP/Jabber service on dukgo.com!
- Using Pidgin with our XMPP server at dukgo.com
- Neko IM!
提供 transport 服务的地址
- jabber.yeahnah.co.nz (IRC 不支持中文,MSN,无法和好友通信)
- jabber.iitsp.com
- jabber.bluendo.com (MSN 不支持头像和富文本,无法和好友通信)