[sr-dev] Kamailio presence and internal triggering (publishing)

Anca Vamanu anca.vamanu at 1and1.ro
Tue Mar 6 15:28:20 CET 2012


Hi Jason,


There is a way to do this - call 
*pres_refresh_watchers("sip:user at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20120306/4b9b51b8/attachment.htm>


More information about the sr-dev mailing list