<div dir="ltr">Im getting this error using USERLOCDB<div><br></div><div><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="">Apr  7 22:11:56 kamailio-int /usr/local/sbin/kamailio[29717]: ERROR: db_mysql [km_dbase.c:128]: db_mysql_submit_query(): driver error on query: Duplicate entry '0--1' for key 'connection_idx' (1062)</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="">Apr  7 22:11:56 kamailio-int /usr/local/sbin/kamailio[29717]: ERROR: <core> [db_query.c:235]: db_do_insert_cmd(): error while submitting query</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="">Apr  7 22:11:56 kamailio-int /usr/local/sbin/kamailio[29717]: ERROR: usrloc [ucontact.c:684]: db_insert_ucontact(): inserting contact in db failed xxxx (uloc-5706bebd-7415-3)</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="">Apr  7 22:11:56 kamailio-int /usr/local/sbin/kamailio[29717]: ERROR: usrloc [urecord.c:591]: insert_ucontact(): failed to insert in database</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="">Apr  7 22:11:56 kamailio-int /usr/local/sbin/kamailio[29717]: ERROR: registrar [save.c:522]: insert_contacts(): failed to insert contact</span></p><div><br></div><div>My config </div><div><br></div><div><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style=""># ----- usrloc params -----</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="">/* enable DB persistency for location entries */</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="">#!ifdef WITH_USRLOCDB  </span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="">modparam("usrloc", "db_url", DBURL)</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="">modparam("usrloc", "timer_interval", 60)</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="">modparam("usrloc", "db_mode", 1)</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="">modparam("usrloc", "db_timer_clean", 1)</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="">modparam("usrloc", "use_domain", MULTIDOMAIN)</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="">modparam("usrloc", "db_ops_ruid", 1)</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="">modparam("usrloc", "db_check_update", 1)</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="">#!endif</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><span style=""> </span></p><div>I have been using it without any problems in other installations but in a  new one with 4. KAMAILIO im getting this error. I can see registrations on kamctl ul show but seems that option 1 is not working . Option 2 does not update registrations from that device. </div></div></div><div><br></div><div>Thanks</div></div>