<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Janson,<br>
<br>
Sorry, I skimmed through your e-mail and understood something else
:).<br>
<br>
One option to achieve this is to change the state in database with
sqlops module (eg: update presentity set body='' where username=''
).<br>
And then you should also call the function I mentioned -
pres_refresh_watchers() .<br>
<br>
Regards,<br>
Anca<br>
<br>
<br>
On 03/06/2012 05:26 PM, Jason Penton wrote:
<blockquote
cite="mid:CALoGXNX-oMY9qD3+WvENHOhHrumVo_m4PrsM=1TJMZjJT4kRXQ@mail.gmail.com"
type="cite">
<div>Hi Anca,</div>
<div><br>
</div>
<div>Thanks, but not quite what I'm looking for......</div>
<div><br>
</div>
<div>Cheers</div>
<div>Jason</div>
<div><br>
</div>
<div><br>
<br>
<div class="gmail_quote">On Tue, Mar 6, 2012 at 4:28 PM, Anca
Vamanu <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:anca.vamanu@1and1.ro" target="_blank">anca.vamanu@1and1.ro</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000"> Hi Jason,<br>
<br>
<br>
There is a way to do this - call <b>pres_refresh_watchers(<a
moz-do-not-send="true">"sip:user@domain"</a>,
"presence", "1") </b>from the script.<br>
<br>
<a moz-do-not-send="true"
href="http://www.kamailio.org/docs/modules/3.2.x/modules_k/presence.html#id2495087"
target="_blank">http://www.kamailio.org/docs/modules/3.2.x/modules_k/presence.html#id2495087</a><br>
<br>
Regards,<br>
Anca
<div>
<div><br>
<br>
<br>
On 03/06/2012 02:35 PM, Jason Penton wrote:
<blockquote type="cite">Hi All,
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>My scenario:</div>
<div>I need to implicitly register a user and send
notifies to all subscribed watchers (from another
module). </div>
<div><br>
</div>
<div>Cheers</div>
<div>Jason</div>
</blockquote>
<br>
</div>
</div>
</div>
<br>
_______________________________________________<br>
sr-dev mailing list<br>
<a moz-do-not-send="true"
href="mailto:sr-dev@lists.sip-router.org" target="_blank">sr-dev@lists.sip-router.org</a><br>
<a moz-do-not-send="true"
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev"
target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>