<div dir="ltr">Hi<div><br></div><div>Yes, I had it. With value 0 works fine</div><div><br></div><div>Thanks Daniel for your help</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 9 Sept 2021 at 08:10, Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>Hello,</p>
<p>do you have this modparam set></p>
<p> *
<a href="https://www.kamailio.org/docs/modules/stable/modules/usrloc.html#usrloc.p.handle_lost_tcp" target="_blank">https://www.kamailio.org/docs/modules/stable/modules/usrloc.html#usrloc.p.handle_lost_tcp</a></p>
<p>Cheers,<br>
Daniel<br>
</p>
<div>On 08.09.21 18:56, Pepelux wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi all
<div><br>
</div>
<div>I have problems adding a new location by RPC command.</div>
<div><br>
</div>
<div><b># kamailio -v</b><br>
version: kamailio 5.5.0 (x86_64/linux) <br>
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS,
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC,
Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX,
FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER,
USE_NAPTR, USE_DST_BLOCKLIST, HAVE_RESOLV_RES,
TLS_PTHREAD_MUTEX_SHARED<br>
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144,
MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB<br>
poll method support: poll, epoll_lt, epoll_et, sigio_rt,
select.<br>
id: unknown <br>
compiled with gcc 8.3.0<br>
<br>
</div>
<div><br>
</div>
<div>A simple example, adding an AOR which expires in 1 hour:</div>
<div> </div>
<div><b># date ; kamcmd ul.add kam_location <a href="mailto:1002-test1@sipserver.com" target="_blank">1002-test1@sipserver.com</a> <a href="mailto:sip%3A1002-test1@192.168.89.82" target="_blank">sip:1002-test1@192.168.89.82</a>
3600 0.0 . 0 0 0 .</b><br>
Wed 08 Sep 2021 01:58:00 PM CEST<br>
<br>
<br>
Location record has been inserted correctly:</div>
<div><br>
<b># date ; kamcmd ul.dump | grep test -A24</b><br>
Wed 08 Sep 2021 01:58:02 PM CEST<br>
AoR: <a href="mailto:1002-test1@sipserver.com" target="_blank">1002-test1@sipserver.com</a><br>
HashID: -597689288<br>
Contacts: {<br>
Contact: {<br>
Address: <a href="mailto:sip%3A1002-test1@192.168.89.82" target="_blank">sip:1002-test1@192.168.89.82</a><br>
Expires: 3598<br>
Q:
0.000000<br>
Call-ID: <a href="mailto:dfjrewr12386fd6-343@kamailio.rpc" target="_blank">dfjrewr12386fd6-343@kamailio.rpc</a><br>
CSeq:
1<br>
User-Agent: kamailio SIP Router - RPC Server<br>
Received: [not set]<br>
Path:
[not set]<br>
State:
CS_SYNC<br>
Flags:
0<br>
CFlags: 0<br>
Socket: [not set]<br>
Methods: 0<br>
Ruid:
ulcx-61389f47-2e44-01<br>
Instance: [not set]<br>
Reg-Id: 0<br>
Server-Id: 0<br>
Tcpconn-Id: 0<br>
Keepalive: 0<br>
Last-Keepalive: 1631102280<br>
KA-Roundtrip: 0<br>
Last-Modified: 0<br>
}<br>
}<br>
}<br>
<br>
<br>
But a few seconds later, the location record has gone:<br>
<br>
<b>
# date ; kamcmd ul.dump | grep test -A24</b><br>
Wed 08 Sep 2021 01:58:26 PM CEST<br>
<br>
<br>
In kamailio logs I can see that:<br>
<br>
<b>
Sep 8 13:58:00 sipserver /usr/sbin/kamailio[11844]: DEBUG:
usrloc [ul_rpc.c:637]: ul_rpc_add(): path == 0 -> unset<br>
Sep 8 13:58:00 sipserver /usr/sbin/kamailio[11844]: DEBUG:
usrloc [ul_rpc.c:652]: ul_rpc_add(): ret: 10
table:kam_location <a href="mailto:aor%3A1002-test1@sipserver.com" target="_blank">aor:1002-test1@sipserver.com</a> <a href="mailto:contact%3Asip%3A1002-test1@192.168.89.82" target="_blank">contact:sip:1002-test1@192.168.89.82</a>
expires:3600 dtemp:0.000000 path: flags:0 bflags:0 methods:0<br>
Sep 8 13:58:00 sipserver /usr/sbin/kamailio[11844]: DEBUG:
usrloc [ul_rpc.c:660]: ul_rpc_add(): q:0<br>
Sep 8 13:58:00 sipserver /usr/sbin/kamailio[11844]: DEBUG:
usrloc [ucontact.c:1857]: uldb_insert_attrs(): trying to
insert location attributes<br>
Sep 8 13:58:00 sipserver /usr/sbin/kamailio[11844]: DEBUG:
usrloc [ucontact.c:1868]: uldb_insert_attrs(): no location
attributes<br>
</b>
Sep 8 13:58:03 sipserver /usr/sbin/kamailio[11827]: DEBUG: {1
81337 REGISTER <a href="mailto:1955770655-18357-1@BJC.BGI.B.BBF" target="_blank">1955770655-18357-1@BJC.BGI.B.BBF</a> REGISTER}
usrloc [ucontact.c:1801]: uldb_delete_attrs_ruid(): trying to
delete location attributes<br>
Sep 8 13:58:03 sipserver /usr/sbin/kamailio[11827]: DEBUG: {1
81337 REGISTER <a href="mailto:1955770655-18357-1@BJC.BGI.B.BBF" target="_blank">1955770655-18357-1@BJC.BGI.B.BBF</a> REGISTER}
usrloc [ucontact.c:72]: ucontact_xavp_store(): trying to clone
per contact xavps<br>
Sep 8 13:58:03 sipserver /usr/sbin/kamailio[11827]: DEBUG: {1
81337 REGISTER <a href="mailto:1955770655-18357-1@BJC.BGI.B.BBF" target="_blank">1955770655-18357-1@BJC.BGI.B.BBF</a> REGISTER}
usrloc [ucontact.c:1857]: uldb_insert_attrs(): trying to
insert location attributes<br>
Sep 8 13:58:04 sipserver /usr/sbin/kamailio[11829]: DEBUG: {1
141 REGISTER <a href="mailto:1aa357700bd0696702c40340595d89e7@185.99.186.215" target="_blank">1aa357700bd0696702c40340595d89e7@185.99.186.215</a>
REGISTER} usrloc [ucontact.c:1801]: uldb_delete_attrs_ruid():
trying to delete location attributes<br>
Sep 8 13:58:04 sipserver /usr/sbin/kamailio[11829]: DEBUG: {1
141 REGISTER <a href="mailto:1aa357700bd0696702c40340595d89e7@185.99.186.215" target="_blank">1aa357700bd0696702c40340595d89e7@185.99.186.215</a>
REGISTER} usrloc [ucontact.c:72]: ucontact_xavp_store():
trying to clone per contact xavps<br>
Sep 8 13:58:04 sipserver /usr/sbin/kamailio[11829]: DEBUG: {1
141 REGISTER <a href="mailto:1aa357700bd0696702c40340595d89e7@185.99.186.215" target="_blank">1aa357700bd0696702c40340595d89e7@185.99.186.215</a>
REGISTER} usrloc [ucontact.c:1857]: uldb_insert_attrs():
trying to insert location attributes<br>
Sep 8 13:58:06 sipserver /usr/sbin/kamailio[11852]: DEBUG: {1
114 REGISTER 5ne5ebv674tptk0p1uj4gg REGISTER} usrloc
[ucontact.c:1801]: uldb_delete_attrs_ruid(): trying to delete
location attributes<br>
Sep 8 13:58:06 sipserver /usr/sbin/kamailio[11852]: DEBUG: {1
114 REGISTER 5ne5ebv674tptk0p1uj4gg REGISTER} usrloc
[ucontact.c:72]: ucontact_xavp_store(): trying to clone per
contact xavps<br>
Sep 8 13:58:06 sipserver /usr/sbin/kamailio[11852]: DEBUG: {1
114 REGISTER 5ne5ebv674tptk0p1uj4gg REGISTER} usrloc
[ucontact.c:1857]: uldb_insert_attrs(): trying to insert
location attributes<br>
Sep 8 13:58:23 sipserver /usr/sbin/kamailio[11828]: DEBUG: {1
12484 REGISTER <a href="mailto:1382185578-19234-1@BJC.BGI.B.BGC" target="_blank">1382185578-19234-1@BJC.BGI.B.BGC</a> REGISTER}
usrloc [ucontact.c:1801]: uldb_delete_attrs_ruid(): trying to
delete location attributes<br>
Sep 8 13:58:23 sipserver /usr/sbin/kamailio[11828]: DEBUG: {1
12484 REGISTER <a href="mailto:1382185578-19234-1@BJC.BGI.B.BGC" target="_blank">1382185578-19234-1@BJC.BGI.B.BGC</a> REGISTER}
usrloc [ucontact.c:72]: ucontact_xavp_store(): trying to clone
per contact xavps<br>
Sep 8 13:58:23 sipserver /usr/sbin/kamailio[11828]: DEBUG: {1
12484 REGISTER <a href="mailto:1382185578-19234-1@BJC.BGI.B.BGC" target="_blank">1382185578-19234-1@BJC.BGI.B.BGC</a> REGISTER}
usrloc [ucontact.c:1857]: uldb_insert_attrs(): trying to
insert location attributes<br>
<b>
Sep 8 13:58:23 sipserver /usr/sbin/kamailio[11835]: DEBUG:
usrloc [urecord.c:377]: wb_timer(): tcp connection has been
lost, expiring contact <a href="mailto:sip%3A1002-test1@192.168.89.82" target="_blank">sip:1002-test1@192.168.89.82</a><br>
Sep 8 13:58:23 sipserver /usr/sbin/kamailio[11835]: DEBUG:
usrloc [urecord.c:387]: wb_timer(): Binding '<a href="mailto:1002-test1@sipserver.com" target="_blank">1002-test1@sipserver.com</a>','<a href="mailto:sip%3A1002-test1@192.168.89.82" target="_blank">sip:1002-test1@192.168.89.82</a>'
has expired<br>
Sep 8 13:58:23 sipserver /usr/sbin/kamailio[11835]: DEBUG:
usrloc [ucontact.c:1801]: uldb_delete_attrs_ruid(): trying
to delete location attributes<br>
</b>
Sep 8 13:58:25 sipserver /usr/sbin/kamailio[11830]: DEBUG: {1
185389 REGISTER <a href="mailto:1487655759-19321-1@BJC.BGI.B.BBB" target="_blank">1487655759-19321-1@BJC.BGI.B.BBB</a> REGISTER}
usrloc [ucontact.c:1801]: uldb_delete_attrs_ruid(): trying to
delete location attributes<br>
Sep 8 13:58:25 sipserver /usr/sbin/kamailio[11830]: DEBUG: {1
185389 REGISTER <a href="mailto:1487655759-19321-1@BJC.BGI.B.BBB" target="_blank">1487655759-19321-1@BJC.BGI.B.BBB</a> REGISTER}
usrloc [ucontact.c:72]: ucontact_xavp_store(): trying to clone
per contact xavps<br>
Sep 8 13:58:25 sipserver /usr/sbin/kamailio[11830]: DEBUG: {1
185389 REGISTER <a href="mailto:1487655759-19321-1@BJC.BGI.B.BBB" target="_blank">1487655759-19321-1@BJC.BGI.B.BBB</a> REGISTER}
usrloc [ucontact.c:1857]: uldb_insert_attrs(): trying to
insert location attributes<br>
Sep 8 13:58:33 sipserver /usr/sbin/kamailio[11853]: DEBUG: {1
3360 REGISTER pgmirc5oirbekeaj3tmrf7 REGISTER} usrloc
[ucontact.c:1801]: uldb_delete_attrs_ruid(): trying to delete
location attributes<br>
Sep 8 13:58:33 sipserver /usr/sbin/kamailio[11853]: DEBUG: {1
3360 REGISTER pgmirc5oirbekeaj3tmrf7 REGISTER} usrloc
[ucontact.c:72]: ucontact_xavp_store(): trying to clone per
contact xavps<br>
Sep 8 13:58:33 sipserver /usr/sbin/kamailio[11853]: DEBUG: {1
3360 REGISTER pgmirc5oirbekeaj3tmrf7 REGISTER} usrloc
[ucontact.c:1857]: uldb_insert_attrs(): trying to insert
location attributes<br>
Sep 8 13:58:44 sipserver /usr/sbin/kamailio[11829]: DEBUG: {1
5645 REGISTER <a href="mailto:89744034-6071-1@BJC.BGI.A.BJ" target="_blank">89744034-6071-1@BJC.BGI.A.BJ</a>
REGISTER} usrloc [ucontact.c:1801]: uldb_delete_attrs_ruid():
trying to delete location attributes<br>
Sep 8 13:58:44 sipserver /usr/sbin/kamailio[11829]: DEBUG: {1
5645 REGISTER <a href="mailto:89744034-6071-1@BJC.BGI.A.BJ" target="_blank">89744034-6071-1@BJC.BGI.A.BJ</a>
REGISTER} usrloc [ucontact.c:72]: ucontact_xavp_store():
trying to clone per contact xavps<br>
Sep 8 13:58:44 sipserver /usr/sbin/kamailio[11829]: DEBUG: {1
5645 REGISTER <a href="mailto:89744034-6071-1@BJC.BGI.A.BJ" target="_blank">89744034-6071-1@BJC.BGI.A.BJ</a>
REGISTER} usrloc [ucontact.c:1857]: uldb_insert_attrs():
trying to insert location attributes<br>
Sep 8 13:58:44 sipserver /usr/sbin/kamailio[11830]: DEBUG: {1
5683 REGISTER <a href="mailto:1974024198-16543-1@BJC.BGI.B.BDE" target="_blank">1974024198-16543-1@BJC.BGI.B.BDE</a> REGISTER}
usrloc [ucontact.c:1801]: uldb_delete_attrs_ruid(): trying to
delete location attributes<br>
Sep 8 13:58:44 sipserver /usr/sbin/kamailio[11830]: DEBUG: {1
5683 REGISTER <a href="mailto:1974024198-16543-1@BJC.BGI.B.BDE" target="_blank">1974024198-16543-1@BJC.BGI.B.BDE</a> REGISTER}
usrloc [ucontact.c:72]: ucontact_xavp_store(): trying to clone
per contact xavps<br>
Sep 8 13:58:44 sipserver /usr/sbin/kamailio[11830]: DEBUG: {1
5683 REGISTER <a href="mailto:1974024198-16543-1@BJC.BGI.B.BDE" target="_blank">1974024198-16543-1@BJC.BGI.B.BDE</a> REGISTER}
usrloc [ucontact.c:1857]: uldb_insert_attrs(): trying to
insert location attributes<br>
Sep 8 13:58:50 sipserver /usr/sbin/kamailio[11829]: DEBUG: {1
144820 REGISTER <a href="mailto:381139623-5062-1@BJC.BGI.B.BAD" target="_blank">381139623-5062-1@BJC.BGI.B.BAD</a> REGISTER}
usrloc [ucontact.c:1801]: uldb_delete_attrs_ruid(): trying to
delete location attributes<br>
Sep 8 13:58:50 sipserver /usr/sbin/kamailio[11829]: DEBUG: {1
144820 REGISTER <a href="mailto:381139623-5062-1@BJC.BGI.B.BAD" target="_blank">381139623-5062-1@BJC.BGI.B.BAD</a> REGISTER}
usrloc [ucontact.c:72]: ucontact_xavp_store(): trying to clone
per contact xavps<br>
Sep 8 13:58:50 sipserver /usr/sbin/kamailio[11829]: DEBUG: {1
144820 REGISTER <a href="mailto:381139623-5062-1@BJC.BGI.B.BAD" target="_blank">381139623-5062-1@BJC.BGI.B.BAD</a> REGISTER}
usrloc [ucontact.c:1857]: uldb_insert_attrs(): trying to
insert location attributes<br>
Sep 8 13:58:59 sipserver /usr/sbin/kamailio[11828]: DEBUG: {1
84973 REGISTER <a href="mailto:467700456-5060-1@BJC.BGI.B.BCI" target="_blank">467700456-5060-1@BJC.BGI.B.BCI</a> REGISTER} usrloc
[ucontact.c:1801]: uldb_delete_attrs_ruid(): trying to delete
location attributes<br>
Sep 8 13:58:59 sipserver /usr/sbin/kamailio[11828]: DEBUG: {1
84973 REGISTER <a href="mailto:467700456-5060-1@BJC.BGI.B.BCI" target="_blank">467700456-5060-1@BJC.BGI.B.BCI</a> REGISTER} usrloc
[ucontact.c:72]: ucontact_xavp_store(): trying to clone per
contact xavps<br>
Sep 8 13:58:59 sipserver /usr/sbin/kamailio[11828]: DEBUG: {1
84973 REGISTER <a href="mailto:467700456-5060-1@BJC.BGI.B.BCI" target="_blank">467700456-5060-1@BJC.BGI.B.BCI</a> REGISTER} usrloc
[ucontact.c:1857]: uldb_insert_attrs(): trying to insert
location attributes<br>
Sep 8 13:59:01 sipserver /usr/sbin/kamailio[11854]: DEBUG: {1
116 REGISTER 5ne5ebv674tptk0p1uj4gg REGISTER} usrloc
[ucontact.c:1801]: uldb_delete_attrs_ruid(): trying to delete
location attributes<br>
Sep 8 13:59:01 sipserver /usr/sbin/kamailio[11854]: DEBUG: {1
116 REGISTER 5ne5ebv674tptk0p1uj4gg REGISTER} usrloc
[ucontact.c:72]: ucontact_xavp_store(): trying to clone per
contact xavps<br>
Sep 8 13:59:01 sipserver /usr/sbin/kamailio[11854]: DEBUG: {1
116 REGISTER 5ne5ebv674tptk0p1uj4gg REGISTER} usrloc
[ucontact.c:1857]: uldb_insert_attrs(): trying to insert
location attributes<br>
Sep 8 13:59:04 sipserver /usr/sbin/kamailio[11830]: DEBUG: {1
81338 REGISTER <a href="mailto:1955770655-18357-1@BJC.BGI.B.BBF" target="_blank">1955770655-18357-1@BJC.BGI.B.BBF</a> REGISTER}
usrloc [ucontact.c:1801]: uldb_delete_attrs_ruid(): trying to
delete location attributes<br>
Sep 8 13:59:04 sipserver /usr/sbin/kamailio[11830]: DEBUG: {1
81338 REGISTER <a href="mailto:1955770655-18357-1@BJC.BGI.B.BBF" target="_blank">1955770655-18357-1@BJC.BGI.B.BBF</a> REGISTER}
usrloc [ucontact.c:72]: ucontact_xavp_store(): trying to clone
per contact xavps<br>
Sep 8 13:59:04 sipserver /usr/sbin/kamailio[11830]: DEBUG: {1
81338 REGISTER <a href="mailto:1955770655-18357-1@BJC.BGI.B.BBF" target="_blank">1955770655-18357-1@BJC.BGI.B.BBF</a> REGISTER}
usrloc [ucontact.c:1857]: uldb_insert_attrs(): trying to
insert location attributes<br>
<br>
<br>
What am I doing wrong? It is supposed that the connection is
by UDP. I also tried to insert the socket value as UDP, but it
had the same problem.</div>
<div><br>
</div>
<div>Thanks!<br>
<br>
<br>
</div>
</div>
<br>
<fieldset></fieldset>
<pre>__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
* <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
* <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre cols="72">--
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a></pre>
</div>
</blockquote></div>