ejabberd - Comments for "process presence show and status" https://www.ejabberd.im/node/3571 en Maybe ejabberd_c2s.erl https://www.ejabberd.im/node/3571#comment-54492 <p>i find ejabberd_c2s.erl have an fun handle_sync_event at line 1001(my ejabberd version is 2.0.2), that maybe it.</p> <p>but when i change this fun from</p> <div class="codeblock"><code>handle_sync_event({get_presence}, _From, StateName, StateData) -&gt;<br />&nbsp;&nbsp;&nbsp; User = StateData#state.user,<br />&nbsp;&nbsp;&nbsp; PresLast = StateData#state.pres_last, <p>&nbsp;&nbsp;&nbsp; Show = get_showtag(PresLast),<br />&nbsp;&nbsp;&nbsp; Status = get_statustag(PresLast),<br />&nbsp;&nbsp;&nbsp; Resource = StateData#state.resource,</p> <p>&nbsp;&nbsp;&nbsp; Reply = {User, Resource, Show, Status},<br />&nbsp;&nbsp;&nbsp; fsm_reply(Reply, StateName, StateData);</p></code></div> <p>to</p> <div class="codeblock"><code>handle_sync_event({get_presence}, _From, StateName, StateData) -&gt;<br />&nbsp;&nbsp;&nbsp; User = StateData#state.user,<br />&nbsp;&nbsp;&nbsp; PresLast = StateData#state.pres_last, <p>&nbsp;&nbsp;&nbsp; Show = get_showtag(PresLast),<br />&nbsp;&nbsp;&nbsp; Status = get_statustag(PresLast),<br />&nbsp;&nbsp;&nbsp; ?INFO_MSG(&quot;~p, ~p~n&quot;,[Show,Status]),<br />&nbsp;&nbsp;&nbsp; Resource = StateData#state.resource,</p> <p>&nbsp;&nbsp;&nbsp; Reply = {User, Resource, Show, Status},<br />&nbsp;&nbsp;&nbsp; fsm_reply(Reply, StateName, StateData);</p></code></div> <p>when i use psi to test user presence show and status. i can't find the info msg output in ejabberd log file. </p> <p>maybe i use fun handle_sync_event to test is wrong.<br /> thanks for help</p> Sat, 25 Jul 2009 04:50:35 +0000 terry comment 54492 at https://www.ejabberd.im > i just want find which file https://www.ejabberd.im/node/3571#comment-54479 <p>&gt; i just want find which file process user presence.</p> <p>ejabberd_c2s.erl</p> Wed, 22 Jul 2009 19:10:34 +0000 mfoss comment 54479 at https://www.ejabberd.im Not mod_logsession https://www.ejabberd.im/node/3571#comment-54459 <p>it seems not mod_logsession.<br /> i find that module README.txt say:"<br /> this module is intended to log in a text file the session connections.<br /> Right now it only logs the forbidden connection attempts.<br /> Each vhost is logged in a different file"</p> <p>i just want find which file process user presence.<br /> such as this xmpp defines:<br /> <code>&lt;presence&gt;&lt;show&gt;chat&lt;/show&gt;&lt;status&gt;i am free to chat&lt;/status&gt;&lt;/presence&gt;</code><br /> if i know which file process this xml stanza. i can parse status xmlelement cdata "i am free to chat" and save to database.</p> <p>thanks.</p> Tue, 14 Jul 2009 15:45:27 +0000 terry comment 54459 at https://www.ejabberd.im Maybe mod_logsession, which https://www.ejabberd.im/node/3571#comment-54455 <p>Maybe mod_logsession, which is available in <noindex><a href="/ejabberd-modules" rel="nofollow" >ejabberd-modules SVN</a></noindex>.</p> Sun, 12 Jul 2009 17:20:27 +0000 mfoss comment 54455 at https://www.ejabberd.im