<div dir="ltr">Hello Daniel,<div>Thank you for your help.</div><div><br></div><div>Ok pua_usrloc modules seems good for me.</div><div>I try to use it : </div><div>I add these routing in route[REGISTAR]</div><div><div>     if(is_method("REGISTER") && from_uri=="<a href="mailto:sip%3A122@192.168.0.186">sip:122@192.168.0.186</a>" ) {</div><div>                xlog("L_INFO", "LBO - pua_set_publish() call for  $rm from $fu  (IP:$si:$sp)  \n");</div><div>                if(!pua_set_publish())</div><div>                    xlog("L_INFO", "LBO - set publish failed\n");</div></div><div>     }</div><div><br></div><div>When sip122 regsiters to my server (192.168.0.186), i can see it one entry for sip:122 in the pua table and one entry in presentity table.</div><div>If i wait for a register period, i can see 2 entries in presentity table (only 1 entry in the pua table).</div><div>If i wait for another register period, i can see 3 entries in presentity table (only 1 entry in the pua table)<br></div><div>...</div><div><br></div><div>Since the second register period, i can see this error in the log file:</div><div><div>ERROR: pua [send_publish.c:580]: send_publish(): New PUBLISH and no body found- invalid request</div><div>ERROR: pua_usrloc [ul_publish.c:326]: ul_publish(): while sending publish for ul event 2</div><div>ERROR: pua_usrloc [ul_publish.c:337]: ul_publish(): UPDATE action generated a PUBLISH without body -> invoking INSERT action</div></div><div><br></div><div><br></div><div>Is it normal that pua modules write entries in the presentity table?</div><div>Is there an solution to have only one entry per user in the presentity table?</div><div><br></div><div>Best regards</div><div>Loïc</div><div><br><div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-15 15:08 GMT+01:00 Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hello,<br>
<span><br>
On 15/12/15 14:16, Loïc Boissy wrote:<br>
> Hello,<br>
><br>
> I use kamailio 4.3.2 with the presence module.<br>
> When the contact is able to manage its presence, No problem for me.<br>
> But when a contact doesn't manage it presence, i would like to know if<br>
> it is possible to generate a sip message (like as a simple presence<br>
> message) with kamailio?<br>
><br>
> The goal of that is to prevent my watcher when a "simple" contact<br>
> (without presence option) is registered and unregistered on my<br>
> kamailio server.<br>
</span>see pua_usrloc modules -- sounds like what you are looking for.<br>
<br>
Cheers,<br>
Daniel<br>
<span><font color="#888888"><br>
--<br>
Daniel-Constantin Mierla<br>
<a href="http://twitter.com/#!/miconda" rel="noreferrer" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" rel="noreferrer" target="_blank">http://www.linkedin.com/in/miconda</a><br>
Book: SIP Routing With Kamailio - <a href="http://www.asipto.com" rel="noreferrer" target="_blank">http://www.asipto.com</a><br>
<a href="http://miconda.eu" rel="noreferrer" target="_blank">http://miconda.eu</a><br>
<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a></font></span></blockquote></div><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div style="color:rgb(136,136,136)"></div></div></div></div></div></div></div></div></div></div>
</div></div></div></div>