<div><div dir="auto">I wonder whether changing the expire value constantly will impact all expires, as opposed to just the one you’re trying to set it to. If, say you lower it for a register, will that expire all existing registers? </div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 8 Feb 2020 at 18:12, mayamatakeshi <<a href="mailto:mayamatakeshi@gmail.com">mayamatakeshi@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 3, 2020 at 7:24 AM Alex Balashov <<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">On Mon, Feb 03, 2020 at 07:17:42AM +0900, mayamatakeshi wrote:<br>
<br>
> is it possible to reply with a different expires for a REGISTER depending<br>
> on some condition like the User-Agent?<br>
> I am thinking maybe I can use:<br>
>   $ulc(profile=>expires) = 600<br>
<br>
Expiration is ultimately in the hands of the registrar, and the<br>
registrar is free to reply with an expiration different to what the<br>
registrant has requested.<br>
<br>
Expiration policy is generally controlled by:<br>
<br>
   <a href="https://kamailio.org/docs/modules/5.3.x/modules/registrar.html#registrar.p.min_expires" rel="noreferrer" target="_blank">https://kamailio.org/docs/modules/5.3.x/modules/registrar.html#registrar.p.min_expires</a><br>
<br>
   <a href="https://kamailio.org/docs/modules/5.3.x/modules/registrar.html#registrar.p.max_expires" rel="noreferrer" target="_blank">https://kamailio.org/docs/modules/5.3.x/modules/registrar.html#registrar.p.max_expires</a><br>
<br>
and some related modparams near the top.<br>
<br>
As far as I am aware, there is no way to override the expiration<br>
decisions of the registrar in a custom way.<br>
<br></blockquote><div><br></div><div>I think you are right. </div><div>I will try a different approach that is to enlarge the allowed registrar expires range using the above parameter and then change the value of the Expires in the REGISTER message before passing it to registrar module.</div><div>Thanks.</div></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></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div>