Skip to content

Instantly share code, notes, and snippets.

@andrewlkho
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewlkho/9943844 to your computer and use it in GitHub Desktop.
Save andrewlkho/9943844 to your computer and use it in GitHub Desktop.
How to connect to jabber.org using centericq

This was originally posted on 2007-03-03 to http://andrewho.co.uk/weblog/centericq-and-ejabberd

I've been unable to connect to the jabber.org server using centericq, and after a bit of google-ing, I've found the reason why. It turns out that centericq sends a request for iq:agents, which is deprecated. ejabberd returns with 503 Service Unavailable, and centericq disconnects immediately. The fix for this is to simply stop centericq from sending this request. In src/hooks/jabberhook.cc comment out the following lines:

x = jutil_iqnew(JPACKET__GET, NS_AGENTS);
xmlnode_put_attrib(x, "id", "Agent List");
jab_send(jc, x);
xmlnode_free(x);

This appears to be a known issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment