<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Hello,<div><br></div><div>I’m currently using mid_registrar without problems but according to the documentation:</div><div><div><br></div><div><i>the mid-registrar will appropriately generate De-REGISTER requests and remove these contacts from the main registrar's location service as soon as it considers them to have expired.</i></div></div><div><br></div><div>If I well understood, if a client is registered with a 500 seconds expiry, the server side is set to outgoing_expires, and, if the register is not renewed by the client, opensips should de-register.</div><div><br></div><div>In my case, the de-registers that should be triggered are never triggered.</div><div><br></div><div>I found no parameters relative to this in mid_registrar module, but, looking at the source code, it seems it depends on usrloc module.</div><div>On usrloc module, it seems that contact_refresh_timer is in charge of treating events, like expires, so I tried to enable it, without success.</div><div>Even after client expiry + timer_interval, the client is not de-registered on server side.</div><div><br></div><div>Is there anything I may have missed?</div><div><br></div><div>Here is an extract of modules configuration:</div><div><br></div><div><div>#### USeR LOCation module</div><div>loadmodule "usrloc.so"</div><div>modparam("usrloc", "nat_bflag", "NAT")</div><div>modparam("usrloc", "db_url", "mysql://XXX:YYY@localhost/opensips")</div><div>modparam("usrloc", "working_mode_preset", "single-instance-sql-write-through")</div><div>modparam("usrloc", "use_domain", 1)</div><div>modparam("usrloc", "contact_refresh_timer", true)</div><div><br></div><div><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">loadmodule "mid_registrar.so"</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">modparam("mid_registrar", "tcp_persistent_flag", "TCP_PERSISTENT")</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">modparam("mid_registrar", "received_avp", "$avp(received_nh)")</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">modparam("mid_registrar", "max_contacts", 4)</span></p>
<p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">modparam("mid_registrar", "mode", 2)</span></p></div></div><div><span style="font-variant-ligatures: no-common-ligatures">…</span></div><div><span style="font-variant-ligatures: no-common-ligatures"><br></span></div><div>The only commands related to mid_registrar I use in the script are:</div><div><br></div><div><span style="font-variant-ligatures: no-common-ligatures"><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">mid_registrar_save("location","v</span>"<span style="font-variant-ligatures: no-common-ligatures;">)</span><span style="font-variant-ligatures: no-common-ligatures; color: rgb(64, 11, 217);">;</span></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures; color: #400bd9"></span></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures">mid_registrar_lookup("location");</span></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><span style="font-variant-ligatures: no-common-ligatures"><br></span></p><p style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;"><br></p><div>Thank you for your help</div><div><br></div><div><br></div></span></div></body></html>