Questions tagged [ejabberd-hooks]

ejabberd provides an event mechanism. Each module can subscribe to events and a hook in the module code is called when the event occurs.

ejabberd provides an event mechanism. Each module can subscribe to events and a hook in the module code is called when the event occurs.

When ejabberd is processing an arbitrary event (incoming IQ, outgoing presence, configuration change, etc), it is convenient to consider some of them notable. In order for someone to be notified of such events, ejabberd executes "hooks". A hook is represented by a unique name. All functions associated with the hook's name will be called in some specified order.

Site: https://www.ejabberd.im/Events%20and%20hooks

Docs: https://docs.ejabberd.im/developer/guide/#hooks

55 questions
0
votes
0 answers

Ejabberd get room online occupants within module

I am currently trying to get the occupants of a room in a custom Ejabberd module within the muc_filter_message hook, but all attempts to get the room state are timing out. error: 2016-07-25 10:43:04.802 [error]…
kgpmurray
  • 192
  • 2
  • 2
  • 11
0
votes
0 answers

get user properties in result of IQ xmpp stanza

I am creating XMPP users using OpenFire create-user RestAPI call. And i am setting some properties for users as indicated in PayLoad Example 2. After creating users, i add them to each others rosters. So, every user has every other user in his/her…
VJ Vélan Solutions
  • 6,434
  • 5
  • 49
  • 63
0
votes
0 answers

Why does ejabberd stop modules before closing c2s process?

I add some modules following the gen_mod behaviour in ejabberd to realize my private service, and add some hooks in these modules. This works well most time. ejabberd_hooks:add(unset_presence_hook, Host, ?MODULE, unset_presence_hook, 10), But…
Gang Zhao
  • 126
  • 8
0
votes
1 answer

ejabberd return type of the hook handler

Is it necessary for the hook handler to return the type of the value (ie. return value type) as specified in the https://docs.ejabberd.im/developer/hooks/ ?
Talespin_Kit
  • 20,830
  • 29
  • 89
  • 135
0
votes
0 answers

ejabberd detect subscribe request for offline users

In ejabberd, I would like to intercept a subscribe request from one user to another, when the other user (to whom the request is being sent) is offline. Is there a specific hook I can use to catch this case? I just want to capture jid of of both…
Navjeet
  • 61
  • 10
0
votes
1 answer

mod_zeropush not working with ejabberd 16.03

I am working with mod_zeropush and i was working fine with 15.07 until i switched to the ejabberd version 16.03. I am using Ubuntu OS 14.04 Copied all beam files again to ebin directory it iis last error === 2016-05-12 15:40:08.706 [error]…
0
votes
1 answer

How can i disable multi subscription on pubsub node in ejabberd

I have to disable the multi subscription, I.e ability to subscribe more than once to a pubsub node
Ajmal M Sali
  • 598
  • 6
  • 14
0
votes
1 answer

What is the limit for no of subscriptions for a pubsub node in ejabberd?

I can see the subscription list in ejabberd odbc setup is a TEXT, what is the normal limit on number of subscriptions.
Ajmal M Sali
  • 598
  • 6
  • 14
0
votes
1 answer

Ejabberd 15.07 custom module on hook user_send_packet

I am willing to develop a custom module by using a hook "user_send_packet" For now I have deleted custom work from the function and compiled the code. But when I use this module... Server is crashing and restarting continuously. I am not getting…
Gopal S Rathore
  • 9,885
  • 3
  • 30
  • 38
-1
votes
1 answer

Configure HBase with Ejabberd

I am planning to use HBase for my Ejabberd Server. I was trying to get some documentation on how to configure it but I couldn't so please anyone can help me by giving some documentation link. Thanks, Shiva Prasad G
1 2 3
4