Re: [Kamailio-Users] [presence] use case of a user that doesn't un-REGISTER and un-PUBLISH

2009-01-23 Thread Iñaki Baz Castillo
2009/1/23 Pascal Maugeri : > Is that so that each time I subscribe to a user presence there is a new > entry ? (it doesn't look to work that way). No, I mean each time a different PUBLISH (different SIP-If-Match header) arrives to the presence server. -- Iñaki Baz Castillo

Re: [Kamailio-Users] [presence] use case of a user that doesn't un-REGISTER and un-PUBLISH

2009-01-23 Thread Pascal Maugeri
As we're talking about it, what's purpose of active_watchers and watchers DB tables ? Is that so that each time I subscribe to a user presence there is a new entry ? (it doesn't look to work that way). -pascal On Fri, Jan 23, 2009 at 1:23 PM, Iñaki Baz Castillo wrote: > 2009/1/23 Pascal Mauge

Re: [Kamailio-Users] [presence] use case of a user that doesn't un-REGISTER and un-PUBLISH

2009-01-23 Thread Iñaki Baz Castillo
2009/1/23 Pascal Maugeri : >> It's not possible at all, nothing to do. >> Perhaps you are using pua_usrloc module? That's important. > > Hum, good point. Thanks I'm going to check that. If you are using pua_usrloc, then when deregistering a user it generates a callback so pua_usrloc creates a new

Re: [Kamailio-Users] [presence] use case of a user that doesn't un-REGISTER and un-PUBLISH

2009-01-23 Thread Pascal Maugeri
On Fri, Jan 23, 2009 at 11:52 AM, Iñaki Baz Castillo wrote: > 2009/1/23 Pascal Maugeri : > > I've much better results forcing an unregister of my user before doing > the > > register. > > > > unregister("location", "$fu"); > > if (!save("location")) > >

Re: [Kamailio-Users] [presence] use case of a user that doesn't un-REGISTER and un-PUBLISH

2009-01-23 Thread Iñaki Baz Castillo
2009/1/23 Pascal Maugeri : > I've much better results forcing an unregister of my user before doing the > register. > > unregister("location", "$fu"); > if (!save("location")) > sl_reply_error(); If you do that, you are un-registering *all* t

Re: [Kamailio-Users] [presence] use case of a user that doesn't un-REGISTER and un-PUBLISH

2009-01-23 Thread Pascal Maugeri
I've much better results forcing an unregister of my user before doing the register. unregister("location", "$fu"); if (!save("location")) sl_reply_error(); It looks that the unregister() cleans the presence tables. I'm not sure if this is

Re: [Kamailio-Users] [presence] use case of a user that doesn't un-REGISTER and un-PUBLISH

2009-01-22 Thread Iñaki Baz Castillo
El Jueves, 22 de Enero de 2009, Pascal Maugeri escribió: > Well not really : if we use long publish expiration such as 3600s, we may > have no presence update during 1 hour. Solution may be to reduce expires to > few minutes but this generate a lot more SIP traffic. Could you please paste the NOTI

Re: [Kamailio-Users] [presence] use case of a user that doesn't un-REGISTER and un-PUBLISH

2009-01-22 Thread Pascal Maugeri
Well not really : if we use long publish expiration such as 3600s, we may have no presence update during 1 hour. Solution may be to reduce expires to few minutes but this generate a lot more SIP traffic. Regards, Pascal On Thu, Jan 22, 2009 at 7:32 PM, Iñaki Baz Castillo wrote: > El Jueves, 22 d

Re: [Kamailio-Users] [presence] use case of a user that doesn't un-REGISTER and un-PUBLISH

2009-01-22 Thread Iñaki Baz Castillo
El Jueves, 22 de Enero de 2009, Pascal Maugeri escribió: > Hi > > Using kamailio v1.5 (trunk), I'm testing the following simple presence > scenario where one user shutdowns his application without prior un-PUBLISH > and un-REGISTER. > > 1) user A subscribes to user B presence. Both use X-Lite. > 2

[Kamailio-Users] [presence] use case of a user that doesn't un-REGISTER and un-PUBLISH

2009-01-22 Thread Pascal Maugeri
Hi Using kamailio v1.5 (trunk), I'm testing the following simple presence scenario where one user shutdowns his application without prior un-PUBLISH and un-REGISTER. 1) user A subscribes to user B presence. Both use X-Lite. 2) user B shutdowns his X-Lite (without doing un-REGISTER and un-PUBLISH