Hi Janson,

Sorry, I skimmed through your e-mail and understood something else :).

One option to achieve this is to change the state in database with sqlops module (eg: update  presentity set body='' where username='' ).
And then you should also call the function I mentioned - pres_refresh_watchers() .

Regards,
Anca


On 03/06/2012 05:26 PM, Jason Penton wrote:
Hi Anca,

Thanks, but not quite what I'm looking for......

Cheers
Jason



On Tue, Mar 6, 2012 at 4:28 PM, Anca Vamanu <anca.vamanu@1and1.ro> wrote:
Hi Jason,


There is a way to do this - call pres_refresh_watchers("sip:user@domain", "presence", "1") from the script.

http://www.kamailio.org/docs/modules/3.2.x/modules_k/presence.html#id2495087

Regards,
Anca



On 03/06/2012 02:35 PM, Jason Penton wrote:
Hi All,

Was wondering if there was a mechanism to internally (ie via another module) trigger notifies on a particular presentity? Looking at presence module I see there is only a handle_publish (called from cfg file on PUBLISH request). I would imagine it would be useful to add to the presence API a mechanism to update a presentity from within Kamailio as opposed to relying on a publish. I understand there is the PUA modules but from what I can see these explicitly send a PUBLISH to a presence server and is not what I am looking for.

My scenario:
I need to implicitly register a user and send notifies to all subscribed watchers (from another module). 

Cheers
Jason


_______________________________________________
sr-dev mailing list
sr-dev@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev