As for XMPP documentation (Example 10) this kind of stanza should be valid:
<presence from="[email protected]" />
However ejabberd replies with 400 response. The reason here is a missing "to" field. I wonder why it happens. Based on a XML schema of a XEP-0114 analysis I guess the reason is in a fact that [email protected] is an external component.
Could someone confirm that I am right/wrong, or give a suggestion how to overcome the situation?
XMPP Server: ejabberd 2.1.5.