I have developed an application in erlang and have place it inside the ebin folder of ejabberd. I had to decide a server to be able to host the game hence I chose ejabberd for it.I am using Pidgin as a client side messaging server.My strategy was to detect the message stanza sent by the client and extract the actual message from its body tag and use it as a function call to run my application.
I have created a custom module as
start(_Host, _Opts) ->
Now to call this module I have written the following code snippet in ejabberd_router inside do_route:
case ejabberd_hooks:run_fold(filter_packet, OrigPacket, ) of
So according to me my custom module should be called fro ejabberd_router but it is being called as I start my ejabberd and that to it is being called multiple times
(ejabberd@localhost)1> 18:44:06.134 [info] Application lager started on node ejabberd@localhost
18:54:47.001 [info] hello buddy 10
can anyone help?
erlang-questions mailing list
|Free forum by Nabble||Edit this page|