ejabberd

How to search registered user on ejabberd server from client side using smack library?

 ̄綄美尐妖づ 提交于 2021-02-17 05:18:57
问题 I am using smack on the client-side. I tried to search registered users on the client-side because before creating a new user I want to know that the id is registered on server or not if not then create the user either log in the user but ejabberd server crashed with the error. Here are the crash logs of ejabberd server. Failed to process iq: #iq{ id = <<"Hh6AJ-28">>,type = set,lang = <<"en">>, from = #jid{ user = <<"admin">>,server = <<"faiqkhan-virtualbox">>, resource = <<

How to extract data from xml on ejabberd server?

て烟熏妆下的殇ゞ 提交于 2021-02-11 15:48:50
问题 I am using custom module to view data of every coming packet on the ejabberd server. My log print on the terminal is given below: 18:30:06.370 [info] mod_stanza_ack a presence has been sent coming from: {jid,<<"e5d6d83c-ea77-4d10-aaac-4e0e38899ac2">>,<<"faiqkhan-virtualbox">>,<<"2923451306214954478930">>,<<"e5d6d83c-ea77-4d10-aaac-4e0e38899ac2">>,<<"faiqkhan-virtualbox">>,<<"2923451306214954478930">>} 18:30:06.371 [info] mod_stanza_ack a presence has been sent to: {jid,<<"e5d6d83c-ea77-4d10

How to get last activity of user from ejabberd?

断了今生、忘了曾经 提交于 2021-02-11 14:52:37
问题 I try to get the last_activity of user using ejabberd API get_last but getting this error: REST API Error: get_last([{<<"user">>,<<"67456efc-be57-4cbd-a176-527de2dce19d@faiqkhan-virtualbox">>},{<<"host">>,<<"faiqkhan-VirtualBox">>}]) -> error:{module_not_loaded,mod_last,<<"faiqkhan-VirtualBox">>} [{gen_mod,get_module_opts,2,[{file,"src/gen_mod.erl"},{line,338}]},{gen_mod,get_module_opt,3,[{file,"src/gen_mod.erl"},{line,318}]},{gen_mod,db_mod,3,[{file,"src/gen_mod.erl"},{line,352}]},{mod_last

How to get last activity of user from ejabberd?

可紊 提交于 2021-02-11 14:50:13
问题 I try to get the last_activity of user using ejabberd API get_last but getting this error: REST API Error: get_last([{<<"user">>,<<"67456efc-be57-4cbd-a176-527de2dce19d@faiqkhan-virtualbox">>},{<<"host">>,<<"faiqkhan-VirtualBox">>}]) -> error:{module_not_loaded,mod_last,<<"faiqkhan-VirtualBox">>} [{gen_mod,get_module_opts,2,[{file,"src/gen_mod.erl"},{line,338}]},{gen_mod,get_module_opt,3,[{file,"src/gen_mod.erl"},{line,318}]},{gen_mod,db_mod,3,[{file,"src/gen_mod.erl"},{line,352}]},{mod_last

STUN/TURN/ICE implementation with Ejabberd server and XMPP client iOS

。_饼干妹妹 提交于 2021-01-28 21:31:44
问题 I am using ejabberd-16.04 on my mac and XMPPFramework from robbiehanson . It works fine for chatting, no problem. But now I want to add voice calling into my application. I am using Jingle Protocol for call establishment and it works fine for direct communication (i.e. both caller and callee are in same network). The problem I am facing is for cross-network and I want to implement Jingle ICE for this, NATed clients. 1 Can any one tell me how can I enable and use STUN/TURN module on ejabberd

Strophe disconnecting from Ejabbered with Status 10

。_饼干妹妹 提交于 2021-01-28 08:59:30
问题 In my ionic 4 application, I am using strophe.js to connect to Ejabbered server. In the application after status connected I am able to see chats successfully but after sometime it gets disconnected on its own and chats disappear without doing any thing. In the logs,Strophe is disconnecting with following status: EjabService [Connection] Unknown status received: and status is 10 Also on few devices, not able to see chats due to connection problem. Ejabbered version installed: 20.03 Here is

User session not found - error code 503

倾然丶 夕夏残阳落幕 提交于 2020-07-22 14:30:32
问题 When I write messages to a user who is offline - without sending it - I get an error Your message was not send because of an error pick error response: /http-bind/<body xmlns='http://jabber.org/protocol/httpbind'><message xml:lang='en' to='abogdanov@bingo-dev.ru/181473147433257603378' from='jabberadmin@bingo-dev.ru' type='error' xmlns='jabber:client'><paused xmlns='http://jabber.org/protocol/chatstates'/><error code='503' type='cancel'><service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp