Search code examples
xmppejabberd

Command to check which all XMPP extension Protocols does ejabberd support?


Is there a command or some other way to check which all XEPs (XMPP extension Protocols) are supported by ejabberd?


Solution

  • No direct command, but you can do the following magic from remsh (i.e. ejabberdctl debug):

    > rp(lists:flatten(
         lists:map(
             fun(M) ->
                [Proto || {protocol, Proto} <- M:module_info(attributes)]
             end,
         element(2, application:get_key(ejabberd, modules))))).