Skip to content

Instantly share code, notes, and snippets.

@bajansen
Created July 5, 2020 13:14
Show Gist options
  • Save bajansen/36c48dd296b3f0e4468339fc14401dec to your computer and use it in GitHub Desktop.
Save bajansen/36c48dd296b3f0e4468339fc14401dec to your computer and use it in GitHub Desktop.
Allowing prosody to work with (spec-breaking) Gigaset C470IP's XMPP client

The XMPP client in Gigaset's C470IP (and possible other devices) does not send an 'id' attribute while requesting the roster at login. The resulting error thrown by prosody in turn makes the device immediately disconnect.

In core/stanza_router.lua comment out the following three lines:

elseif not stanza.attr.id then
	origin.send(st.error_reply(stanza, "modify", "bad-request", "Missing required 'id' attribute"));
	return;

This allows the C470IP to connect.

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