<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<br>This seems almost too obvious to mention, but in examples 1 and 5 below
you have not closed the presence tag, it seems likely that you just forgot,
but you did it twice.
<p>Nickolai Kussovski wrote:
<blockquote TYPE=CITE><style></style>
<font face="Arial"><font size=-1>Thanks,</font></font><font face="Arial"><font size=-1>this
worked.</font></font><font face="Arial"><font size=-1>But I found something
else that really sound like a bug:</font></font><font face="Arial"><font size=-1>1.
Let A and B have subscription of type both to each other</font></font><font face="Arial"><font size=-1>2.
Connect user A and send let's say</font></font><font face="Arial"><font size=-1>
<presence></font></font><font face="Arial"><font size=-1>
<show>chat</show></font></font><font face="Arial"><font size=-1>
<presence></font></font><font face="Arial"><font size=-1>3. Connect
user B with the same presence.</font></font><font face="Arial"><font size=-1>4.
User B receives</font></font><font face="Arial"><font size=-1>
<presence from='A'></font></font><font face="Arial"><font size=-1>
<show>chat</show></font></font><font face="Arial"><font size=-1>
<x xmlns='jabber:x:delay' from='A' stamp='20000406T15:42:50'/></font></font><font face="Arial"><font size=-1>
</presence></font></font><font face="Arial"><font size=-1>5. B tries
to send:</font></font><font face="Arial"><font size=-1>
<presence></font></font><font face="Arial"><font size=-1>
<show>chat</show></font></font><font face="Arial"><font size=-1>
<presence></font></font><font face="Arial"><font size=-1>and here comes
the problem: <font color="#FF0000">A doesn't receive anything.</font></font></font><font face="Arial"><font color="#FF0000"><font size=-1>If
A sends another presence to B, after that he is able to receive such presences
from B.</font></font></font> <font face="Arial"><font size=-1>>
you should NEVER send a type='available' in <presence> tag. If u don't
send</font></font>
<br><font face="Arial"><font size=-1>> type attribute in <presence>,
then it'll mean that you're available. If you</font></font>
<br><font face="Arial"><font size=-1>> send any type attribute, then it'll
mean you're unavailable (please note:</font></font>
<br><font face="Arial"><font size=-1>> always send type='unavailable' for
unavailable mode, although any string in</font></font>
<br><font face="Arial"><font size=-1>> type attribute will work).</font></font>
<br><font face="Arial"><font size=-1>></font></font>
<br><font face="Arial"><font size=-1>> It isn't required to send "<presence/>",
if you're sending a <presence> tag</font></font>
<br><font face="Arial"><font size=-1>> without type attribute. It's just
for marking you 'available' in server.</font></font>
<br><font face="Arial"><font size=-1>></font></font>
<br><font face="Arial"><font size=-1>> thanks,</font></font>
<br><font face="Arial"><font size=-1>> Kerem HADIMLI</font></font>
<br><font face="Arial"><font size=-1>></font></font>
<br><font face="Arial"><font size=-1>> Nickolai Kussovski wrote:</font></font>
<br><font face="Arial"><font size=-1>> ></font></font>
<br><font face="Arial"><font size=-1>> > Hi,</font></font>
<br><font face="Arial"><font size=-1>> > I try to send some presence like:</font></font>
<br><font face="Arial"><font size=-1>> ></font></font>
<br><font face="Arial"><font size=-1>> > <presence type="available"></font></font>
<br><font face="Arial"><font size=-1>> >
<show>chat</show></font></font>
<br><font face="Arial"><font size=-1>> > </presence></font></font>
<br><font face="Arial"><font size=-1>> ></font></font>
<br><font face="Arial"><font size=-1>> > after the initial <presence/></font></font>
<br><font face="Arial"><font size=-1>> ></font></font>
<br><font face="Arial"><font size=-1>> > The result is that I cannot see
anybody's presences after that.</font></font>
<br><font face="Arial"><font size=-1>> > Any idea?</font></font>
<br><font face="Arial"><font size=-1>> ></font></font>
<br><font face="Arial"><font size=-1>> > Thanks,</font></font>
<br><font face="Arial"><font size=-1>> > Nike</font></font>
<br><font face="Arial"><font size=-1>> ></font></font>
<br><font face="Arial"><font size=-1>> > _______________________________________________</font></font>
<br><font face="Arial"><font size=-1>> > jdev mailing list</font></font>
<br><font face="Arial"><font size=-1>> > <a href="mailto:jdev@jabber.org">jdev@jabber.org</a></font></font>
<br><font face="Arial"><font size=-1>> > <a href="http://mailman.jabber.org/listinfo/jdev">http://mailman.jabber.org/listinfo/jdev</a></font></font>
<br><font face="Arial"><font size=-1>></font></font>
<br><font face="Arial"><font size=-1>> --</font></font>
<br><font face="Arial"><font size=-1>> If it happens once, it's a bug.</font></font>
<br><font face="Arial"><font size=-1>> If it happens twice, it's a feature.</font></font>
<br><font face="Arial"><font size=-1>> If it happens more than twice, it's
a design philosophy.</font></font>
<br><font face="Arial"><font size=-1>></font></font>
<br><font face="Arial"><font size=-1>> _______________________________________________</font></font>
<br><font face="Arial"><font size=-1>> jdev mailing list</font></font>
<br><font face="Arial"><font size=-1>> <a href="mailto:jdev@jabber.org">jdev@jabber.org</a></font></font>
<br><font face="Arial"><font size=-1>> <a href="http://mailman.jabber.org/listinfo/jdev">http://mailman.jabber.org/listinfo/jdev</a></font></font></blockquote>
<p>--
<br>Rick Graham, Senior Architect
<br>BitFlash Inc., Ottawa, Canada.
<br>rick@bitflash.com
<br><A HREF="http://www.bitflash.com/">http://www.bitflash.com/</A>
<br> </html>