ejabberd - Comments for "Forwarding offline messages" https://www.ejabberd.im/node/4223 en sorry i cant help but... https://www.ejabberd.im/node/4223#comment-56892 <p>i know these post are now about 4 month old<br /> so i would love to know if you managed to create a push_module for ejabberd ?</p> <p>i am very new to ejabberd / erlang but i am thinking of making a chat client for the iphone too</p> <p>if i am right you are trying to send apple the push notification each time a offline msg is received,<br /> as far as i know apple dosent like those many requests or did you implement some kind of buffer in php ?<br /> and wouldnt it be possible to send the request to apple directly through the push_module ?</p> <p>if you didnt manage or didnt have time i would use your attempt as a starting point for me</p> <p>lad1337</p> Fri, 17 Dec 2010 09:48:23 +0000 lad1337 comment 56892 at https://www.ejabberd.im going crazy! https://www.ejabberd.im/node/4223#comment-56560 <p>Please help can't figure this error out</p> <div class="codeblock"><code>-module(mod_offline_push).<br />-include(&quot;ejabberd.hrl&quot;).<br />-include(&quot;jlib.hrl&quot;).<br />-include(&quot;web/ejabberd_http.hrl&quot;). <p>-define(PROCNAME, mod_offline_push).<br />-behaviour(gen_mod).</p> <p>-export([start/2,<br /> stop/1,<br /> init/2,<br /> send_notice/1]).</p> <p>start(VHost,Opts) -&gt;<br /> ?INFO_MSG(&quot;Starting mod_offline_push Host: ~p&quot;, [VHost]),<br /> register(?PROCNAME,spawn(?MODULE, init, [VHost, Opts])), <br /> ok.</p> <p>init(VHost, _Opts) -&gt;<br /> inets:start(),<br /> ssl:start(),<br /> ejabberd_hooks:add(offline_message_hook, VHost, ?MODULE,send_notice, 10),<br /> ok.</p> <p>stop(VHost) -&gt;<br />&nbsp;&nbsp;&nbsp; ?INFO_MSG(&quot;mod_offline_push stopping Host: ~p&quot;, [VHost]),<br />&nbsp;&nbsp;&nbsp; ejabberd_hooks:delete(offline_message_hook, VHost, ?MODULE, send_notice, 50),<br />&nbsp;&nbsp;&nbsp; ok.</p> <p>send_notice(Packet) -&gt;<br /> ?INFO_MSG(&quot;after http:&quot;,[]),<br /> Type = xml:get_tag_attr_s(&quot;type&quot;, Packet),<br /> FromS = xml:get_tag_attr_s(&quot;from&quot;, Packet),<br /> ToS&nbsp;&nbsp; = xml:get_tag_attr_s(&quot;to&quot;, Packet),<br /> Body = xml:get_path_s(Packet, [{elem, &quot;body&quot;}, cdata]),<br /> Sep = &quot;&amp;&quot;,<br /> Post = [<br /> &quot;application=&quot;,ToS, Sep,<br /> &quot;event=&quot;, FromS,Type, Sep,<br /> &quot;description=&quot;, Body, Sep,<br /> &quot;priority=-1&quot; ],<br /> httpc:request(post, {&quot;http://pushNotification/chatXpush&quot;, [], &quot;application/x-www-form-urlencoded&quot;, list_to_binary(Post)},[],[]).</p></code></div> <p>ERRROR REPORT</p> <div class="codeblock"><code>=ERROR REPORT==== 2010-08-26 16:53:19 ===<br />E(&lt;0.370.0&gt;:ejabberd_hooks:190) : {undef,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{mod_offline_push,send_notice,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{jid,&quot;userA&quot;,&quot;188.165.211.1&quot;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb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nbsp;&nbsp;&nbsp;&nbsp; {ejabberd_local,route,3},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {ejabberd_router,route,3},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {ejabberd_c2s,session_established,2},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {p1_fsm,handle_msg,10},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {proc_lib,init_p,5}]}<br />running hook: {offline_message_hook,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{jid,&quot;userA&quot;,&quot;188.165.211.1&quot;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;2121731711282852044419503&quot;,&quot;userA&quot;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;userA&quot;,&quot;2121731711282852044419503&quot;},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {jid,&quot;userB&quot;,&quot;188.165.211.1&quot;,[],&quot;userB&quot;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;188.165.211.1&quot;,[]},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {xmlelement,&quot;message&quot;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{&quot;type&quot;,&quot;chat&quot;},{&quot;to&quot;,&quot;userB@188.165.211.1&quot;}],<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{xmlelement,&quot;body&quot;,[],[{xmlcdata,&lt;&lt;&quot;Hello&quot;&gt;&gt;}]}]}]}</code></div> Thu, 26 Aug 2010 22:11:38 +0000 boxtel comment 56560 at https://www.ejabberd.im Hey thanks for the answer https://www.ejabberd.im/node/4223#comment-56532 <p>In fact i started to code somehow the module but this is my first time and take a look if you can because i keep on having the same error </p> <p>//////////.erl</p> <div class="codeblock"><code>-module(mod_offline_push). <p>-export([start/2,<br /> init/2,<br /> stop/1,<br /> send_notice/3]).</p> <p>-include(&quot;ejabberd.hrl&quot;).<br />-include(&quot;jlib.hrl&quot;).</p> <p>start(Host, Opts) -&gt;<br />&nbsp;&nbsp;&nbsp; ?INFO_MSG(&quot;Starting mod_offline_push manuel&quot;, [] ), <br />&nbsp;&nbsp;&nbsp; ok.</p> <p>init(Host, _Opts) -&gt;<br /> inets:start(),<br /> ssl:start(),<br />&nbsp;&nbsp;&nbsp; ejabberd_hooks:run(offline_message_hook, Host, ?MODULE, send_notice, 10),<br />&nbsp;&nbsp;&nbsp; ok.</p> <p>stop(Host) -&gt;,<br />&nbsp;&nbsp;&nbsp; ejabberd_hooks:delete(offline_message_hook, Host,?MODULE, send_notice, 10),<br />&nbsp;&nbsp;&nbsp; ok.</p> <p>send_notice(_From, To, Packet) -&gt;<br />&nbsp;&nbsp;&nbsp; Type = xml:get_tag_attr_s(&quot;type&quot;, Packet),<br />&nbsp;&nbsp;&nbsp; FromS = xml:get_tag_attr_s(&quot;from&quot;, Packet),<br />&nbsp;&nbsp;&nbsp; ToS&nbsp;&nbsp; = xml:get_tag_attr_s(&quot;to&quot;, Packet),<br />&nbsp;&nbsp;&nbsp; Body = xml:get_path_s(Packet, [{elem, &quot;body&quot;}, cdata]),<br />&nbsp;&nbsp;&nbsp; if<br /> (Type == &quot;chat&quot;) and (Body /= &quot;&quot;) -&gt;<br /> &nbsp; Sep = &quot;&amp;&quot;,<br /> &nbsp; Post = [<br /> &nbsp;&nbsp;&nbsp; &quot;application=ejabberd&quot;, Sep,<br /> &nbsp;&nbsp;&nbsp; &quot;event=&quot;, string:sub_word(FromS,1,$/), Sep,<br /> &nbsp;&nbsp;&nbsp; &quot;description=xmpp://&quot;, string:sub_word(FromS,1,$/), &quot;%0A&quot;, Body, Sep,<br /> &nbsp;&nbsp;&nbsp; &quot;priority=-1&quot; ],<br /> &nbsp; httpc:request(post, {&quot;http://webserver/pushNotification&quot;, [], &quot;application/x-www-form-urlencoded&quot;, list_to_binary(Post)},[],[]),<br /> &nbsp; ok;<br /> true -&gt;<br /> &nbsp; ok<br />&nbsp;&nbsp;&nbsp; end.</p></code></div> <p>/////ERROR//////</p> <div class="codeblock"><code>=ERROR REPORT==== 2010-08-23 18:55:03 ===<br />E(&lt;0.376.0&gt;:ejabberd_sm:88) : {{badarg,ok},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{ejabberd_sm,route_message,3},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {ejabberd_sm,route,3},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {ejabberd_local,route,3},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {ejabberd_router,route,3},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {ejabberd_c2s,session_established2,2},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {p1_fsm,handle_msg,10},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {proc_lib,init_p,5}]}<br />when processing: {{jid,&quot;benoit&quot;,&quot;192.168.1.1&quot;,&quot;9357537161282604097774274&quot;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;benoit&quot;,&quot;192.168.1.1&quot;,&quot;9357537161282604097774274&quot;},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {jid,&quot;iphone&quot;,&quot;192.168.1.1&quot;,[],&quot;iphone&quot;,&quot;192.168.1.1&quot;,[]},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {xmlelement,&quot;message&quot;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{&quot;type&quot;,&quot;chat&quot;},{&quot;to&quot;,&quot;iphone@192.168.1.1&quot;}],<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{xmlelement,&quot;body&quot;,[],<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{xmlcdata,&lt;&lt;&quot;testingggggg offline messages&quot;&gt;&gt;}]}]}}</code></div> <p>my http request is never called because i create a log each time a do this request and the log is not created....</p> <p>any ideas??</p> <p>thanks again</p> Tue, 24 Aug 2010 13:18:33 +0000 boxtel comment 56532 at https://www.ejabberd.im I offer you an idea, but I https://www.ejabberd.im/node/4223#comment-56528 <p>I offer you an idea, but I don't have more minutes or hours to help you. If you read this idea, you agree to not ask me any more details.</p> <p>It's possible to write an ejabberd module that adds a hook to the event offline_message_hook. When the hook is executed, the associated function can do whatever you want: send a message stanza to another user, make an HTTP query to a remote machine...</p> Mon, 23 Aug 2010 23:20:20 +0000 mfoss comment 56528 at https://www.ejabberd.im