0
votes

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.

1
Did you try to ask the ejabbered developers about this issue?Flow

1 Answers

0
votes

example 10 which you refer to sends out a user presence to a client and includes a resource. So this is server => client.

If I understand you correct you send this presence from your component to the server (component=>server). Without a to address the server is not able to route this presence to another entity.