how to send presence from ejabberd component.

I write a ejabberd component which wait for http request and then send a presence stanza fro users.
so the client can use a single-http-request to add friends or login in my app.
for example:

<presence from="13222222222@etest.pengqiao.me" />
<presence to="18502131478@etest.pengqiao.me" type="subscribe" from="13222222222@etest.pengqiao.me" />

but I got this errors in the logging file

<presence to="13222222222@etest.pengqiao.me" type="error"><error code="400" type="modify"><bad-request xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /></error></presence>

and the subscribe-presence stanza not send to the client.

I search the web, it seems like the openfire works well, but the ejbbaerd not allow component to send presence stanza.

but I really need this feature, does there any config can help me?

Hello, have you found a

Hello, have you found a solution to this problem? I am trying to send a presence package from an external component on behalf of a user but I get error 400.

Hi, did you solved this? I am

Hi, did you solved this? I am trying to update the user presence using an external component too.

Syndicate content