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