The support for the non-standard “invisible presence” will be removed in the incoming ejabberd 3.x release line.
The XMPP/Jabber server ejabberd has been supporting the “invisible presence” for a long time (XEP-0018: Invisible Presence, Rejected). Although this “insivible presence” is non-standard, it has been supported because a lot of users asked for it in the past, and some old clients used to support it.
This is thus a call to client developers, to remove their support of “Invisible presence”. Your client should not send anymore presence stanzas of this type:
<presence to="email@example.com" type="invisible"/>
<presence to="firstname.lastname@example.org" type="visible"/>
Instead, you client should support either “Invisibility” (XEP-0126: Invisibility, Informational), or no such feature at all. Invisibility makes use of “Privacy lists” (XEP-0016: Privacy Lists). Here is a short example, extracted from the XEP. Basically ot blocks all presences from going out to contacts.
Setup a privacy list:
<iq email@example.com/shire' type='set' id='inv1'>
<item action='deny' order='1'>
Make that privacy list active:
<iq firstname.lastname@example.org/shire' type='set' id='active1'>
The server should answer these iq. Then the client can send a presence:
<status>I'm not really here, you understand!</status>
Later the client can become selectively visibile or invisible to some or all contacts.
The “Invisible presence” support removal will be effective in version 3.0 or 3.1. The timeframe is not completely clear at this point, but the goal for 3.0 beta series is in the next weeks.