sending presence subscribe with mod_rest/mod_admin_extra doesn't make outbound entry

If I send the following stanza, a rosteritems entry is created for user_2 with the ask="I" -- as it should.
However, no entry is created for user_1 with ask="O"

curl --basic --user 'user_1@example.net:xxxxxxxxxxxx' -d '<presence from="user_1@example.net" to="user_2@example.net" type="subscribe" id="foo1" />' localhost:5282/rest

So therefore, when the presence:subscribed comes back from user_2, the subscription is not made because that step seems to want to update the entry (that doesn't exist) to be ask="N" and subscription="T"

If I send the same stanza using xmpp directly, it works and creates both rosteritem entries.

Any thoughts?

Syndicate content