ejabberd - Comments for "presence with caps, receive pep event notify. how to?" https://www.ejabberd.im/node/3784 en strange mood pep event notify https://www.ejabberd.im/node/3784#comment-55020 <p>Recently, i get presence with caps receive pep event notify works.<br /> but there has an strange pep event notify behavior.<br /> my server has two user "tom" and "jim".<br /> "tom" subscribe "jim" with subscription "to" in roster.</p> <p>when "jim" login presence with caps:</p> <div class="codeblock"><code>&lt;presence from=&#039;jim@domain/Client&#039;&gt;&lt;priority&gt;25&lt;/priority&gt;&lt;c xmlns=&#039;http://jabber.org/protocol/caps&#039; node=&#039;http://domain/caps&#039; ver=&#039;1.0&#039; ext=&#039;cs ep-notify&#039;/&gt;&lt;/presence&gt;</code></div> <p>then "jim" can receive mood pep event notify:</p> <div class="codeblock"><code>&lt;message from=&#039;jim@domain&#039; to=&#039;jim@domain/Client&#039;&gt;&lt;event xmlns=&#039;http://jabber.org/protocol/pubsub#event&#039;&gt;&lt;items node=&#039;http://jabber.org/protocol/mood&#039;&gt;&lt;item id=&#039;4EC9C27088B82&#039;&gt;...&lt;/item&gt;&lt;/items&gt;&lt;/event&gt;&lt;delay xmlns=&#039;urn:xmpp:delay&#039; from=&#039;jim@domain/Client&#039; stamp=&#039;2009-12-12T17:40:00Z&#039;&gt;&lt;/delay&gt;&lt;/message&gt;</code></div> <p>and now i login "tom" presence with caps:</p> <div class="codeblock"><code>&lt;presence from=&#039;tom@domain/Client&#039;&gt;&lt;priority&gt;25&lt;/priority&gt;&lt;c xmlns=&#039;http://jabber.org/protocol/caps&#039; node=&#039;http://domain/caps&#039; ver=&#039;1.0&#039; ext=&#039;cs ep-notify&#039;/&gt;&lt;/presence&gt;</code></div> <p>but "tom" cant receive any mood pep event notify, both "tom" self mood pep event notify and "jim" mood pep event notify</p> <p>at this time i logout "jim" and then login "tom" again. then "tom" can receive himself mood pep event notify(strange).</p> <p>here is my caps_features dump:</p> <div class="codeblock"><code>{caps_features,{&lt;&lt;&quot;http://domain/caps&quot;&gt;&gt;,&lt;&lt;&quot;cs&quot;&gt;&gt;},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&lt;&lt;&quot;http://jabber.org/protocol/chatstates&quot;&gt;&gt;]}.<br />{caps_features,{&lt;&lt;&quot;http://domain/caps&quot;&gt;&gt;,&lt;&lt;&quot;ep-notify&quot;&gt;&gt;},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&lt;&lt;&quot;http://jabber.org/protocol/mood+notify&quot;&gt;&gt;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;&lt;&quot;http://jabber.org/protocol/tune+notify&quot;&gt;&gt;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;&lt;&quot;http://jabber.org/protocol/physloc+notify&quot;&gt;&gt;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;&lt;&quot;http://jabber.org/protocol/geoloc+notify&quot;&gt;&gt;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;&lt;&quot;http://www.xmpp.org/extensions/xep-0084.html#ns-metadata+notify&quot;&gt;&gt;]}.<br />{caps_features,{&lt;&lt;&quot;http://domain/caps&quot;&gt;&gt;,&lt;&lt;&quot;1.0&quot;&gt;&gt;},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&lt;&lt;&quot;http://jabber.org/protocol/disco#info&quot;&gt;&gt;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;&lt;&quot;http://jabber.org/protocol/commands&quot;&gt;&gt;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;&lt;&quot;http://jabber.org/protocol/rosterx&quot;&gt;&gt;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;&lt;&quot;http://jabber.org/protocol/muc&quot;&gt;&gt;,&lt;&lt;&quot;jabber:x:data&quot;&gt;&gt;]}.</code></div> Sun, 13 Dec 2009 08:34:49 +0000 terry comment 55020 at https://www.ejabberd.im