theozaurus/mod_eventful

Example configuration file

Closed this issue · 2 comments

kfdm commented

I am admittedly fairly new to ejabberd and was wondering if you could provide a configuration file example showing how to configure this module.

Sure, here's a snippet from the modules section:

%%%   =======
%%%   MODULES

{modules,
 [
  {mod_adhoc,    []},
  {mod_announce, [{access, announce}]}, % requires mod_adhoc
  {mod_configure,[]}, % requires mod_adhoc
  {mod_caps,     []},
  {mod_disco,    []},
  {mod_service_log,[]},
  {mod_stats,    []},
  {mod_time,     []},
  {mod_shared_roster, []},
  {mod_last,     []},
  {mod_privacy,  []},
  {mod_private,  []},
  {mod_roster,   []},
  {mod_vcard_ldap, []},
  {mod_ctlextra, []},
  {mod_eventful, [
      {url, [
        {online_hook, "http://localhost/users/online"},
        {offline_hook, "http://localhost/users/offline"},
        {unset_presence_hook, undefined},
        {set_presence_hook, undefined}
      ]},
      {user,     "HTTP BASIC USERNAME"},
      {password, "HTTP BASIC PASSWORD"}]},
  {mod_version,  []}
]}.

Let me know how you get on.

kfdm commented

Thank you for the example. The mistake I made was not putting the online_hook and offline_hook under url. I had put them all at the same level as user/password