<div dir="ltr">Hello!<div><br></div><div>I've just tested this on Kamailio v. 5.3.0-dev6 with <i>modparam("usrloc", "db_mode", 0)</i> setting. save() return code was 1 too. I'm also interested if this behavior is by design.</div><div><br></div><div>Thanks.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">ср, 26 черв. 2019 о 11:34 Lars Olsson <<a href="mailto:lars.olsson@optimobile.se">lars.olsson@optimobile.se</a>> пише:<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 dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<div style="margin:0px;font-size:12pt;font-family:Calibri,Arial,Helvetica,sans-serif;background-color:rgb(255,255,255)">
Hi,</div>
<div style="margin:0px;font-size:12pt;font-family:Calibri,Arial,Helvetica,sans-serif;background-color:rgb(255,255,255)">
<br>
</div>
<div style="margin:0px;font-size:12pt;font-family:Calibri,Arial,Helvetica,sans-serif;background-color:rgb(255,255,255)">
I have found a behavior in the registrar module that I do have a question about. Is the current behavior correct and wanted?</div>
<div style="margin:0px;font-size:12pt;font-family:Calibri,Arial,Helvetica,sans-serif;background-color:rgb(255,255,255)">
<br>
</div>
<div style="margin:0px;font-size:12pt;font-family:Calibri,Arial,Helvetica,sans-serif;background-color:rgb(255,255,255)">
Using the save() method in the script I see the following:</div>
<div style="margin:0px;font-size:12pt;font-family:Calibri,Arial,Helvetica,sans-serif;background-color:rgb(255,255,255)">
<br>
</div>
<div style="margin:0px;font-size:12pt;font-family:Calibri,Arial,Helvetica,sans-serif;background-color:rgb(255,255,255)">
<ul>
<li>Processing a register request for a user gives return code 1 ( or 2 )</li><li>Processing a unregister request (expires=0) for registered user gives return code 3</li><li>Processing a unregister request (expires=0) for a user which is NOT registered gives return code 1. Why?<br>
</li></ul>
<div style="margin:0px">What is the reason behind this?</div>
<div style="margin:0px">No database entry is added which is expected.</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px">Test performed on 5.1.4, using DB mode 3.</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px">For handling a late unregister request ( where registration has already expired) return code does not reflect the the action.</div>
<div style="margin:0px">I assume that manually checking $expires(max) is the option to go then if I want to detect the unregister request or?</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px">Cheers,</div>
<div style="margin:0px">Lars</div>
</div>
<br>
</div>
</div>

_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>