ejabberd - Comments for "Simple module event not getting handled" https://www.ejabberd.im/node/24790 en I 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 +0000 mremond comment 65375 at https://www.ejabberd.im Hello, 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 +0000 pashkash comment 65368 at https://www.ejabberd.im Hello, 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 +0000 mremond comment 65300 at https://www.ejabberd.im Thanks 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] &lt;0.760.0&gt;@ejabberd_hooks:run_fold1:259 <br />{function_clause,<br />[{xml,append_subtags,[{{jid,&lt;&lt;&quot;user2&quot;&gt;&gt;,&lt;&lt;&quot;localhost&quot;&gt;&gt;,&lt;&lt;&quot;Damien&quot;&gt;&gt;,&lt;&lt;&quot;user2&quot;&gt;&gt;,&lt;&lt;&quot;localhost&quot;&gt;&gt;,&lt;&lt;&quot;Damien&quot;&gt;&gt;},{jid,&lt;&lt;&quot;user1&quot;&gt;&gt;,&lt;&lt;&quot;localhost&quot;&gt;&gt;,&lt;&lt;&quot;Gajim&quot;&gt;&gt;,&lt;&lt;&quot;user1&quot;&gt;&gt;,&lt;&lt;&quot;localhost&quot;&gt;&gt;,&lt;&lt;&quot;Gajim&quot;&gt;&gt;},{xmlel,&lt;&lt;&quot;message&quot;&gt;&gt;,[{&lt;&lt;&quot;xml:lang&quot;&gt;&gt;,&lt;&lt;&quot;en&quot;&gt;&gt;},{&lt;&lt;&quot;type&quot;&gt;&gt;,&lt;&lt;&quot;chat&quot;&gt;&gt;},{&lt;&lt;&quot;to&quot;&gt;&gt;,&lt;&lt;&quot;user1@localhost/Gajim&quot;&gt;&gt;},{&lt;&lt;&quot;id&quot;&gt;&gt;,&lt;&lt;&quot;ab68a&quot;&gt;&gt;}],[{xmlcdata,&lt;&lt;&quot;\n&quot;&gt;&gt;},{xmlel,&lt;&lt;&quot;body&quot;&gt;&gt;,[],[{xmlcdata,&lt;&lt;&quot;mmmmm&quot;&gt;&gt;}]},{xmlcdata,&lt;&lt;&quot;\n&quot;&gt;&gt;},{xmlel,&lt;&lt;&quot;active&quot;&gt;&gt;,[{&lt;&lt;&quot;xmlns&quot;&gt;&gt;,&lt;&lt;&quot;http://jabber.org/protocol/chatstates&quot;&gt;&gt;}],[]},{xmlcdata,&lt;&lt;&quot;\n&quot;&gt;&gt;}]}},<br />[{&quot;a&quot;,&quot;b&quot;}]],[{file,&quot;src/xml.erl&quot;},{line,276}]},<br />{safely,apply,3,[{file,&quot;src/safely.erl&quot;},{line,19}]},<br />{ejabberd_hooks,run_fold1,4,[{file,&quot;src/ejabberd_hooks.erl&quot;},{line,255}]},<br />{ejabberd_router,do_route,3,[{file,&quot;src/ejabberd_router.erl&quot;},{line,246}]},<br />{ejabberd_router,route,3,[{file,&quot;src/ejabberd_router.erl&quot;},{line,78}]},<br />{ejabberd_c2s,session_established2,2,[{file,&quot;src/ejabberd_c2s.erl&quot;},{line,1098}]},<br />{p1_fsm_old,handle_msg,10,[{file,&quot;src/p1_fsm_old.erl&quot;},{line,542}]},<br />{proc_lib,wake_up,3,[{file,&quot;proc_lib.erl&quot;},{line,247}]}]}</code></div> <p>How to fix this? Please help.</p> Wed, 04 Mar 2015 22:26:36 +0000 dodul@LIVE.COM comment 65299 at https://www.ejabberd.im Hello, 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 +0000 mremond comment 65298 at https://www.ejabberd.im