ejabberd - Comments for "Simple module event not getting handled"
https://www.ejabberd.im/node/24790
enI think the problem occured
https://www.ejabberd.im/node/24790#comment-65375
<p>I think the problem occured because it is not ejabberd. Probably if you use ejabberd it should not occur (I guess).</p>
<p>pashkash, did you try with ejabberd ? which version ? Are you sure this is the same issue ?</p>
Tue, 24 Mar 2015 18:06:31 +0000mremondcomment 65375 at https://www.ejabberd.imHello, dodul.
Did you solve
https://www.ejabberd.im/node/24790#comment-65368
<p>Hello, dodul.<br />
Did you solve this issue? If yes, then please tell us how did you do that. Thx.</p>
Tue, 24 Mar 2015 07:56:59 +0000pashkashcomment 65368 at https://www.ejabberd.imHello, it seems these logs
https://www.ejabberd.im/node/24790#comment-65300
<p>Hello, it seems these logs are not from ejabberd. Could you please try with ejabberd and report ?</p>
Thu, 05 Mar 2015 07:48:52 +0000mremondcomment 65300 at https://www.ejabberd.imThanks a lot for your reply.
https://www.ejabberd.im/node/24790#comment-65299
<p>Thanks a lot for your reply. I compiled the whole source again with make and this time the module is starting normally and generating logs. However, Im getting the below error while filter packet hook is triggered.</p>
<div class="codeblock"><code>2015-03-04 12:16:30.506 [error] <0.760.0>@ejabberd_hooks:run_fold1:259 <br />{function_clause,<br />[{xml,append_subtags,[{{jid,<<"user2">>,<<"localhost">>,<<"Damien">>,<<"user2">>,<<"localhost">>,<<"Damien">>},{jid,<<"user1">>,<<"localhost">>,<<"Gajim">>,<<"user1">>,<<"localhost">>,<<"Gajim">>},{xmlel,<<"message">>,[{<<"xml:lang">>,<<"en">>},{<<"type">>,<<"chat">>},{<<"to">>,<<"user1@localhost/Gajim">>},{<<"id">>,<<"ab68a">>}],[{xmlcdata,<<"\n">>},{xmlel,<<"body">>,[],[{xmlcdata,<<"mmmmm">>}]},{xmlcdata,<<"\n">>},{xmlel,<<"active">>,[{<<"xmlns">>,<<"http://jabber.org/protocol/chatstates">>}],[]},{xmlcdata,<<"\n">>}]}},<br />[{"a","b"}]],[{file,"src/xml.erl"},{line,276}]},<br />{safely,apply,3,[{file,"src/safely.erl"},{line,19}]},<br />{ejabberd_hooks,run_fold1,4,[{file,"src/ejabberd_hooks.erl"},{line,255}]},<br />{ejabberd_router,do_route,3,[{file,"src/ejabberd_router.erl"},{line,246}]},<br />{ejabberd_router,route,3,[{file,"src/ejabberd_router.erl"},{line,78}]},<br />{ejabberd_c2s,session_established2,2,[{file,"src/ejabberd_c2s.erl"},{line,1098}]},<br />{p1_fsm_old,handle_msg,10,[{file,"src/p1_fsm_old.erl"},{line,542}]},<br />{proc_lib,wake_up,3,[{file,"proc_lib.erl"},{line,247}]}]}</code></div>
<p>How to fix this? Please help.</p>
Wed, 04 Mar 2015 22:26:36 +0000dodul@LIVE.COMcomment 65299 at https://www.ejabberd.imHello,
We are focused on pure
https://www.ejabberd.im/node/24790#comment-65298
<p>Hello,</p>
<p>We are focused on pure ejabberd, so I will reply according to ejabberd 15.02 state of the art.</p>
<p>Please, make sure you build ejabberd (and your module) with make. It will ensure the correct parse transform on the code are applied.</p>
<p>Then, make sure you include the 'logger.hrl' include.</p>
<p>You you build based on the latest master, it should work without issue.</p>
<p>Could you please try as described with the following repository ?<br />
<noindex><a href="https://github.com/processone/ejabberd" title="https://github.com/processone/ejabberd" rel="nofollow" >https://github.com/processone/ejabberd</a></noindex></p>
<p>Thanks !</p>
Wed, 04 Mar 2015 18:35:38 +0000mremondcomment 65298 at https://www.ejabberd.im