ricky gutierrez | 16 Mar 18:08 2015

Re: some issue with admin interface

2015-03-13 10:30 GMT-06:00 ricky gutierrez <xserverlinux <at> gmail.com>:
> Hi, something happened to my ejabberd administration interface does
> not show me all my domain user, look at this screen shot
> thnk for any help!
> regardss
hi, strange I can see the total of my users, but users link shows me a few users




ejabberd mailing list
ejabberd <at> jabber.ru
Jérôme Sautret | 13 Mar 18:27 2015

Easy installer for ejabberd contributed modules


We've just added a new mechanism to easily install third-party modules
in ejabberd. You can find more about it here:

We are gathering feedback before we add it in the next stable release.


Jérôme Sautret
ejabberd mailing list
ejabberd <at> jabber.ru
hensem | 12 Mar 07:34 2015

Install mod_muc_admin

I am using ejabberd 14.12, installed using binary installer on CentOS 6.5

Try to install the module from source. both the trunk and
branches/ejabberd-2.0.x can't compile.

Then just copy mod_muc_admin.beam (from trunk) to ejabberd ebin directory,
edit config file and restart ejabberd.

In the web admin interface I can see the mod is enable. But there is no menu
for it. I read somewhere a menu will appear to show created rooms.

Also when I run any command if just give 

/Problem 'error badarg' occurred executing the command./

Anybody have any idea how to install it properly and use it? 


View this message in context: http://jabber.996255.n3.nabble.com/Install-mod-muc-admin-tp34683.html
Sent from the ejabberd mailing list archive at Nabble.com.
Gaurav Jain | 12 Mar 06:11 2015

ejabberd behavior b/w user disconnected vs user unavailable


What is the ejabbered behavior for user who is un-expectedly disconnected from internet


user who explicitly sent an 'unavailable' presence?

Would they both be considered offline (for both single user chat or MUC)?

I want a behavior where if a user is disconnected from internet, offline messages to be sent

If user sent a explicit unavailble presence, I dont want offline messages to be sent.

How can that be accomplished? I can write my hook. But I need to know in which situations, the hook will be called.

Best Regards,
ejabberd mailing list
ejabberd <at> jabber.ru
Markus "Shorty" Uckelmann | 10 Mar 22:20 2015

mod_vcard_ldap crashes

Hi all,

I'm trying to get mod_vcard_ldap running in 15.02 with a Win$ AD-Server. 
So far I am able to authenticate via LDAP. But adding the following 
vcard configuration gives me a "CRASH REPORT" and the server is running 
but dead:

   #mod_vcard: []
           "NICKNAME": {"%u", []}
           "FN": {"%s", ["displayName"]}
           "EMAIL": {"%s", ["mail"]}
           "User": "%u"
           "Name": "givenName"
           "Email": "mail"
           "Full Name": "FN"
           "Nickname": "NICKNAME"
           "Email": "EMAIL"

And the logged error is(from error.log):

2015-03-10 22:10:46.175 [error] <0.331.0> CRASH REPORT Process <0.331.0> 
with 0 neighbours exited with reason: {undefined_macro,''} in 
application_master:init/4 line 133

This is the part from crash.log:

2015-03-10 22:10:46 =CRASH REPORT====
     initial call: application_master:init/4
     pid: <0.331.0>
     registered_name: []
     exception exit: 
     ancestors: [<0.330.0>]
     messages: []
     links: [<0.330.0>,<0.332.0>,<0.302.0>]
     dictionary: []
     trap_exit: true
     status: running
     heap_size: 610
     stack_size: 27
     reductions: 129

There is no crashdump file.

Uncommenting the above configration lines make ejabberd work again after 
a restart.

AFAIK I sticked to the documentation at [1]. Am I missing something? Any 
help would be much appreciated.

[1] http://docs.ejabberd.im/admin/guide

Cheers, Shorty
Mickaël Rémond | 10 Mar 19:52 2015

How are ejabberd repositories structured


As I was often asked to explain how the ejabberd repositories where
organised, I wrote this blog post about it:

I hope this helps.



Mickaël Rémond
 Meet me in SF ejabberd meetup:

ejabberd mailing list
ejabberd <at> jabber.ru
Gaurav Jain | 8 Mar 23:38 2015

'from' attribute in delay element of MUC history message has jid of occupant instead of room


I am observing that from attribute of delay element in MUC history message has JID of the occupant instead of room.

As per xmpp.org/extensions/xep-0045.html#enter-history:

Discussion history messages MUST be stamped with Delayed Delivery (XEP-0203) [14] information qualified by the 'urn:xmpp:delay' namespace to indicate that they are sent with delayed delivery and to specify the times at which they were originally sent. The 'from' attribute MUST be set to the JID of the room itself.RoomJID = testGroup <at> conference.example.com
Occupant 1 =
erik <at> example.com/desktop
Occupant 2 = cyrus <at> example.com/desktop

xml version="1.0" encoding="UTF-8"?> <message xmlns="jabber:client" from="testGroup <at> conference.example.com/cyrus" to="erik <at> example.com/desktop" type="groupchat"> <body>Hi</body> <thread>B9D31734-606D-43CD-B613-D5FF8DF7CAA3</thread> <subject /> <active xmlns="http://jabber.org/protocol/chatstates" /> <delay xmlns="urn:xmpp:delay" from="cyrus <at> example.com/desktop" stamp="2015-03-08T21:02:42.481Z" /> <x xmlns="jabber:x:delay" from="cyrus <at> example.com/desktop" stamp="20150308T21:02:42" /> </message>

Why is set to the JID of occupant instead of JID of room. Please help me understand.

Best Regards,

ejabberd mailing list
ejabberd <at> jabber.ru
Gaurav Jain | 6 Mar 23:35 2015

In members-only room, when would a new member gets invitation


I need a clarification on protocol. I did read 0045 on MUC. Just wanted to confirm.

If "owner" creates a members-only room and add a member with affiliation "admin", would the new member will automatically get an invitation


the owner needs to send an invitation explicitly to the the newly added member as "admin".


ejabberd mailing list
ejabberd <at> jabber.ru
Tobias Kräntzer | 2 Mar 20:41 2015

Berlin XMPP Meetup

Hello all,

I created a meetup group to gather the Berlin XMPP community. If you are interested, I would be happy if you join. This first meetup should be an informal round to get to know each other. Place and time yet to be determined.


ejabberd mailing list
ejabberd <at> jabber.ru
Gaurav Jain | 2 Mar 01:30 2015

How to get regular C-style string from jlib


All the xml elements returns value is format like


How can I get or convert this value to


Best Regards,
ejabberd mailing list
ejabberd <at> jabber.ru
Gaurav Jain | 1 Mar 22:21 2015

Crash while returning IQ packet from Custom IQ handler.


* I have written a custom IQ handler
* That handler receives the IQ packet, sets its type = result and returns back as it output

While testing, custom IQ handler, I get the error mentioned below:

Sequence of events that happened:

* Client sent the below XML to the server.
* Server received it.
* Gives it to the call back function of my custom IQ handler.
* which logs it and make type = result for the IQ packet

* And the server crashes with the result below.

 CRASH REPORT Process <0.473.0> with 0 neighbours exited with reason: {badxml,{xmlel,<<"iq">>,[{<<"from">>,<<"some_id">>},{<<"to">>,<<"some_id">>},{<<"id">>,<<"12345">>},{<<"type">>,<<"result">>}],{xmlel,<<"query">>,[{<<"xmlns">>,<<"test:testing">>}],[{xmlel,<<"sales">>,[],[{xmlel,<<"type">>,[],[{xmlcdata,<<"my_test">>}]},{xmlel,<<"id">>,[],[{xmlcdata,<<"1234567890123111">>}]}]}]}},{function_clause,[{xml,'-element_to_string_nocatch/1-lc$^0/1-0-',[{xmlel,<<"query">>,[{<<"xmlns">>,<<"test...">>}],...}],...},...]}} in xml:element_to_string/1 line 122 in p1_fsm:terminate/8 line 760

<?xml version="1.0" encoding="UTF-8"?> <iq type="set" id="12345"> <query xmlns="test:testing"> <sales> <type>my_test</type> <id>1234567890123111</id> </sales> </query> </iq>

Relevant Code:

start(Host, Opt) ->
IQDisc = gen_mod:get_opt(iqdisc, Opt, fun gen_iq_handler:check_type/1,
gen_iq_handler:add_iq_handler(ejabberd_sm, Host, ?NS_TEST, ?MODULE, process_sm_iq, IQDisc).

stop(Host) ->
gen_iq_handler:remove_iq_handler(ejabberd_sm, Host, ?NS_TEST),
error_logger:info_msg("Stoping module 'custom_test' ", []).

process_sm_iq(From, To,
#iq{type = Type, sub_el = SubEl} = IQ) ->
error_logger:info_msg("Process_sm_iq request received ~p~n", [IQ]),
IQ#iq{type = result}.

Please provide pointers to help me resolve this issue.

Best Regards,
ejabberd mailing list
ejabberd <at> jabber.ru