<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
the pua_usrloc sends PUBLISH requests via the network. To
troubleshoot properly, run kamailio with debug=3 in config and watch
the network traffic on all interfaces (loopback as well).<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 15/12/15 18:05, Loïc Boissy wrote:<br>
</div>
<blockquote
cite="mid:CAHrc+6=A0av7Gjqi4+6-F0D9y2V=Ef-8jVkt51S+O0dM=Yarrw@mail.gmail.com"
type="cite">
<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
moz-do-not-send="true"
href="mailto:sip%3A122@192.168.0.186"><a class="moz-txt-link-freetext" href="sip:122@192.168.0.186">sip:122@192.168.0.186</a></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 <a class="moz-txt-link-freetext" href="sip:122">sip:122</a> 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
moz-do-not-send="true"
href="mailto:miconda@gmail.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:miconda@gmail.com">miconda@gmail.com</a></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 moz-do-not-send="true"
href="http://twitter.com/#%21/miconda"
rel="noreferrer" target="_blank">http://twitter.com/#!/miconda</a>
- <a moz-do-not-send="true"
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
moz-do-not-send="true"
href="http://www.asipto.com" rel="noreferrer"
target="_blank"><a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></a><br>
<a moz-do-not-send="true" 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 moz-do-not-send="true"
href="mailto:sr-users@lists.sip-router.org"
target="_blank">sr-users@lists.sip-router.org</a><br>
<a moz-do-not-send="true"
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>
</div>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://miconda.eu">http://miconda.eu</a></pre>
</body>
</html>