[JDEV] Does 'presence unavailable' require a 'to' jid?

Miguel A Paraz map at free.net.ph
Tue Jun 4 05:17:52 CDT 2002


Hi,

I'm writing a component that talks to users through SMS on a GSM modem.
In this first version, I don't want the component to keep state.
When the user issues a "LOGOUT" command, it should send presence unavailable.

According to JEP-0018, if there is no 'to' there, from section 5.1:

  Server always broadcasts to every jid that had been sent any available 
  presence. 

But with jabberd 1.4.2, I get:

  20020604T10:09:17: [warn] (-internal): 
  Packet Delivery Failed, invalid packet, dropping 
  <presence from='xxx at sms.localhost' type='unavailable'/>

Is this a problem with jabberd or did I do something wrong?
Since it works when I specify a 'to', should I be keeping track of all
the jids that have subscribed to me?  Or, use the roster?

Thanks!


-- 
Miguel A Paraz             <http://mparaz.com>	Mobile: +63-916-423-7922
Imperium Technology, Inc.  <map at imperium.ph>	Office: +63-2-812-3155




More information about the JDev mailing list