We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var toJid = to + '@' + xmpp_ServerConnection.domain; var fromJid = '53e1853e-fd47-429a-9d66-6a4285e8a650' + '@' + xmpp_ServerConnection.domain; xmpp_ServerConnection.mam.query(fromJid, { "with": toJid, onMessage: function (message) { console.log("Message from ", $(message).find("forwarded message").attr("from"), ": ", $(message).find("forwarded message body").text()); return true; }, onComplete: function (response) { console.log("Got all the messages"); } });
I tried with above code getting error in debug logs, error is given below,
2017-12-20 15:24:55.895 [debug] <0.30102.2>@ejabberd_http_bind:send_outpacket:1043 --- outgoing data --- <body xmlns='http://jabber.org/protocol/httpbind'> <iq xmlns='jabber:client' from='[email protected]' to='[email protected]/web_4806_1513591677324' type='error' id='d4a0173f-f3cc-45b7-8915-902a5bce8bd6:sendIQ'> <query xmlns='urn:xmpp:mam:2'> <x xmlns='jabber:x:data' type='submit'> <field var='FORM_TYPE' type='hidden'> <value>urn:xmpp:mam:2</value> </field> <field var='with'> <value>[email protected]</value> </field> </x> <set xmlns='http://jabber.org/protocol/rsm'/> </query> <error code='503' type='cancel'> <service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/> <text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>No module is handling this query </text> </error> </iq> </body>
Can anyone help me in this?
The text was updated successfully, but these errors were encountered:
Looks like you don't have MAM enabled in your XMPP server. Double check that.
Sorry, something went wrong.
this what i have in my ejabberd.yml
mod_mam: default: always db_type: sql
I am using 16.02 ejabberd source code, if I use following namespace instead above one,
<field var='FORM_TYPE' type='hidden'> <value>urn:xmpp:mam:1</value> </field>
it is not giving error but result was not proper
<iq xmlns="jabber:client" from="fromJid" to="fromJid" id="fromJid" type="result"> <fin xmlns="urn:xmpp:mam:1" complete="false"> <set xmlns="http://jabber.org/protocol/rsm"> <first>1509351242923055</first> <last>1510224166687524</last> <count>96</count> </set> </fin> </iq>
Please let me know where I am wrong?
Ejabberd doesn't support MAM2. You can check whether this Pull Request helps: #6
No branches or pull requests
I tried with above code getting error in debug logs, error is given below,
Can anyone help me in this?
The text was updated successfully, but these errors were encountered: